工艺路线新增、工序流转卡新增界面子表增加SN码过站字段
| | |
| | | ",HProcID_S,HCenterID_S,HWorkQty_S,HSubStdEmpQty_S,HMouldNo,HChangeMould" + |
| | | ",HPackStd,HPack,HPutArea,HMyWorkDays,HMyFixWorkDays,HPassRate" + |
| | | ",HTechnologyParameter,HPicNum,HProcCheckNote" + |
| | | ",HOverRate,HWorkTimes_S" + |
| | | ",HOverRate,HWorkTimes_S,HSNCtrl" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + "," + oSub.HProcID.ToString() + "," + oSub.HProcNo.ToString() + "," + oSub.HSupID.ToString() + "," + Convert.ToString(oSub.HSupFlag ? 1 : 0) + "" + |
| | | "," + oSub.HWorkQty.ToString() + "," + oSub.HCenterID.ToString() + ",'" + oSub.HTimeUnit.ToString() + "'," + oSub.HUnitTime.ToString() + |
| | |
| | | "," + oSub.HProcID_S.ToString() + "," + oSub.HCenterID_S.ToString() + "," + oSub.HWorkQty_S.ToString() + "," + oSub.HSubStdEmpQty_S.ToString() + ",'" + oSub.HMouldNo + "'," + oSub.HChangeMould.ToString() + |
| | | ",'" + oSub.HPackStd + "','" + oSub.HPack + "','" + oSub.HPutArea + "'," + oSub.HMyWorkDays.ToString() + "," + oSub.HMyFixWorkDays.ToString() + "," + oSub.HPassRate.ToString() + |
| | | ",'" + oSub.HTechnologyParameter.ToString() + "','" + oSub.HPicNum.ToString() + "','" + oSub.HProcCheckNote.ToString() + |
| | | "', " + oSub.HOverRate.ToString() + "," + oSub.HWorkTimes_S.ToString() + |
| | | "', " + oSub.HOverRate.ToString() + "," + oSub.HWorkTimes_S.ToString() + "," + Convert.ToString(oSub.HSNCtrl ? 1 : 0) + |
| | | ") "); |
| | | } |
| | | // |
| | |
| | | ",HProcID_S,HCenterID_S,HWorkQty_S,HSubStdEmpQty_S,HMouldNo,HChangeMould" + |
| | | ",HPackStd,HPack,HPutArea,HMyWorkDays,HMyFixWorkDays,HPassRate" + |
| | | ",HTechnologyParameter,HPicNum,HProcCheckNote" + |
| | | ",HOverRate,HProcWorkNum,HWorkTimes_S" + |
| | | ",HOverRate,HProcWorkNum,HWorkTimes_S,HSNCtrl" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + "," + oSub.HProcID.ToString() + "," + oSub.HProcNo.ToString() + "," + oSub.HSupID.ToString() + "," + Convert.ToString(oSub.HSupFlag ? 1 : 0) + "" + |
| | | "," + oSub.HWorkQty.ToString() + "," + oSub.HCenterID.ToString() + ",'" + oSub.HTimeUnit.ToString() + "'," + oSub.HUnitTime.ToString() + |
| | |
| | | "," + oSub.HProcID_S.ToString() + "," + oSub.HCenterID_S.ToString() + "," + oSub.HWorkQty_S.ToString() + ", " + oSub.HSubStdEmpQty_S.ToString() + ",'" + oSub.HMouldNo + "'," + oSub.HChangeMould.ToString() + |
| | | ",'" + oSub.HPackStd + "','" + oSub.HPack + "','" + oSub.HPutArea + "'," + oSub.HMyWorkDays.ToString() + "," + oSub.HMyFixWorkDays.ToString() + "," + oSub.HPassRate.ToString() + |
| | | ",'"+ oSub.HTechnologyParameter.ToString() + "','" + oSub.HPicNum.ToString() + "','" + oSub.HProcCheckNote.ToString() + |
| | | "', " + oSub.HOverRate.ToString() + ",'" + oSub.HProcWorkNum.ToString() + "'," + oSub.HWorkTimes_S.ToString() + |
| | | "', " + oSub.HOverRate.ToString() + ",'" + oSub.HProcWorkNum.ToString() + "'," + oSub.HWorkTimes_S.ToString() + "," + Convert.ToString(oSub.HSNCtrl ? 1 : 0) + |
| | | ") "); |
| | | } |
| | | // |
| | |
| | | oSub.HProcCheckNote = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HProcCheckNote"]); |
| | | oSub.HOverRate = DBUtility.ClsPub.isDoule(DsSub.Tables[0].Rows[i]["HOverRate"]); |
| | | oSub.HWorkTimes_S = DBUtility.ClsPub.isDoule(DsSub.Tables[0].Rows[i]["HWorkTimes_S"]); |
| | | oSub.HSNCtrl = DBUtility.ClsPub.isBool(DsSub.Tables[0].Rows[i]["HSNCtrl"]); |
| | | DetailColl.Add(oSub); |
| | | } |
| | | sReturn = "æ¾ç¤ºåæ®æåï¼"; |
| | |
| | | ",HLastProc,HKeyProc,HFstProc,HICMOInterID,HICMOBillNo,HWWOrderInterID," + |
| | | "HWWOrderEntryID,HWWOrderBillNo,HReportQty,HBackProc" + |
| | | ",HSupID,HSupFlag,HOverRate,HMaxQty,HTechnologyParameter,HProcCheckNote,HPicNum" + |
| | | ",HMouldNo,HProcWorkNum,HSeOrderInterID,HSeOrderEntryID,HRelationQty_OutBad" + |
| | | ",HMouldNo,HProcWorkNum,HSeOrderInterID,HSeOrderEntryID,HRelationQty_OutBad,HSNCtrl" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + omodel.HBillNo + "'" + |
| | | ",'" + oSub.HCloseMan + "','" + oSub.HEntryCloseDate + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | |
| | | ",'" + oSub.HKeyProc + "','" + oSub.HFstProc + "'," + oSub.HICMOInterID.ToString() + ",'" + oSub.HICMOBillNo + "'," + oSub.HWWOrderInterID.ToString() + |
| | | "," + oSub.HWWOrderEntryID.ToString() + ",'" + oSub.HWWOrderBillNo + "'," + oSub.HReportQty.ToString() + "," + Convert.ToString(oSub.HBackProc ? 1 : 0) + |
| | | "," + oSub.HSupID.ToString() + "," + Convert.ToString(oSub.HSupFlag ? 1 : 0) + "," + oSub.HOverRate.ToString() + "," + oSub.HMaxQty.ToString() + ",'" + oSub.HTechnologyParameter + "','" + oSub.HProcCheckNote + "','" + oSub.HPicNum + "'" + |
| | | ",'" + oSub.HMouldNo + "','" + oSub.HProcWorkNum + "','" + DBUtility.ClsPub.isInt(omodel.HSeOrderInterID) + "','" + DBUtility.ClsPub.isInt(omodel.HSeOrderEntryID) + "','" + DBUtility.ClsPub.isInt(oSub.HRelationQty_OutBad) + "'" + |
| | | ",'" + oSub.HMouldNo + "','" + oSub.HProcWorkNum + "','" + DBUtility.ClsPub.isInt(omodel.HSeOrderInterID) + "','" + DBUtility.ClsPub.isInt(omodel.HSeOrderEntryID) + "','" + DBUtility.ClsPub.isInt(oSub.HRelationQty_OutBad) + "'," + Convert.ToString(oSub.HSNCtrl ? 1 : 0) + |
| | | ") "); |
| | | oCn.RunProc(sql1); |
| | | } |
| | |
| | | ",HLastProc,HKeyProc,HFstProc,HICMOInterID,HICMOBillNo,HWWOrderInterID," + |
| | | "HWWOrderEntryID,HWWOrderBillNo,HReportQty,HBackProc" + |
| | | ",HSupID,HSupFlag,HOverRate,HMaxQty,HTechnologyParameter,HProcCheckNote,HPicNum" + |
| | | ",HMouldNo,HProcWorkNum,HSeOrderInterID,HSeOrderEntryID" + |
| | | ",HMouldNo,HProcWorkNum,HSeOrderInterID,HSeOrderEntryID,HSNCtrl" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + omodel.HBillNo + "'" + |
| | | ",'" + oSub.HCloseMan + "','" + oSub.HEntryCloseDate + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | |
| | | ",'" + oSub.HKeyProc + "','" + oSub.HFstProc + "'," + oSub.HICMOInterID.ToString() + ",'" + oSub.HICMOBillNo + "'," + oSub.HWWOrderInterID.ToString() + |
| | | "," + oSub.HWWOrderEntryID.ToString() + ",'" + oSub.HWWOrderBillNo + "'," + oSub.HReportQty.ToString() + "," + Convert.ToString(oSub.HBackProc ? 1 : 0) + |
| | | "," + oSub.HSupID.ToString() + "," + Convert.ToString(oSub.HSupFlag ? 1 : 0) + "," + oSub.HOverRate.ToString() + "," + oSub.HMaxQty.ToString() + ",'" + oSub.HTechnologyParameter + "','" + oSub.HProcCheckNote + "','" + oSub.HPicNum + "'" + |
| | | ",'" + oSub.HMouldNo + "','" + oSub.HProcWorkNum + "','" + DBUtility.ClsPub.isStrNull( omodel.HSeOrderInterID) + "','" + DBUtility.ClsPub.isStrNull(omodel.HSeOrderEntryID) + "'" + |
| | | ",'" + oSub.HMouldNo + "','" + oSub.HProcWorkNum + "','" + DBUtility.ClsPub.isStrNull( omodel.HSeOrderInterID) + "','" + DBUtility.ClsPub.isStrNull(omodel.HSeOrderEntryID) + "'," + Convert.ToString(oSub.HSNCtrl ? 1 : 0) + |
| | | ") "); |
| | | sErr = sErr + sql1 + "2;"; |
| | | oCn.RunProc(sql1); |
| | |
| | | oSub.HProcCheckNote = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HProcCheckNote"]); |
| | | oSub.HMouldNo = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HMouldNo"]); |
| | | oSub.HProcWorkNum = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HProcWorkNum"]); |
| | | oSub.HSNCtrl = DBUtility.ClsPub.isBool(DsSub.Tables[0].Rows[i]["HSNCtrl"]); |
| | | |
| | | DetailColl.Add(oSub); |
| | | } |
| | |
| | | oSub.HProcCheckNote = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HProcCheckNote"]); |
| | | oSub.HMouldNo = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HMouldNo"]); |
| | | oSub.HProcWorkNum = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HProcWorkNum"]); |
| | | oSub.HSNCtrl = DBUtility.ClsPub.isBool(DsSub.Tables[0].Rows[i]["HSNCtrl"]); |
| | | DetailColl.Add(oSub); |
| | | } |
| | | sReturn = "æ¾ç¤ºåæ®æåï¼"; |
| | |
| | | oSub.HTechnologyParameter = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HTechnologyParameter"]); |
| | | oSub.HPicNum = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HPicNum"]); |
| | | oSub.HProcCheckNote = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HProcCheckNote"]); |
| | | oSub.HSNCtrl = DBUtility.ClsPub.isBool(DsSub.Tables[0].Rows[i]["HSNCtrl"]); |
| | | DetailColl.Add(oSub); |
| | | } |
| | | sReturn = "æ¾ç¤ºåæ®æåï¼"; |
| | |
| | | public string HProcCheckNote = ""; // varchar(2000) æ¬å·¥åºç¡®è®¤è®°å½ |
| | | public string HProcWorkNum = ""; // varchar(100) ç¨åºå· |
| | | public double HWorkTimes_S; //产ååä»¶å·¥æ¶ |
| | | public bool HSNCtrl; //SNç è¿ç« |
| | | |
| | | } |
| | | } |
| | |
| | | public string HMouldNo;//模å
·ç¼å· |
| | | public string HProcWorkNum;//ç¨åºå· |
| | | public string HRelationQty_OutBad;//ä¸åæ ¼æ°é |
| | | public bool HSNCtrl; //SNç è¿ç« |
| | | } |
| | | } |
| | | |
| | |
| | | public const Int16 HProcCheckNoteCol = 62; |
| | | public const Int16 HProcWorkNumCol = 63; |
| | | public const Int16 HWorkTimes_SCol = 64; |
| | | public const Int16 HSNCtrlCol = 65; |
| | | |
| | | // |
| | | public string ModName = "3301"; |
| | |
| | | grdMain.Rows[i].Cells[HSumPassRateCol].Value = oSub.HSumPassRate.ToString(); |
| | | grdMain.Rows[i].Cells[HOverRateCol].Value = oSub.HOverRate.ToString(); |
| | | grdMain.Rows[i].Cells[HWorkTimes_SCol].Value = oSub.HWorkTimes_S.ToString(); |
| | | grdMain.Rows[i].Cells[HSNCtrlCol].Value = DBUtility.ClsPub.isBool(oSub.HSNCtrl); |
| | | //ä¸éæµè½¬å·¥åº |
| | | grdMain.Rows[i].Cells[HNextProcFlagCol].Value = DBUtility.ClsPub.isBool(oSub.HNextProcFlag); |
| | | grdMain.Rows[i].Cells[HFlowProcCol].Value = DBUtility.ClsPub.isBool(oSub.HFlowProc); |
| | |
| | | oSub.HAutoTrunFlag = DBUtility.ClsPub.isBool(grdMain.Rows[i].Cells[HAutoTrunFlagCol].Value); |
| | | oSub.HProcType = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HProcTypeCol].Value); |
| | | oSub.HWorkTimes_S = DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HWorkTimes_SCol].Value); |
| | | oSub.HSNCtrl = DBUtility.ClsPub.isBool(grdMain.Rows[i].Cells[HSNCtrlCol].Value); |
| | | |
| | | oSub.HProcWorkNum = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HProcWorkNumCol].Value); |
| | | if (DBUtility.ClsPub.isSingle(grdMain.Rows[i].Cells[HPassRateCol].Value) > 0) |
| | |
| | | private void initGrid() |
| | | { |
| | | // |
| | | grdMain.ColumnCount = 65; //æ»åæ° |
| | | grdMain.ColumnCount = 66; //æ»åæ° |
| | | DBUtility.Xt_BaseBillFun.initGridFst(grdMain, this.Name); |
| | | // |
| | | grdMain.RowsDefaultCellStyle.WrapMode = DataGridViewTriState.True; |
| | |
| | | grdMain.Columns[HFlowProcCol].HeaderText = "æµè½¬å·¥åº"; |
| | | grdMain.Columns[HOverRateCol].HeaderText = "è¶
颿¯ä¾"; |
| | | grdMain.Columns[HWorkTimes_SCol].HeaderText = "产ååä»¶å·¥æ¶"; |
| | | grdMain.Columns[HSNCtrlCol].HeaderText = "SNç è¿ç«"; |
| | | ////åºå®èµå¼===================================================== |
| | | grdMain.Columns[HSnoCol].HeaderText = "åºå·"; |
| | | grdMain.Columns[HRemarkCol].HeaderText = "夿³¨"; |
| | |
| | | "," + HPicNumCol.ToString() + |
| | | "," + HProcCheckNoteCol.ToString() + |
| | | "," + HWorkTimes_SCol.ToString() + |
| | | "," + HSNCtrlCol.ToString() + |
| | | "," + HOverRateCol.ToString(); |
| | | //设置å计å |
| | | string sTotalCol = HTimeUnitCol.ToString(); |
| | |
| | | oCell5.Value = 0; |
| | | oCell5.Style.Alignment = DataGridViewContentAlignment.MiddleCenter; |
| | | grdMain.Rows[i].Cells[HFlowProcCol] = oCell5; |
| | | //SNç è¿ç« |
| | | DataGridViewCheckBoxCell oCell6 = new DataGridViewCheckBoxCell(); |
| | | oCell6.ThreeState = false; |
| | | oCell6.Value = 0; |
| | | oCell6.Style.Alignment = DataGridViewContentAlignment.MiddleCenter; |
| | | grdMain.Rows[i].Cells[HSNCtrlCol] = oCell6; |
| | | // |
| | | DataGridViewComboBoxCell column = new DataGridViewComboBoxCell(); |
| | | column.Items.Add(" "); |
| | |
| | | public const Int16 HMouldNoCol = 79; |
| | | public const Int16 HProcWorkNumCol = 80; |
| | | public const Int16 HICMOEntryIDCol = 81; |
| | | public const Int16 HSNCtrlCol = 82; |
| | | |
| | | |
| | | |
| | |
| | | grdMain.Rows[i].Cells[HTechnologyParameterCol].Value = oSub.HTechnologyParameter.ToString(); |
| | | grdMain.Rows[i].Cells[HOverRateCol].Value = oSub.HOverRate.ToString(); |
| | | grdMain.Rows[i].Cells[HMaxQtyCol].Value = oSub.HMaxQty.ToString(); |
| | | grdMain.Rows[i].Cells[HSNCtrlCol].Value = DBUtility.ClsPub.isBool(oSub.HSNCtrl); |
| | | |
| | | // |
| | | grdMain.Rows[i].Cells[HICMOBillNoCol].Value = oSub.HICMOBillNo; |
| | |
| | | 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); |
| | | oSub.HSNCtrl = DBUtility.ClsPub.isBool(grdMain.Rows[i].Cells[HSNCtrlCol].Value); |
| | | BillNew.DetailColl.Add(oSub); |
| | | } |
| | | } |
| | |
| | | { |
| | | |
| | | // |
| | | grdMain.ColumnCount = 82; //æ»åæ° |
| | | grdMain.ColumnCount = 83; //æ»åæ° |
| | | DBUtility.Xt_BaseBillFun.initGridFst(grdMain, this.Name); |
| | | // |
| | | grdMain.RowsDefaultCellStyle.WrapMode = DataGridViewTriState.True; |
| | |
| | | grdMain.Columns[HEditCol].HeaderText = "ä¸å¯ç¼è¾"; |
| | | grdMain.Columns[HOverRateCol].HeaderText = "è¶
颿¯ä¾"; |
| | | grdMain.Columns[HMaxQtyCol].HeaderText = " æé«ä¸é"; |
| | | grdMain.Columns[HSNCtrlCol].HeaderText = "SNç è¿ç«"; |
| | | |
| | | |
| | | //æ ¼å¼å |
| | |
| | | oCell2.Value = 0; |
| | | oCell2.Style.Alignment = DataGridViewContentAlignment.MiddleCenter; |
| | | grdMain.Rows[i].Cells[HEditCol] = oCell2; |
| | | //SNç è¿ç« |
| | | DataGridViewCheckBoxCell oCell3 = new DataGridViewCheckBoxCell(); |
| | | oCell3.ThreeState = false; |
| | | oCell3.Value = 0; |
| | | oCell3.Style.Alignment = DataGridViewContentAlignment.MiddleCenter; |
| | | grdMain.Rows[i].Cells[HSNCtrlCol] = oCell3; |
| | | } |
| | | //æ ¼å¼åç½æ ¼ |
| | | DBUtility.Xt_BaseBillFun.initGridLast(sAllowCol, sTotalCol, oSumGrid); |
| | |
| | | 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(); |
| | | grdMain.Rows[i].Cells[HSNCtrlCol].Value = oTable.Rows[i]["SNç è¿ç«"].ToString(); |
| | | } |
| | | |
| | | Sub_CountProcExchQty(); |