王 垚
2022-05-17 bfea42f84de6f6988cfc4231e455fdbd894f40f1
WorkM/Á÷ת¿¨¹ÜÀí/MES_StationOutBillList.cs
@@ -47,6 +47,11 @@
            string sSql = "";
            string sWhere = "";
            if (chkWJieAn.Checked == true)
            {
                sWhere = " and HBillStatus<>3 ";
            }
            if (frmCondition.SqlStr.Trim().Length == 0)
            {
                sSql = "Select top 5000 * from " + ViewName + " Where 1=1 " + sWhere + sDlgWhere + " order by hmainid desc ";
@@ -153,6 +158,7 @@
            oSumGrid.ogrdMain = grdMain;  //初始化 new
            oSumGrid.oGridsum = grdSum;
            initGrid();
            chkWJieAn.Checked = true;
        }
        private void grdMain_DblClick(object sender, EventArgs e)
@@ -216,6 +222,18 @@
                        MessageBox.Show("只能删除本人的单据!", "提示");
                        return;
                    }
                    //判断会计期是否合理
                    string s = "";
                    int sYear = 0;
                    int sPeriod = 0;
                    if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(DBUtility.ClsPub.isDate(oBill.omodel.HDate), ref sYear, ref sPeriod, ref s) == false)
                    {
                        MessageBox.Show(s, "提示");
                        return;
                    }
                    string c = "";
                    SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();