| | |
| | | public const string ModRightNameDelete = ModRightName + "_Delete"; //ä½åº |
| | | public const string ModRightNamePrint = ModRightName + "_Print"; //æå° |
| | | SCM.WMSWeb.WebService1 oWeb = new SCM.WMSWeb.WebService1(); |
| | | |
| | | public string CampanyName; |
| | | //DAL.ClsGy_ICBomBill oBill = new DAL.ClsGy_ICBomBill(); |
| | | //public Gy_ICBomBill oFrm; |
| | | public int selectRow = 0; |
| | |
| | | MessageBox.Show("æ¨æ²¡æå 餿éï¼"); |
| | | return; |
| | | } |
| | | |
| | | Int64 lngBillKey = 0; |
| | | string HBarCode = ""; |
| | | if (grdMain.CurrentRow == null) |
| | |
| | | MessageBox.Show("ä¸å
许å¤è¡å é¤ï¼è¯·éæ°éæ©è¦å é¤çæ¡ç ï¼"); |
| | | return; |
| | | } |
| | | |
| | | //--å¶å人å¿
é¡»ç¸å |
| | | if (CampanyName == "森楷") //ç³»ç»åæ° å®¢æ·å®å¶ååç§° |
| | | { |
| | | if (DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[0].Cells[Fun_GetCol("å¶å人")].Value) != DBUtility.ClsPub.CurUserName) |
| | | { |
| | | MessageBox.Show("æ¨éç第" + grdMain.SelectedRows[0].Index.ToString() + "è¡ï¼æ¡ç å¶åäººä¸æ¯æ¨æ¬äººï¼ä¸å
许å é¤ï¼"); |
| | | return; |
| | | } |
| | | } |
| | | if (MessageBox.Show("ç¡®å®è¦å 餿鿡ç ï¼å é¤åä¸è½æ¢å¤ï¼è¯·è°¨æ
æä½ï¼", "æç¤º", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK) |
| | | { |
| | | lngBillKey = DBUtility.ClsPub.isLong(grdMain.SelectedRows[0].Cells[Fun_GetCol("hmainid")].Value); |
| | |
| | | { |
| | | HItemID = HItemID + "," + DBUtility.ClsPub.isLong(grdMain.SelectedRows[i].Cells[Fun_GetCol("hmainid")].Value.ToString()); |
| | | HBarCode = HBarCode + "," + DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("æ¡ç ç¼å·")].Value); |
| | | //--å¶å人å¿
é¡»ç¸å |
| | | if (CampanyName == "森楷") //ç³»ç»åæ° å®¢æ·å®å¶ååç§° |
| | | { |
| | | if (DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("å¶å人")].Value) != DBUtility.ClsPub.CurUserName) |
| | | { |
| | | MessageBox.Show("æ¨éç第"+ grdMain.SelectedRows[i].Index.ToString() + "è¡ï¼æ¡ç å¶åäººä¸æ¯æ¨æ¬äººï¼ä¸å
许å é¤ï¼"); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | try |
| | |
| | | frmCondition = new frmBillQueryCondition_Base(); |
| | | SetCondition(frmCondition, ViewName, this.Name); |
| | | frmCondition.ShowDialog(); |
| | | //è·åç³»ç»åæ° å®¢æ·å®å¶ååç§° |
| | | DataSet Ds = oWeb.getDataSetBySQL("select HValue from Xt_SystemParameter with(nolock) where HKey='WMS_CampanyName'", "Xt_SystemParameter", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | if (Ds == null || Ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | MessageBox.Show("è·åç³»ç»åæ°å¤±è´¥ï¼åå :" + DBUtility.ClsPub.sExeReturnInfo, "æç¤º"); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | CampanyName = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HValue"]); |
| | | } |
| | | if (frmCondition.Tag.ToString() == "OK") |
| | | { |
| | | timer1.Enabled = true; |