| | |
| | | using DBUtility; |
| | | using System.IO; |
| | | using System.Reflection; |
| | | using Pub_Class; |
| | | |
| | | namespace WorkM |
| | | { |
| | |
| | | DataSet DSet; |
| | | string sSql = ""; |
| | | string sWhere = ""; |
| | | |
| | | if (chkWJieAn.Checked == true) |
| | | { |
| | | sWhere = " and HBillStatus<>3 "; |
| | | } |
| | | |
| | | if (frmCondition.SqlStr.Trim().Length == 0) |
| | | { |
| | |
| | | oSumGrid.ogrdMain = grdMain; //åå§å new |
| | | oSumGrid.oGridsum = grdSum; |
| | | initGrid(); |
| | | chkWJieAn.Checked = true; |
| | | } |
| | | |
| | | private void grdMain_DblClick(object sender, EventArgs e) |
| | |
| | | { |
| | | if (MessageBox.Show("ç¡®å®è¦å é¤å½ååæ®ï¼", "æç¤º", MessageBoxButtons.OKCancel)==DialogResult.OK) |
| | | { |
| | | if (oBill.omodel.HMaker != ClsPub.CurUserName && (ClsPub.CurUserName != "admin" && ClsPub.CurUserName != "Admin")) |
| | | ClsXt_SystemParameter oClsXt_SystemParameter = new ClsXt_SystemParameter(); |
| | | string DeleteCtl = oClsXt_SystemParameter.GetSingleSystemParameter("MES_StationOutBill_DeleteCtl", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | |
| | | if (DeleteCtl == "Y" && oBill.omodel.HMaker != DBUtility.ClsPub.CurUserName && DBUtility.ClsPub.CurUserName != "admin" && DBUtility.ClsPub.CurUserName != "Admin") |
| | | { |
| | | MessageBox.Show("åªè½å 餿¬äººçåæ®ï¼", "æç¤º"); |
| | | MessageBox.Show("ç»å½ç¨æ·ä¸å¶å人ä¸ä¸è´ï¼ä¸å
许å é¤", "æç¤º"); |
| | | return; |
| | | } |
| | | |
| | | //æ£æ¥æ¯å¦å¼ç¥¨ |
| | | //string d = ""; |
| | | //if (oBill.CheckIsKP(oBill.omodel.HInterID, ref d) == false) |