1
cwjbxqmz
2023-11-21 610ed3b61509c7244bc401e436fb90d2285b65bf
WarM/²Ö¿â¹ÜÀí/Kf_SellOutBill_BarCodeNote.cs
@@ -29,6 +29,7 @@
        public Int64 HStockOrgID = DBUtility.ClsPub.HOrgID;
        public DateTime HDate = DateTime.Today;
        public DBUtility.ClsPub.Enum_BillStatus BillStatus;
        public DAL.ClsKf_SellOutBill BillOld = new DAL.ClsKf_SellOutBill();   //对应单据类
        SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
        #region  //固定代码
@@ -338,28 +339,31 @@
                //画线
                GraphLine();
                //未审核
                if (cmbHBillStatus.Text == "已审核")
                {
                    sh.Enabled = false;
                    fsh.Enabled = true;
                    pic1.Visible = true;
                    pic1.Image = System.Drawing.Image.FromFile(DBUtility.ClsPub.AppPath + @"/Pic/Checked.jpg");
                }
                else if (cmbHBillStatus.Text == "已关闭")
                {
                    sh.Enabled = false;
                    fsh.Enabled = false;
                    pic1.Visible = true;
                    pic1.Image = System.Drawing.Image.FromFile(DBUtility.ClsPub.AppPath + @"/Pic/Closed.jpg");
                }
                else if (cmbHBillStatus.Text == "已作废")
                {
                    sh.Enabled = false;
                    fsh.Enabled = false;
                    pic1.Visible = true;
                    pic1.Image = System.Drawing.Image.FromFile(DBUtility.ClsPub.AppPath + @"/Pic/Deleted.jpg");
                }
                else
                {
                    sh.Enabled = true;
                    fsh.Enabled = false;
                    pic1.Visible = false;
                    pic1.Image = null;
                }
@@ -398,9 +402,32 @@
            {
                cmbHBillStatus.Text="已审核";
                sh.Enabled = false;
                fsh.Enabled = true;
                pic1.Visible = true;
                pic1.Image = System.Drawing.Image.FromFile(DBUtility.ClsPub.AppPath + @"/Pic/Checked.jpg");
                MessageBox.Show("审核成功!", "提示");
                return;
            }
        }
        #endregion
        #region  //反审核销售出库单
        private void fsh_Click(object sender, EventArgs e)
        {
            if (BillOld.AbandonCheck(HInterID, ref DBUtility.ClsPub.sExeReturnInfo) == true)
            {
                cmbHBillStatus.Text = "创建";
                sh.Enabled = true;
                fsh.Enabled = false;
                pic1.Visible = false;
                pic1.Image = null;
                MessageBox.Show("反审核成功!", "提示");
                return;
            }
            else
            {
                MessageBox.Show("反审核失败!原因:" + DBUtility.ClsPub.sExeReturnInfo, "提示");
                return;
            }
        }
@@ -505,11 +532,11 @@
        private void BarCodedy_Click(object sender, EventArgs e)
        {
            if (cmbHBillStatus.Text != "已审核")
            {
                MessageBox.Show("所选单据对应单据状态不为‘已审核’状态,不允许打印!", "提示");
                return;
            }
            //if (cmbHBillStatus.Text != "已审核")
            //{
            //    MessageBox.Show("所选单据对应单据状态不为‘已审核’状态,不允许打印!", "提示");
            //    return;
            //}
            //选择打印模板
            BLL.Gy_OpenTmp oFrm = new BLL.Gy_OpenTmp();
            oFrm.sBillName = ModName;