zzr99
2022-04-21 055b64bfcdcb83aafa2986566df3fba49ed2eb98
WorkM/Á÷ת¿¨¹ÜÀí/MES_StationInBillList.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 ";
@@ -154,6 +159,7 @@
            oSumGrid.ogrdMain = grdMain;  //初始化 new
            oSumGrid.oGridsum = grdSum;
            initGrid();
            chkWJieAn.Checked = true;
        }
        private void grdMain_DblClick(object sender, EventArgs e)
@@ -216,6 +222,17 @@
                        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;
                    }
                    SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
                    DataSet ds;
                    //判断是否存在 ç›¸åŒå•据号 çš„领料单 åˆ¤æ–­ç”Ÿäº§è®¢å•是否已结案,要求计划手工反结案