工艺路线新增模块,子表增加产品单件工时HWorkTimes_S字段
| | |
| | | ",HProcID_S,HCenterID_S,HWorkQty_S,HSubStdEmpQty_S,HMouldNo,HChangeMould" + |
| | | ",HPackStd,HPack,HPutArea,HMyWorkDays,HMyFixWorkDays,HPassRate" + |
| | | ",HTechnologyParameter,HPicNum,HProcCheckNote" + |
| | | ",HOverRate" + |
| | | ",HOverRate,HWorkTimes_S" + |
| | | ") 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.HOverRate.ToString() + "," + oSub.HWorkTimes_S.ToString() + |
| | | ") "); |
| | | } |
| | | // |
| | |
| | | ",HProcID_S,HCenterID_S,HWorkQty_S,HSubStdEmpQty_S,HMouldNo,HChangeMould" + |
| | | ",HPackStd,HPack,HPutArea,HMyWorkDays,HMyFixWorkDays,HPassRate" + |
| | | ",HTechnologyParameter,HPicNum,HProcCheckNote" + |
| | | ",HOverRate,HProcWorkNum" + |
| | | ",HOverRate,HProcWorkNum,HWorkTimes_S" + |
| | | ") 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.HOverRate.ToString() + ",'" + oSub.HProcWorkNum.ToString() + "'," + oSub.HWorkTimes_S.ToString() + |
| | | ") "); |
| | | } |
| | | // |
| | |
| | | oSub.HPicNum = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HPicNum"]); |
| | | 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"]); |
| | | DetailColl.Add(oSub); |
| | | } |
| | | sReturn = "æ¾ç¤ºåæ®æåï¼"; |
| | |
| | | public string HPicNum = ""; // varchar(200) å¾çº¸ç¼å· |
| | | public string HProcCheckNote = ""; // varchar(2000) æ¬å·¥åºç¡®è®¤è®°å½ |
| | | public string HProcWorkNum = ""; // varchar(100) ç¨åºå· |
| | | public double HWorkTimes_S; //产ååä»¶å·¥æ¶ |
| | | |
| | | } |
| | | } |
| | |
| | | public const Int16 HSumPassRateCol = 52; |
| | | public const Int16 HRemarkCol = 53; |
| | | |
| | | public const Int16 HSourceInterIDCol = 53; |
| | | public const Int16 HSourceEntryIDCol = 54; |
| | | public const Int16 HSourceBillNoCol = 55; |
| | | public const Int16 HSourceBillTypeCol = 56; |
| | | public const Int16 HRelationQtyCol = 57; |
| | | public const Int16 HRelationMoneyCol = 58; |
| | | public const Int16 HTechnologyParameterCol = 59; |
| | | public const Int16 HPicNumCol = 60; |
| | | public const Int16 HProcCheckNoteCol = 61; |
| | | public const Int16 HProcWorkNumCol = 62; |
| | | public const Int16 HSourceInterIDCol = 54; |
| | | public const Int16 HSourceEntryIDCol = 55; |
| | | public const Int16 HSourceBillNoCol = 56; |
| | | public const Int16 HSourceBillTypeCol = 57; |
| | | public const Int16 HRelationQtyCol = 58; |
| | | public const Int16 HRelationMoneyCol = 59; |
| | | public const Int16 HTechnologyParameterCol = 60; |
| | | public const Int16 HPicNumCol = 61; |
| | | public const Int16 HProcCheckNoteCol = 62; |
| | | public const Int16 HProcWorkNumCol = 63; |
| | | public const Int16 HWorkTimes_SCol = 64; |
| | | |
| | | // |
| | | public string ModName = "3301"; |
| | |
| | | grdMain.Rows[i].Cells[HPassRateCol].Value = oSub.HPassRate.ToString(); |
| | | 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[HNextProcFlagCol].Value = DBUtility.ClsPub.isBool(oSub.HNextProcFlag); |
| | | grdMain.Rows[i].Cells[HFlowProcCol].Value = DBUtility.ClsPub.isBool(oSub.HFlowProc); |
| | |
| | | oSub.HStdFlag = DBUtility.ClsPub.isBool(grdMain.Rows[i].Cells[HStdFlagCol].Value); |
| | | 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.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 = 63; //æ»åæ° |
| | | grdMain.ColumnCount = 65; //æ»åæ° |
| | | DBUtility.Xt_BaseBillFun.initGridFst(grdMain, this.Name); |
| | | // |
| | | grdMain.RowsDefaultCellStyle.WrapMode = DataGridViewTriState.True; |
| | |
| | | grdMain.Columns[HNextProcFlagCol].HeaderText = "ä¸éæµè½¬å·¥åº"; |
| | | grdMain.Columns[HFlowProcCol].HeaderText = "æµè½¬å·¥åº"; |
| | | grdMain.Columns[HOverRateCol].HeaderText = "è¶
颿¯ä¾"; |
| | | grdMain.Columns[HWorkTimes_SCol].HeaderText = "产ååä»¶å·¥æ¶"; |
| | | ////åºå®èµå¼===================================================== |
| | | grdMain.Columns[HSnoCol].HeaderText = "åºå·"; |
| | | grdMain.Columns[HRemarkCol].HeaderText = "夿³¨"; |
| | |
| | | "," + HRemarkCol.ToString() + |
| | | "," + HTechnologyParameterCol.ToString() + |
| | | "," + HPicNumCol.ToString() + |
| | | "," + HProcCheckNoteCol.ToString()+ |
| | | "," + HProcCheckNoteCol.ToString() + |
| | | "," + HWorkTimes_SCol.ToString() + |
| | | "," + HOverRateCol.ToString(); |
| | | //设置å计å |
| | | string sTotalCol = HTimeUnitCol.ToString(); |
| | |
| | | ",HPackStd,HPack,HPutArea,HMyWorkDays,HMyFixWorkDays,HPassRate" + |
| | | ",HTechnologyParameter,HPicNum,HProcCheckNote" + |
| | | ",HOverRate,HProcWorkNum,HBadWHID,HWasterWHID, HWHID,HIsTime,HEstimate " + |
| | | ",HWorkTimes_S " + |
| | | ") values(" |
| | | + HInterID + "," + i + "," + oSub.HProcID.ToString() + ",'" + oSub.HProcNo + "'," + oSub.HSupID.ToString() + "," + Convert.ToString(oSub.HSupFlag ? 1 : 0) + "" + |
| | | "," + oSub.HWorkQty.ToString() + "," + oSub.HCenterID.ToString() + ",'" + oSub.HTimeUnit.ToString() + "'," + oSub.HUnitTime.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.HBadWHID.ToString() + "," + oSub.HWasterWHID.ToString() + "," + oSub.HWHID.ToString() + "," + Convert.ToString(oSub.HIsTime ? 1 : 0) + "," + oSub.HEstimate.ToString() + |
| | | ", " + oSub.HWorkTimes_S.ToString() + |
| | | ") "); |
| | | //计价æ¹å¼ä¸ä¸ºè®¡æ¶ï¼åæè®¡æ¶æä¼°åæ®µæ´æ°ä¸ºç©º |
| | | if (oSub.HIsTime == false) |
| | |
| | | ",HTechnologyParameter,HPicNum,HProcCheckNote" + |
| | | ",HOverRate,HProcWorkNum,HBadWHID,HWasterWHID, HWHID,HEstimate,HIsTime" + |
| | | ",HQCSchemeID_Fst,HQCSchemeID_Proc,HQCSchemeID_Patrol" + |
| | | ",HWorkTimes_S " + |
| | | ") values(" |
| | | + HInterID + "," + i + "," + oSub.HProcID.ToString() + ",'" + oSub.HProcNo + "'," + oSub.HSupID.ToString() + "," + Convert.ToString(oSub.HSupFlag ? 1 : 0) + "" + |
| | | "," + oSub.HWorkQty.ToString() + "," + oSub.HCenterID.ToString() + ",'" + oSub.HTimeUnit.ToString() + "'," + oSub.HUnitTime.ToString() + |
| | |
| | | ",'" + oSub.HTechnologyParameter.ToString() + "','" + oSub.HPicNum.ToString() + "','" + oSub.HProcCheckNote.ToString() + |
| | | "', " + oSub.HOverRate.ToString() + ",'" + oSub.HProcWorkNum.ToString() + "'," + oSub.HBadWHID.ToString() + "," + oSub.HWasterWHID.ToString() + "," + oSub.HWHID.ToString() + "," + oSub.HEstimate.ToString() + "," + Convert.ToString(oSub.HIsTime ? 1 : 0) + "," + oSub.HQCSchemeID_Fst + "," + |
| | | oSub.HQCSchemeID_Proc + "," + oSub.HQCSchemeID_Patrol + |
| | | ", " + oSub.HWorkTimes_S.ToString() + |
| | | ") "); |
| | | //计价æ¹å¼ä¸ä¸ºè®¡æ¶ï¼åæè®¡æ¶æä¼°åæ®µæ´æ°ä¸ºç©º |
| | | if (oSub.HIsTime == false) |
| | |
| | | public string HPicNum = ""; // varchar(200) å¾çº¸ç¼å· |
| | | public string HProcCheckNote = ""; // varchar(2000) æ¬å·¥åºç¡®è®¤è®°å½ |
| | | public string HProcWorkNum = ""; // varchar(100) ç¨åºå· |
| | | public double HWorkTimes_S; //产ååä»¶å·¥æ¶ |
| | | |
| | | //ççªæ°å åæ®µ |
| | | public int HBadWHID { get; set; } //ä¸è¯åä» |
| | |
| | | </basicHttpBinding> |
| | | </bindings> |
| | | <client> |
| | | <endpoint address="http://192.168.1.57:8082/WEBS-WMS/WebService1.asmx" binding="basicHttpBinding" |
| | | <endpoint address="http://192.168.63.20/WEBS-WMS/WebService1.asmx" binding="basicHttpBinding" |
| | | bindingConfiguration="WebService1Soap" contract="Webs1.WebService1Soap" |
| | | name="WebService1Soap" /> |
| | | </client> |
| | |
| | | <applicationSettings> |
| | | <WebAPI.Properties.Settings> |
| | | <setting name="WebAPI_WebS_WebService1" serializeAs="String"> |
| | | <value>http://192.168.1.57:8082/WEBS-WMS/WebService1.asmx</value> |
| | | <value>http://192.168.63.20/WEBS-WMS/WebService1.asmx</value> |
| | | </setting> |
| | | </WebAPI.Properties.Settings> |
| | | </applicationSettings> |