| | |
| | | //åæ¶æé® |
| | | private void cmdCancel_Click(object sender, EventArgs e) |
| | | { |
| | | ClsPub.SaveGridView(grdSub, Name+"grdSub", ClsPub.AppPath);//设置å宽 |
| | | this.Close(); |
| | | } |
| | | //æ§ä»¶ä½ç½® |
| | |
| | | txtHProcNo.Enabled = false; |
| | | |
| | | //å è½½ é
ä»¶ç»å®æ¸
å |
| | | |
| | | HInterID = BillOld.omodel.HInterID; |
| | | DisplaySub(); |
| | | |
| | | |
| | | |
| | |
| | | DataSet Dsplay; |
| | | Dsplay = oCn.RunProcReturn("exec h_p_MES_StationInBillSub_BindDisplay " + HInterID.ToString() + " ", "h_p_MES_StationInBillSub_BindDisplay"); |
| | | //åå
¥ä¿¡æ¯ |
| | | if (Dsplay == null || Dsplay.Tables[0].Rows.Count == 0) |
| | | if (Dsplay == null ) |
| | | { |
| | | MessageBox.Show("å·æ°å¤±è´¥ï¼"); |
| | | return; |
| | | } |
| | | else if(Dsplay.Tables[0].Rows.Count == 0) |
| | | { |
| | | return; |
| | | } |
| | | else |
| | |
| | | MessageBox.Show(e.Message + "DisplaySub"); |
| | | } |
| | | } |
| | | |
| | | private void cmdDelLine_Click(object sender, EventArgs e) |
| | | { |
| | | try |
| | | { |
| | | //æ ¹æ®éæ©çæ¡å½¢ç æ¥å é¤ |
| | | if (grdSub.CurrentRow == null) |
| | | return; |
| | | string sBarCode = DBUtility.ClsPub.isStrNull(grdSub.Rows[grdSub.CurrentRow.Index].Cells[Fun_GetCol("æ¡å½¢ç ")].Value); |
| | | SQLHelper.ClsCN oCn = new ClsCN(); |
| | | oCn.RunProc(" delete from Sc_StationInBillSub_BindBarCodeTemp " + |
| | | "Where HInterID = "+ HInterID.ToString() +" and HBarCode = '"+ sBarCode + "'"); |
| | | DisplaySub(); |
| | | } |
| | | catch (Exception e1) |
| | | { |
| | | MessageBox.Show("å é¤è¡å¤±è´¥ï¼"+e1.Message); |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |