| | |
| | | public const Int16 HTechnologyParameterCol = 76; |
| | | public const Int16 HPicNumCol = 77; |
| | | public const Int16 HProcCheckNoteCol = 78; |
| | | public const Int16 HMouldNoCol = 79; |
| | | public const Int16 HProcWorkNumCol = 80; |
| | | public const Int16 HICMOEntryIDCol = 81; |
| | | |
| | | |
| | | |
| | |
| | | this.txtHOrderProcNO.Text = DBUtility.ClsPub.isStrNull(BillOld.omodel.HOrderProcNO); |
| | | this.txtHMateOutBatchNo.Text = DBUtility.ClsPub.isStrNull(BillOld.omodel.HMateOutBatchNo); |
| | | this.txtHProjectNum.Text = DBUtility.ClsPub.isStrNull(BillOld.omodel.HProjectNum); |
| | | this.textHPicNumVer.Text = DBUtility.ClsPub.isStrNull(BillOld.omodel.HPicNumVer); |
| | | this.textHPicNumAssemble.Text = DBUtility.ClsPub.isStrNull(BillOld.omodel.HPicNumAssemble); |
| | | this.textHMaterTexture.Text = DBUtility.ClsPub.isStrNull(BillOld.omodel.HMaterTexture); |
| | | this.textHProductNum.Text = DBUtility.ClsPub.isStrNull(BillOld.omodel.HProductNum); |
| | | this.textHVerNum.Text = DBUtility.ClsPub.isStrNull(BillOld.omodel.HVerNum); |
| | | //å è½½è¡¨ä½ |
| | | initGrid(); |
| | | int i = 0; |
| | |
| | | grdMain.Rows[i].Cells[HRelationQty_WWOrderCol].Value = oSub.HRelationQty_WWOrder.ToString(); |
| | | grdMain.Rows[i].Cells[HRelationQty_BadCol].Value = oSub.HRelationQty_Bad.ToString(); |
| | | grdMain.Rows[i].Cells[HRelationMoneyCol].Value = oSub.HRelationMoney.ToString(); |
| | | grdMain.Rows[i].Cells[HMouldNoCol].Value = oSub.HMouldNo.ToString(); |
| | | grdMain.Rows[i].Cells[HProcWorkNumCol].Value = oSub.HProcWorkNum.ToString(); |
| | | //====================================================================================== |
| | | // |
| | | grdMain.Rows[i].Cells[HProcIDCol].Value = oSub.HProcID.ToString(); |
| | |
| | | // |
| | | grdMain.Rows[i].Cells[HICMOBillNoCol].Value = oSub.HICMOBillNo; |
| | | grdMain.Rows[i].Cells[HICMOInterIDCol].Value = oSub.HICMOInterID.ToString(); |
| | | grdMain.Rows[i].Cells[HICMOEntryIDCol].Value = oSub.HICMOEntryID.ToString(); |
| | | grdMain.Rows[i].Cells[HSeOrderBillNoCol].Value = oSub.HSeOrderBillNo; |
| | | grdMain.Rows[i].Cells[HSeOrderInterIDCol].Value = oSub.HSeOrderInterID.ToString(); |
| | | grdMain.Rows[i].Cells[HSeOrderEntryIDCol].Value = oSub.HSeOrderEntryID.ToString(); |
| | |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | |
| | | //ä¿ååæ® |
| | | private bool Sub_SaveBill() |
| | | { |
| | |
| | | BillNew.omodel.HMaterIDB = ClsPub.isStrNull(this.txtHMaterIDB.Text); |
| | | BillNew.omodel.HMaterIDC = ClsPub.isStrNull(this.txtHMaterIDC.Text); |
| | | BillNew.omodel.HMaterIDD = ClsPub.isStrNull(this.txtHMaterIDD.Text); |
| | | //=================== |
| | | BillNew.omodel.HPicNumVer = ClsPub.isStrNull(this.textHPicNumVer.Text); |
| | | BillNew.omodel.HPicNumAssemble = ClsPub.isStrNull(this.textHPicNumAssemble.Text); |
| | | BillNew.omodel.HMaterTexture = ClsPub.isStrNull(this.textHMaterTexture.Text); |
| | | BillNew.omodel.HProductNum = ClsPub.isStrNull(this.textHProductNum.Text); |
| | | BillNew.omodel.HVerNum = ClsPub.isStrNull(this.textHVerNum.Text); |
| | | //è·åæå¤§è¡å· |
| | | int MaxRowNo = 0; |
| | | for (int n = 0; n < grdMain.Rows.Count; n++) |
| | |
| | | } |
| | | oSub.HICMOBillNo = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HICMOBillNoCol].Value); |
| | | oSub.HICMOInterID = DBUtility.ClsPub.isLong(grdMain.Rows[i].Cells[HICMOInterIDCol].Value); |
| | | oSub.HICMOEntryID = DBUtility.ClsPub.isLong(grdMain.Rows[i].Cells[HICMOEntryIDCol].Value); |
| | | oSub.HSeOrderInterID = DBUtility.ClsPub.isLong(grdMain.Rows[i].Cells[HSeOrderInterIDCol].Value); |
| | | oSub.HSeOrderEntryID = DBUtility.ClsPub.isLong(grdMain.Rows[i].Cells[HSeOrderEntryIDCol].Value); |
| | | oSub.HSeOrderBillNo = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HSeOrderBillNoCol].Value); |
| | |
| | | oSub.HTechnologyParameter = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HTechnologyParameterCol].Value); |
| | | oSub.HPicNum = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HPicNumCol].Value); |
| | | oSub.HProcCheckNote = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HProcCheckNoteCol].Value); |
| | | oSub.HMouldNo = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HMouldNoCol].Value); |
| | | oSub.HProcWorkNum = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HProcWorkNumCol].Value); |
| | | BillNew.DetailColl.Add(oSub); |
| | | } |
| | | } |
| | |
| | | { |
| | | |
| | | // |
| | | grdMain.ColumnCount = 79; //æ»åæ° |
| | | grdMain.ColumnCount = 82; //æ»åæ° |
| | | DBUtility.Xt_BaseBillFun.initGridFst(grdMain, this.Name); |
| | | // |
| | | grdMain.RowsDefaultCellStyle.WrapMode = DataGridViewTriState.True; |
| | |
| | | |
| | | grdMain.Columns[HICMOBillNoCol].HeaderText = "ç产订åå·"; |
| | | grdMain.Columns[HICMOInterIDCol].HeaderText = "ç产订å主å
ç "; |
| | | grdMain.Columns[HICMOEntryIDCol].HeaderText = "ç产订ååå
ç "; |
| | | grdMain.Columns[HSeOrderInterIDCol].HeaderText = "éå®è®¢å主å
ç "; |
| | | grdMain.Columns[HSeOrderEntryIDCol].HeaderText = "éå®è®¢ååå
ç "; |
| | | grdMain.Columns[HSeOrderBillNoCol].HeaderText = "éå®è®¢ååå·"; |
| | |
| | | grdMain.Columns[HTechnologyParameterCol].HeaderText = "å·¥èºåæ°"; |
| | | grdMain.Columns[HPicNumCol].HeaderText = "å¾çº¸ç¼å·"; |
| | | grdMain.Columns[HProcCheckNoteCol].HeaderText = "æ¬å·¥åºç¡®è®¤è®°å½"; |
| | | grdMain.Columns[HMouldNoCol].HeaderText = "模å
·ç¼å·"; |
| | | grdMain.Columns[HProcWorkNumCol].HeaderText = "ç¨åºå·"; |
| | | // grdMain.Columns[HKeyProcCol].HeaderText = "å
³é®å·¥åº"; |
| | | grdMain.Columns[HKeyProcCol].Visible = false; |
| | | ////åºå®èµå¼===================================================== |
| | |
| | | grdMain.Columns[HTagCol].Visible = false; |
| | | grdMain.Columns[HWorkerIDCol].Visible = false; |
| | | grdMain.Columns[HICMOInterIDCol].Visible = false; |
| | | grdMain.Columns[HICMOEntryIDCol].Visible = false; |
| | | grdMain.Columns[HOutMoneyCol].Visible = false; |
| | | grdMain.Columns[HSourceIDCol].Visible = false; |
| | | //grdMain.Columns[HEntryIDCol].Visible = false; |
| | |
| | | "," + HLastProcCol.ToString() + |
| | | "," + HFstProcCol.ToString() + |
| | | "," + HRemarkCol.ToString() + |
| | | "," + HMouldNoCol.ToString() + |
| | | "," + HProcWorkNumCol.ToString() + |
| | | "," + HSupNameCol + |
| | | "," + HSupFlagCol; |
| | | //设置å计å |
| | |
| | | txtHCusName.Text = oTable.Rows[row]["客æ·åç§°"].ToString(); |
| | | txtHWorkRemark.Text = oTable.Rows[row]["çäº§å¤æ³¨"].ToString(); |
| | | txtHImportNote.Text = oTable.Rows[row]["éè¦æç¤º"].ToString(); |
| | | textHPicNumVer.Text = oTable.Rows[row]["å¾å·çæ¬"].ToString(); |
| | | textHPicNumAssemble.Text = oTable.Rows[row]["æ»è£
å¾å·"].ToString(); |
| | | textHMaterTexture.Text = oTable.Rows[row]["æè´¨"].ToString(); |
| | | textHProductNum.Text = oTable.Rows[row]["æåç¼å·"].ToString(); |
| | | textHVerNum.Text = oTable.Rows[row]["çæ¬"].ToString(); |
| | | |
| | | // txtHWorkTypeID.Text = oTable.Rows[row]["ç产车é´åç§°"].ToString(); |
| | | |
| | |
| | | // |
| | | grdMain.Rows[i].Cells[HICMOBillNoCol].Value = oTable.Rows[i]["ç产订åå·"].ToString(); |
| | | grdMain.Rows[i].Cells[HICMOInterIDCol].Value = oTable.Rows[i]["hmainid"].ToString(); |
| | | grdMain.Rows[i].Cells[HICMOEntryIDCol].Value = oTable.Rows[i]["HEntryID"].ToString(); |
| | | grdMain.Rows[i].Cells[HSourceInterIDCol].Value = oTable.Rows[i]["hmainid"].ToString(); |
| | | grdMain.Rows[i].Cells[HSourceEntryIDCol].Value = oTable.Rows[i]["HEntryID"].ToString(); |
| | | grdMain.Rows[i].Cells[HSourceBillTypeCol].Value = oTable.Rows[i]["HBillType"].ToString(); |
| | |
| | | grdMain.Rows[i].Cells[HProcCheckNoteCol].Value = oTable.Rows[i]["æ¬å·¥åºç¡®è®¤è®°å½"].ToString(); |
| | | grdMain.Rows[i].Cells[HOverRateCol].Value = oTable.Rows[i]["è¶
颿¯ä¾"].ToString(); |
| | | grdMain.Rows[i].Cells[HMaxQtyCol].Value = oTable.Rows[i]["æé«ä¸é"].ToString(); |
| | | grdMain.Rows[i].Cells[HMouldNoCol].Value = oTable.Rows[i]["模å
·ç¼å·"].ToString(); |
| | | grdMain.Rows[i].Cells[HProcWorkNumCol].Value = oTable.Rows[i]["ç¨åºå·"].ToString(); |
| | | } |
| | | |
| | | Sub_CountProcExchQty(); |