| | |
| | | <Compile Include="æºå\éè¶æºå\Cls_S_Sc_ICMOBillList_K3.cs" /> |
| | | <Compile Include="æºå\éè¶æºå\Cls_S_K3_EntrustInBillList.cs" /> |
| | | <Compile Include="æºå\éè¶æºå\Cls_S_KF_ChangeBoxBillList.cs" /> |
| | | <Compile Include="ç产管ç\ClsGy_SourceWorkStationSet.cs" /> |
| | | <Compile Include="ç产管ç\ClsSc_ChangeNoteBill.cs" /> |
| | | <Compile Include="ç产管ç\ClsSc_WIPStockChangeBill.cs" /> |
| | | <Compile Include="ç产管ç\ClsSc_WIPStockCheckBill.cs" /> |
| | |
| | | throw (e); |
| | | } |
| | | } |
| | | |
| | | //æ°å¢åæ® |
| | | public bool AddBill1(ref string sReturn) |
| | | { |
| | | try |
| | | { |
| | | //è¥MAINDIéå¤åéæ°è·å |
| | | oCn.BeginTran(); |
| | | string sql = "Insert into Sc_ICMOBillQualityStatus_Tmp"+ |
| | | "(HBarCode,HInterID,HBillNo,HCheckManID,HBadReasonID,HWasterReasonID,HResult,HAddr," + |
| | | "HRemark,HSaveType,HICMOInterID,HICMOEntryID,HICMOBillNo,HSplitNo,HMaterID,HProcID,HSourceID,HDate,HGroupID,HDeptID,HStationID," + |
| | | "HPRDORGID,HAuxPropID,HBillType,HBillSubType,HReportType,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationInterID," + |
| | | "HRelationEntryID,HRelationBillNo,HMaker,HMakeDate)" + |
| | | "values(" + |
| | | "'" + omodel.HBarCode + |
| | | "'," + omodel.HInterID + |
| | | ",'" + omodel.HBillNo + |
| | | "'," + omodel.HCheckManID + |
| | | "," + omodel.HBadReasonID + |
| | | "," + omodel.HWasterReasonID + |
| | | ",'" + omodel.HResult + |
| | | "','" + omodel.HAddr + |
| | | "','" + omodel.HRemark + |
| | | "','" + omodel.HSaveType + |
| | | "'," + omodel.HICMOInterID + |
| | | "," + omodel.HICMOEntryID + |
| | | ",'" + omodel.HICMOBillNo + |
| | | "','" + omodel.HSplitNO + |
| | | "'," + omodel.HMaterID + |
| | | "," + omodel.HProcID + |
| | | "," + omodel.HSourceID + |
| | | ",'" + omodel.HDate + |
| | | "'," + omodel.HGroupID + |
| | | "," + omodel.HDeptID + |
| | | "," + omodel.HStationID + |
| | | "," + omodel.HPRDORGID + |
| | | "," + omodel.HAuxPropID + |
| | | ",'" + BillType + |
| | | "','" + "" + |
| | | "'," + omodel.HReportType + |
| | | "," + omodel.HSourceInterID + |
| | | "," + omodel.HSourceEntryID + |
| | | ",'" + omodel.HSourceBillNo + |
| | | "','" + omodel.HSourceBillType + |
| | | "'," + omodel.HRelationInterID + |
| | | "," + omodel.HRelationEntryID + |
| | | ",'" + omodel.HRelationBillNo + |
| | | "','" + omodel.HMaker + |
| | | "','" + omodel.HMakeDate + |
| | | "')"; |
| | | |
| | | //主表 |
| | | oCn.RunProc(sql); |
| | | sReturn = "æ°å¢åæ®æåï¼"; |
| | | oCn.Commit(); |
| | | return true; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | sReturn = e.Message; |
| | | oCn.RollBack(); |
| | | throw (e); |
| | | } |
| | | } |
| | | |
| | | //æ¾ç¤ºåæ® |
| | | public override bool ShowBill(Int64 lngBillKey, ref string sReturn) |
| | | { |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | using System.Data; |
| | | |
| | | namespace DAL |
| | | { |
| | | public class ClsGy_SourceWorkStationSet : DBUtility.ClsGy_Base_Ctl |
| | | { |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | public Model.ClsGy_SourceWorkStationSet oModel = new Model.ClsGy_SourceWorkStationSet(); |
| | | //æé 彿° |
| | | public ClsGy_SourceWorkStationSet() |
| | | { |
| | | MvarItemKey = "Gy_SourceWorkStationSet"; |
| | | MvarReportTitle = "产线工ä½"; |
| | | oModel = new Model.ClsGy_SourceWorkStationSet(); |
| | | } |
| | | |
| | | //æ°å¢ |
| | | public override bool AddNew() |
| | | { |
| | | try |
| | | { |
| | | string ssql = "Insert into " + MvarItemKey + " " + |
| | | "(HMacAddr,HSourceID,HProdOrgID,HWorkStationID,HProcID," + |
| | | " HType,HVideo,HRemark,HCreateDate,HCreator)" + |
| | | " Values('" + oModel.HMacAddr + "'," + oModel.HSourceID + "," + oModel.HProdOrgID + "," + oModel.HWorkStationID + "," |
| | | + oModel.HProcID + ",'" + oModel.HType + "'," + oModel.HVideo + ",'" + oModel.HRemark + "','" |
| | | + oModel.HCreateDate + "','" + oModel.HCreator + "')"; |
| | | oCn.BeginTran(); |
| | | oCn.RunProc(ssql, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | oCn.Commit(); |
| | | return true; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | oCn.RollBack(); |
| | | throw (e); |
| | | } |
| | | } |
| | | |
| | | //ä¿®æ¹ |
| | | public override bool ModifyByID(Int64 sItemID) |
| | | { |
| | | try |
| | | { |
| | | string ssql = "Update " + MvarItemKey + " set " + |
| | | "HMacAddr='" + oModel.HMacAddr + "'" + |
| | | ",HSourceID='" + oModel.HSourceID + "'" + |
| | | ",HProdOrgID='" + oModel.HProdOrgID + "'" + |
| | | ",HWorkStationID= '" + oModel.HWorkStationID + "'" + |
| | | ",HProcID='" + oModel.HProcID + "'" + |
| | | ",HType='" + oModel.HType + "'" + |
| | | ",HVideo='" + oModel.HVideo +"' Where HItemID = " + sItemID; |
| | | oCn.BeginTran(); |
| | | oCn.RunProc(ssql, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | oCn.Commit(); |
| | | return true; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | oCn.RollBack(); |
| | | throw (e); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | { |
| | | try |
| | | { |
| | | //ä¿ååæ§å¶========================================= |
| | | string HBillNote = ""; |
| | | DataSet ds = oCn.RunProcReturn("Exec h_p_Sc_ICMOBill_BeforeSaveCtrl " + lngBillKey.ToString() + ", '" + omodel.HBillNo + "','" + HBillNote + "',2 ", "h_p_Sc_ICMOBill_BeforeSaveCtrl"); |
| | | if (ds == null) |
| | | { |
| | | sReturn = "ä¿ååå¤æå¤±è´¥ï¼"; |
| | | return false; |
| | | } |
| | | if (DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBack"]) != "0") |
| | | { |
| | | sReturn = "ä¿å失败ï¼" + DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBackRemark"]); |
| | | return false; |
| | | } |
| | | //========================================================= |
| | | |
| | | // |
| | | oCn.BeginTran(); |
| | | //æ´æ°ä¸»è¡¨ |
| | |
| | | // "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | // ") "); |
| | | //} |
| | | |
| | | //=========================ä¿ååæ§å¶ |
| | | DataSet ds2 = oCn.RunProcReturn("Exec h_p_Sc_ICMOBill_AfterSaveCtrl " + lngBillKey.ToString() + ", '" + omodel.HBillNo + "',2 ", "h_p_Sc_ICMOBill_AfterSaveCtrl"); |
| | | if (ds2 == null) |
| | | { |
| | | sReturn = "ä¿ååæ§å¶å¤æå¤±è´¥ï¼"; |
| | | oCn.RollBack(); |
| | | return false; |
| | | } |
| | | if (DBUtility.ClsPub.isStrNull(ds2.Tables[0].Rows[0]["HBack"]) != "0") |
| | | { |
| | | sReturn = "ä¿å失败2ï¼" + DBUtility.ClsPub.isStrNull(ds2.Tables[0].Rows[0]["HBackRemark"]); |
| | | oCn.RollBack(); |
| | | return false; |
| | | } |
| | | //============================ |
| | | |
| | | |
| | | |
| | | sReturn = "ä¿®æ¹åæ®æåï¼"; |
| | | oCn.Commit(); |
| | | return true; |
| | |
| | | throw (e); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | //æ°å¢åæ® |
| | | public override bool AddBill(ref string sReturn) |
| | | { |
| | |
| | | { |
| | | //å¾å°mainid |
| | | omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //è¥MAINDIéå¤åéæ°è·å |
| | | |
| | | //ä¿ååæ§å¶=========================h_p_Sc_ICMOBill_BeforeDeleteCtrl |
| | | string HBillNote = ""; |
| | | DataSet ds = oCn.RunProcReturn("Exec h_p_Sc_ICMOBill_BeforeSaveCtrl " + omodel.HInterID.ToString() + ", '"+ omodel.HBillNo +"','" + HBillNote + "','1' ", "h_p_Sc_ICMOBill_BeforeSaveCtrl"); |
| | | if(ds==null) |
| | | { |
| | | sReturn = "ä¿ååå¤æå¤±è´¥ï¼"; |
| | | return false; |
| | | } |
| | | if(DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBack"])!= "0") |
| | | { |
| | | sReturn = "ä¿å失败ï¼" + DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBackRemark"]) ; |
| | | return false; |
| | | } |
| | | //========================================================= |
| | | |
| | | oCn.BeginTran(); |
| | | //主表 |
| | | oCn.RunProc("Insert Into Sc_ICMOBillMain " + |
| | |
| | | // "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | // ") "); |
| | | //} |
| | | |
| | | |
| | | //=========================ä¿ååæ§å¶ |
| | | DataSet ds2 = oCn.RunProcReturn("Exec h_p_Sc_ICMOBill_AfterSaveCtrl " + omodel.HInterID.ToString() + ", '" + omodel.HBillNo + "',1 ", "h_p_Sc_ICMOBill_AfterSaveCtrl"); |
| | | if (ds2 == null) |
| | | { |
| | | sReturn = "ä¿ååæ§å¶å¤æå¤±è´¥ï¼"; |
| | | oCn.RollBack(); |
| | | return false; |
| | | } |
| | | if (DBUtility.ClsPub.isStrNull(ds2.Tables[0].Rows[0]["HBack"]) != "0") |
| | | { |
| | | sReturn = "ä¿å失败2ï¼" + DBUtility.ClsPub.isStrNull(ds2.Tables[0].Rows[0]["HBackRemark"]); |
| | | oCn.RollBack(); |
| | | return false; |
| | | } |
| | | //============================ |
| | | |
| | | |
| | | sReturn = "æ°å¢åæ®æåï¼"; |
| | | oCn.Commit(); |
| | | return true; |
| | |
| | | throw (e); |
| | | } |
| | | } |
| | | |
| | | |
| | | //æ¾ç¤ºåæ® |
| | | public override bool ShowBill(Int64 lngBillKey, ref string sReturn) |
| | | { |
| | |
| | | //æå
³èæ°éåä¸å
许å é¤ |
| | | DataSet ds; |
| | | ds = oCn.RunProcReturn("exec h_p_Mes_ICMODeleteCtrl " + lngBillKey.ToString(), "h_p_Mes_ICMODeleteCtrl"); |
| | | if(ds==null || ds.Tables[0].Rows.Count==0) |
| | | //ds = oCn.RunProcReturn("exec h_p_Sc_ICMOBill_BeforeDeleteCtrl " + lngBillKey.ToString(), "h_p_Sc_ICMOBill_BeforeDeleteCtrl"); |
| | | if (ds==null || ds.Tables[0].Rows.Count==0) |
| | | { |
| | | sReturn = "夿å
³èæ°é失败,260è¡! "; |
| | | sReturn = "夿å
³èæ°é失败! "; |
| | | return false; |
| | | } |
| | | if (DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HBack"]) != 0) |
| | |
| | | { |
| | | try |
| | | { |
| | | //ä¿ååæ§å¶========================================= |
| | | string HBillNote = ""; |
| | | DataSet ds = oCn.RunProcReturn("Exec h_p_Sc_ICMOReportBill_BeforeSaveCtrl " + lngBillKey.ToString() + ", '" + omodel.HBillNo + "','" + HBillNote + "',2 ", "h_p_Sc_ICMOReport_BeforeSaveCtrl"); |
| | | if (ds == null) |
| | | { |
| | | sReturn = "ä¿ååå¤æå¤±è´¥ï¼"; |
| | | return false; |
| | | } |
| | | if (DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBack"]) != "0") |
| | | { |
| | | sReturn = "ä¿å失败ï¼" + DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBackRemark"]); |
| | | return false; |
| | | } |
| | | //========================================================= |
| | | |
| | | |
| | | // |
| | | DataSet Ds; |
| | | oCn.BeginTran(); |
| | |
| | | // return false; |
| | | // } |
| | | //} |
| | | |
| | | |
| | | //=========================ä¿ååæ§å¶ |
| | | DataSet ds2 = oCn.RunProcReturn("Exec h_p_Sc_ICMOReportBill_AfterSaveCtrl " + lngBillKey.ToString() + ", '" + omodel.HBillNo + "',2 ", "h_p_Sc_ICMOReportBill_AfterSaveCtrl"); |
| | | if (ds2 == null) |
| | | { |
| | | sReturn = "ä¿ååæ§å¶å¤æå¤±è´¥ï¼"; |
| | | oCn.RollBack(); |
| | | return false; |
| | | } |
| | | if (DBUtility.ClsPub.isStrNull(ds2.Tables[0].Rows[0]["HBack"]) != "0") |
| | | { |
| | | sReturn = "ä¿å失败2ï¼" + DBUtility.ClsPub.isStrNull(ds2.Tables[0].Rows[0]["HBackRemark"]); |
| | | oCn.RollBack(); |
| | | return false; |
| | | } |
| | | //============================ |
| | | |
| | | |
| | | sReturn = "ä¿®æ¹åæ®æåï¼"; |
| | | oCn.Commit(); |
| | | return true; |
| | |
| | | { |
| | | //å¾å°mainid |
| | | omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //è¥MAINDIéå¤åéæ°è·å |
| | | //ä¿ååæ§å¶========================================= |
| | | string HBillNote = ""; |
| | | DataSet ds = oCn.RunProcReturn("Exec h_p_Sc_ICMOReportBill_BeforeSaveCtrl " + omodel.HInterID.ToString() + ", '" + omodel.HBillNo + "','" + HBillNote + "',1 ", "h_p_Sc_ICMOReport_BeforeSaveCtrl"); |
| | | if (ds == null) |
| | | { |
| | | sReturn = "ä¿ååå¤æå¤±è´¥ï¼"; |
| | | return false; |
| | | } |
| | | if (DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBack"]) != "0") |
| | | { |
| | | sReturn = "ä¿å失败ï¼" + DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBackRemark"]); |
| | | return false; |
| | | } |
| | | //========================================================= |
| | | |
| | | oCn.BeginTran(); |
| | | //主表 |
| | | oCn.RunProc("Insert Into Sc_ICMOReportBillMain " + |
| | |
| | | // } |
| | | //} |
| | | // |
| | | |
| | | //=========================ä¿ååæ§å¶ |
| | | DataSet ds2 = oCn.RunProcReturn("Exec h_p_Sc_ICMOReportBill_AfterSaveCtrl " + omodel.HInterID.ToString() + ", '" + omodel.HBillNo + "',1 ", "h_p_Sc_ICMOReportBill_AfterSaveCtrl"); |
| | | if (ds2 == null) |
| | | { |
| | | sReturn = "ä¿ååæ§å¶å¤æå¤±è´¥ï¼"; |
| | | oCn.RollBack(); |
| | | return false; |
| | | } |
| | | if (DBUtility.ClsPub.isStrNull(ds2.Tables[0].Rows[0]["HBack"]) != "0") |
| | | { |
| | | sReturn = "ä¿å失败2ï¼" + DBUtility.ClsPub.isStrNull(ds2.Tables[0].Rows[0]["HBackRemark"]); |
| | | oCn.RollBack(); |
| | | return false; |
| | | } |
| | | //============================ |
| | | |
| | | |
| | | sReturn = "æ°å¢åæ®æåï¼"; |
| | | oCn.Commit(); |
| | | return true; |
| | |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | try |
| | | { |
| | | oCn.BeginTran(); |
| | | oCn.BeginTran();//h_p_Sc_ICMOReportBill_BeforeDeleteCtrl |
| | | DataSet Ds = oCn.RunProcReturn("exec h_p_Sc_ICMOReportBill_Delete " + lngBillKey + ",'" + HBillNo + "','" + BillType + "','" + HERPMode + "','" + HUpdateSourceInterID + "'", "h_p_Sc_ICMOReportBill_Delete"); |
| | | if (Ds == null || Ds.Tables[0].Rows.Count == 0) |
| | | { |
| | |
| | | public ClsQC_FirstPieceCheckBill() |
| | | { |
| | | base.MvarItemKeySub = "QC_FirstPieceCheckBillSub"; |
| | | base.MvarItemKeySub2 = ""; |
| | | base.MvarItemKeySub2 = "QC_FirstPieceCheckBillSub_ValueGrid"; |
| | | base.MvarItemKeySub3 = ""; |
| | | base.MvarItemKeySub4 = ""; |
| | | base.MvarItemKey="QC_FirstPieceCheckBillMain"; |
| | |
| | | ",HYear,HPeriod,HRemark" + |
| | | ",HSourceID,HICMOInterID,HICMOBillNo,HICMOQty,HProcExchInterID,HProcExchEntryID" + |
| | | ",HProcExchBillNo,HProcExchQty,HMaterID,HFirstCheckEmp,HLastResult" + |
| | | ",HMainSourceInterID,HMainSourceEntryID,HMainSourceBillNo,HMainSourceBillType,HICMOEntryID" + |
| | | ",HMainSourceInterID,HMainSourceEntryID,HMainSourceBillNo,HMainSourceBillType,HICMOEntryID,HQCSchemeID" + |
| | | ") " + |
| | | " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "'," + omodel.HBillStatus.ToString() + ",'" + omodel.HDate + "','" + omodel.HMaker + "',getdate()" + |
| | | "," + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "'" + |
| | | "," + omodel.HSourceID.ToString() + "," + omodel.HICMOInterID.ToString() + ",'" + omodel.HICMOBillNo + "'," + omodel.HICMOQty.ToString() + "," + omodel.HProcExchInterID.ToString() + "," + omodel.HProcExchEntryID.ToString() + |
| | | ",'" + omodel.HProcExchBillNo + "'," + omodel.HProcExchQty.ToString() + "," + omodel.HMaterID.ToString() + "," + omodel.HFirstCheckEmp.ToString() + ", " + DBUtility.ClsPub.BoolToString(omodel.HLastResult) + |
| | | "," + omodel.HMainSourceInterID + "," + omodel.HMainSourceEntryID + ",'" + omodel.HMainSourceBillNo + "','" + omodel.HMainSourceBillType + "'," + omodel.HICMOEntryID + |
| | | "," + omodel.HMainSourceInterID + "," + omodel.HMainSourceEntryID + ",'" + omodel.HMainSourceBillNo + "','" + omodel.HMainSourceBillType + "'," + omodel.HICMOEntryID + "," + omodel.HQCSchemeID + |
| | | ") "); |
| | | //æå
¥å表 |
| | | foreach (Model.ClsQC_FirstPieceCheckBillSub oSub in DetailColl) |
| | |
| | | ",HQCCheckItemID,HQCStd,HUnit,HQCNote,HResult" + |
| | | ",HMax,HMin,HAvg,HSampleSchemeID,HSampleQty,HSampleDamageQty,HAcceptQty" + |
| | | ",HRejectQty,HSampleUnRightQty,HStatus,HUnitID,HInspectVal,HTargetVal" + |
| | | ",HUpLimit,HDownLimit,HUpOffSet,HDownOffSet,HKeyInspect,HAnalysisMethod" + |
| | | ",HUpLimit,HDownLimit,HUpOffSet,HDownOffSet,HKeyInspect,HAnalysisMethod,HInspectInstruMentID,HInspectResult" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + ",'" + oSub.HBillNo_bak + "'," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'" + |
| | | ",getdate()," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'," + oSub.HSourceInterID.ToString() + |
| | |
| | | ",'" + oSub.HMax + "','" + oSub.HMin + "','" + oSub.HAvg + "'" + "," + oSub.HSampleSchemeID + "," + oSub.HSampleQty + |
| | | "," + oSub.HSampleDamageQty + "," + oSub.HAcceptQty + "," + oSub.HRejectQty + "," + oSub.HSampleUnRightQty + ",'" + oSub.HStatus + |
| | | "'," + oSub.HUnitID + ",'" + oSub.HInspectVal + "','" + oSub.HTargetVal + "','" + oSub.HUpLimit + "','" + oSub.HDownLimit + |
| | | "','" + oSub.HUpOffSet + "','" + oSub.HDownOffSet + "'," + oSub.HKeyInspect + ",'" + oSub.HAnalysisMethod + "'" + |
| | | ") "); |
| | | "','" + oSub.HUpOffSet + "','" + oSub.HDownOffSet + "'," + oSub.HKeyInspect + ",'" + oSub.HAnalysisMethod + "'," + oSub.HInspectInstruMentID + ",'" + oSub.HInspectResult + "'" + ") "); |
| | | } |
| | | //foreach (Model.ClsQC_FirstPieceCheckBillSub_Item oSub2 in DetailColl1) |
| | | //{ |
| | |
| | | { |
| | | public Model.ClsQC_ProcessCheckBillMain omodel = new Model.ClsQC_ProcessCheckBillMain(); |
| | | public List<Model.ClsQC_ProcessCheckBillSub> DetailColl = new List<Model.ClsQC_ProcessCheckBillSub>(); |
| | | |
| | | public List<Model.ClsQC_ProcessCheckBillSub_ValueGrid> DetailColl_Value = new List<Model.ClsQC_ProcessCheckBillSub_ValueGrid>(); |
| | | public ClsQC_ProcessCheckBill() |
| | | { |
| | | base.MvarItemKeySub = "QC_ProcessCheckBillSub"; |
| | | base.MvarItemKeySub2 = ""; |
| | | base.MvarItemKeySub2 = "QC_ProcessCheckBillSub_ValueGrid"; |
| | | base.MvarItemKeySub3 = ""; |
| | | base.MvarItemKeySub4 = ""; |
| | | base.MvarItemKey="QC_ProcessCheckBillMain"; |
| | |
| | | ",HBarCode,HLBatchNo,HCusID,HSortBillNo,HContrctBatchNo" + |
| | | ",HProdAreaID,HProdTypeID,HProdStoveNo,HRecipeID,HDiameter1" + |
| | | ",HDiameter2,HRoutingInterID,HDrawingDireID,HPackTypeID" + |
| | | ",HMainSourceInterID,HMainSourceEntryID,HMainSourceBillNo,HMainSourceBillType,HICMOEntryID" + |
| | | ",HMainSourceInterID,HMainSourceEntryID,HMainSourceBillNo,HMainSourceBillType,HICMOEntryID,HQCSchemeID" + |
| | | ") " + |
| | | " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "'," + omodel.HBillStatus.ToString() + ",'" + omodel.HDate + "','" + omodel.HMaker + "',getdate()" + |
| | | "," + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "'"+ |
| | |
| | | ",'" + omodel.HBarCode + "','" + omodel.HLBatchNo + "'," + omodel.HCusID.ToString() + ",'" + omodel.HSortBillNo + "','" + omodel.HContrctBatchNo + "'" + |
| | | "," + omodel.HProdAreaID.ToString() + "," + omodel.HProdTypeID.ToString() + ",'" + omodel.HProdStoveNo + "'," + omodel.HRecipeID.ToString() + "," + omodel.HDiameter1.ToString() + |
| | | "," + omodel.HDiameter2.ToString() + "," + omodel.HRoutingInterID.ToString() + ",'" + omodel.HDrawingDireID + "'," + omodel.HPackTypeID.ToString() + |
| | | "," + omodel.HMainSourceInterID + "," + omodel.HMainSourceEntryID + ",'" + omodel.HMainSourceBillNo + "','" + omodel.HMainSourceBillType + "'," + omodel.HICMOEntryID + |
| | | "," + omodel.HMainSourceInterID + "," + omodel.HMainSourceEntryID + ",'" + omodel.HMainSourceBillNo + "','" + omodel.HMainSourceBillType + "'," + omodel.HICMOEntryID + "," + omodel.HQCSchemeID + |
| | | ") "); |
| | | //æå
¥å表 |
| | | foreach (Model.ClsQC_ProcessCheckBillSub oSub in DetailColl) |
| | |
| | | ",HEntryCloseDate,HCloseType,HRemark,HSourceInterID" + |
| | | ",HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HQCCheckClassID,HQCCheckItemID,HQCStd,HQCRelValue,HResult" + |
| | | ",HProcCheckEmp,HProcCheckTime" + |
| | | ",HProcCheckEmp,HProcCheckTime, HSampleSchemeID,HSampleQty,HSampleDamageQty,HAcceptQty" + |
| | | ",HRejectQty,HSampleUnRightQty,HStatus,HUnitID,HInspectVal,HTargetVal" + |
| | | ",HUpLimit,HDownLimit,HUpOffSet,HDownOffSet,HKeyInspect,HAnalysisMethod,HInspectInstruMentID,HInspectResult" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + ",'" + oSub.HBillNo_bak + "'," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'" + |
| | | ",getdate()," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'," + oSub.HSourceInterID.ToString() + |
| | | "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | "," + oSub.HQCCheckClassID.ToString() + "," + oSub.HQCCheckItemID.ToString() + ",'" + oSub.HQCStd + "','" + oSub.HQCRelValue + "','" + oSub.HResult + "'" + |
| | | "," + oSub.HProcCheckEmp.ToString() + ",'" + oSub.HProcCheckTime + "'" + |
| | | "," + oSub.HProcCheckEmp.ToString() + ",'" + oSub.HProcCheckTime + "'," + oSub.HSampleSchemeID + "," + oSub.HSampleQty + |
| | | "," + oSub.HSampleDamageQty + "," + oSub.HAcceptQty + "," + oSub.HRejectQty + "," + oSub.HSampleUnRightQty + ",'" + oSub.HStatus + |
| | | "'," + oSub.HUnitID + ",'" + oSub.HInspectVal + "','" + oSub.HTargetVal + "','" + oSub.HUpLimit + "','" + oSub.HDownLimit + |
| | | "','" + oSub.HUpOffSet + "','" + oSub.HDownOffSet + "'," + oSub.HKeyInspect + ",'" + oSub.HAnalysisMethod + "'," + oSub.HInspectInstruMentID + ",'" + oSub.HInspectResult + "'" + |
| | | ") "); |
| | | } |
| | | |
| | |
| | | throw (e); |
| | | } |
| | | } |
| | | |
| | | //æ°å¢æ£éªå¼ |
| | | public virtual bool AddValue(ref string sReturn, ref long HInterID, ref long HEntryID) |
| | | { |
| | | try |
| | | { |
| | | oCn.BeginTran(); |
| | | |
| | | oCn.RunProc("delete from QC_ProcessCheckBillSub_ValueGrid where HInterID = " + HInterID + " and HEntryID = " + HEntryID); |
| | | |
| | | //æå
¥å表 |
| | | foreach (Model.ClsQC_ProcessCheckBillSub_ValueGrid value in DetailColl_Value) |
| | | { |
| | | oCn.RunProc("Insert into QC_ProcessCheckBillSub_ValueGrid " + |
| | | " (HInterID,HEntryID,HSEQ,HInSpectResult" + |
| | | ",HInSpectValue,HInSpectValueB,HInSpectValueT" + |
| | | ") values(" |
| | | + HInterID + "," + HEntryID + "," + value.HSEQ + ",'" + value.HInSpectResult + "'," + |
| | | value.HInSpectValue + "," + value.HInSpectValueB + ",'" + value.HInSpectValueT + "'" + |
| | | ") "); |
| | | } |
| | | sReturn = "æ°å¢æ£éªå¼æåï¼"; |
| | | oCn.Commit(); |
| | | return true; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | sReturn = e.Message; |
| | | oCn.RollBack(); |
| | | throw (e); |
| | | } |
| | | } |
| | | |
| | | //æ¾ç¤ºåæ® |
| | | public override bool ShowBill(Int64 lngBillKey, ref string sReturn) |
| | | { |
| | |
| | | { |
| | | try |
| | | { |
| | | //ä¿ååæ§å¶========================================= |
| | | string HBillNote = ""; |
| | | DataSet ds = oCn.RunProcReturn("Exec h_p_Sc_ProcessExchangeBill_BeforeSaveCtrl " + lngBillKey.ToString() + ", '" + omodel.HBillNo + "','" + HBillNote + "',2 ", "h_p_Sc_ProcessExchangeBill_BeforeSaveCtrl"); |
| | | if (ds == null) |
| | | { |
| | | sReturn = "ä¿ååå¤æå¤±è´¥ï¼"; |
| | | return false; |
| | | } |
| | | if (DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBack"]) != "0") |
| | | { |
| | | sReturn = "ä¿å失败ï¼" + DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBackRemark"]); |
| | | return false; |
| | | } |
| | | //========================================================= |
| | | |
| | | |
| | | // |
| | | oCn.BeginTran(); |
| | | string sql = string.Format(@"UpDate Sc_ProcessExchangeBillMain set " + |
| | |
| | | //oCn.RunProc("exec h_p_Sc_ProcessExchangeBill_SetDate " + omodel.HInterID.ToString()); //åå¡« å¼å·¥å®å·¥æ¥æ |
| | | //oCn.RunProc("exec h_p_Sc_ProcessExchangeBill_RelationQty " + omodel.HInterID.ToString() + ",1"); //è¿å·¥æµè½¬å¡ åå æåæ°é åå¡«ä»»å¡å æµè½¬å¡æ°é åå¡«ä»»å¡åä¸éæ°é |
| | | //æ§å¶å
³èæ°é |
| | | DataSet ds = new DataSet(); |
| | | //DataSet ds = new DataSet(); |
| | | ds = oCn.RunProcReturn("exec h_p_Sc_ProcessExchangeBill_Checkqty " + omodel.HInterID.ToString(), "h_p_Sc_ProcessExchangeBill_Checkqty"); |
| | | if (DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HBack"]) != 0) |
| | | { |
| | |
| | | return false; |
| | | } |
| | | // |
| | | //=========================ä¿ååæ§å¶ |
| | | DataSet ds2 = oCn.RunProcReturn("Exec h_p_Sc_ProcessExchangeBill_AfterSaveCtrl " + omodel.HInterID.ToString() + ", '" + omodel.HBillNo + "',2 ", "h_p_Sc_ProcessExchangeBill_AfterSaveCtrl"); |
| | | if (ds2 == null) |
| | | { |
| | | sReturn = "ä¿ååæ§å¶å¤æå¤±è´¥ï¼"; |
| | | oCn.RollBack(); |
| | | return false; |
| | | } |
| | | if (DBUtility.ClsPub.isStrNull(ds2.Tables[0].Rows[0]["HBack"]) != "0") |
| | | { |
| | | sReturn = "ä¿å失败2ï¼" + DBUtility.ClsPub.isStrNull(ds2.Tables[0].Rows[0]["HBackRemark"]); |
| | | oCn.RollBack(); |
| | | return false; |
| | | } |
| | | //============================ |
| | | |
| | | |
| | | |
| | | sReturn = "ä¿®æ¹åæ®æåï¼"; |
| | | oCn.Commit(); |
| | | return true; |
| | |
| | | omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //è¥MAINDIéå¤åéæ°è·å |
| | | |
| | | //æ ¹æ®å
ç çæé¡¹ç®å·å¹¶åå
¥æ°æ®åº |
| | | //omodel.HProjectNum = ""; |
| | | //omodel.HProjectNum = GetNewCodeByNum(omodel.HInterID, 1, 3).ToString(); |
| | | // |
| | | |
| | | //ä¿ååæ§å¶========================================= |
| | | string HBillNote = ""; |
| | | DataSet ds = oCn.RunProcReturn("Exec h_p_Sc_ProcessExchangeBill_BeforeSaveCtrl " + omodel.HInterID.ToString() + ", '" + omodel.HBillNo + "','" + HBillNote + "',1 ", "h_p_Sc_ProcessExchangeBill_BeforeSaveCtrl"); |
| | | if (ds == null) |
| | | { |
| | | sReturn = "ä¿ååå¤æå¤±è´¥ï¼"; |
| | | return false; |
| | | } |
| | | if (DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBack"]) != "0") |
| | | { |
| | | sReturn = "ä¿å失败ï¼" + DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBackRemark"]); |
| | | return false; |
| | | } |
| | | //========================================================= |
| | | |
| | | |
| | | oCn.BeginTran(); |
| | | //主表 |
| | | oCn.RunProc("Insert Into Sc_ProcessExchangeBillMain " + |
| | |
| | | sErr = sErr + "4;"; |
| | | oCn.RunProc("exec h_p_Sc_ProcessExchangeBill_SetUpdate " + omodel.HInterID.ToString()); //设置 æ«é é¦é 转 çä¿¡æ¯ å¨å
·æ¸
å å·¥èºåæ°æ¸
åï¼ |
| | | sErr = sErr + "5;"; |
| | | DataSet ds = new DataSet(); |
| | | //DataSet ds = new DataSet(); |
| | | //设置æ¡ç å· åå¡« é¢ææ¹æ¬¡ |
| | | ds = oCn.RunProcReturn("exec h_p_Mes_ProcessExchangeBackBarCode " + omodel.HInterID.ToString(), "h_p_Mes_ProcessExchangeBackBarCode"); |
| | | if (DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HBack"]) != 0) |
| | |
| | | oCn.RollBack(); |
| | | return false; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | sErr = sErr + "7;"; |
| | | |
| | |
| | | oCn.RollBack(); |
| | | return false; |
| | | } |
| | | |
| | | |
| | | //=========================ä¿ååæ§å¶ |
| | | DataSet ds2 = oCn.RunProcReturn("Exec h_p_Sc_ProcessExchangeBill_AfterSaveCtrl " + omodel.HInterID.ToString() + ", '" + omodel.HBillNo + "',1 ", "h_p_Sc_ProcessExchangeBill_AfterSaveCtrl"); |
| | | if (ds2 == null) |
| | | { |
| | | sReturn = "ä¿ååæ§å¶å¤æå¤±è´¥ï¼"; |
| | | oCn.RollBack(); |
| | | return false; |
| | | } |
| | | if (DBUtility.ClsPub.isStrNull(ds2.Tables[0].Rows[0]["HBack"]) != "0") |
| | | { |
| | | sReturn = "ä¿å失败2ï¼" + DBUtility.ClsPub.isStrNull(ds2.Tables[0].Rows[0]["HBackRemark"]); |
| | | oCn.RollBack(); |
| | | return false; |
| | | } |
| | | //============================ |
| | | |
| | | |
| | | // |
| | | sReturn = "æ°å¢åæ®æåï¼"; |
| | |
| | | //æå
³èæ°éåä¸å
许å é¤ |
| | | DataSet ds; |
| | | ds = oCn.RunProcReturn("exec h_p_Mes_ProcExchDeleteCtrl " + lngBillKey.ToString(), "h_p_Mes_ProcExchDeleteCtrl"); |
| | | //ds = oCn.RunProcReturn("exec h_p_Sc_ProcessExchangeBill_BeforeDeleteCtrl " + lngBillKey.ToString(), "h_p_Sc_ProcessExchangeBill_BeforeDeleteCtrl"); |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | sReturn = "夿å
³èæ°é失败,260è¡! "; |
| | | sReturn = "夿å
³èæ°é失败! "; |
| | | return false; |
| | | } |
| | | if (DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HBack"]) != 0) |
| | |
| | | { |
| | | omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | } |
| | | //è¥MAINDIéå¤åéæ°è·å |
| | | // |
| | | oCn.BeginTran(); |
| | | //主表 |
| | | oCn.RunProc("Insert Into Sc_StationInBillMain " + |
| | |
| | | //æ ¹æ®åç§°è¿å项ç®ä¿¡æ¯ |
| | | public virtual bool GetInfoByName(string sName) |
| | | { |
| | | return true; |
| | | DataSet DS; |
| | | try |
| | | { |
| | | DS = oCN.RunProcReturn("Select * from " + MvarItemKey + " Where HName='" + sName + "'", MvarItemKey, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | if (DS.Tables[0].Rows.Count == 0) |
| | | return false; |
| | | else |
| | | { |
| | | return GetInfo(DS); |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | throw (e); |
| | | } |
| | | } |
| | | //è¿å项ç®ä¿¡æ¯ |
| | | public virtual bool GetInfo(DataSet DS) |
| | |
| | | public Int64 HRelationEntryID;// int //å
³èååID |
| | | public string HRelationBillNo;// varchar(50) //å
³èåå· |
| | | |
| | | public string HBillNo; //åæ®å· |
| | | public Int64 HCheckManID; //è´¨æ£äºº |
| | | public string HResult; //å¤æç»æ |
| | | public string HRemark; //夿³¨ |
| | | public string HSaveType; //ä¿åç±»å ä¸è¯åä¿åï¼æ¥åºåä¿å |
| | | |
| | | public Int64 HICMOInterID; //ç产订å主å
ç |
| | | public Int64 HICMOEntryID; //ç产订ååå
ç |
| | | public string HICMOBillNo; //ç产订åå· |
| | | public Int64 HMaterID; //产åå
ç |
| | | public Int64 HProcID; //å·¥åºå
ç |
| | | public string HDate; //å¶åæ¥æ |
| | | public Int64 HGroupID; //çç»å
ç |
| | | public Int64 HDeptID; //é¨é¨å
ç |
| | | public Int64 HStationID; //å·¥ä½å
ç |
| | | public Int64 HPRDORGID; //ç产ç»ç»å
ç |
| | | public Int64 HAuxPropID; //è¾
å©å±æ§å
ç |
| | | |
| | | public Int64 HBadResultID; //ä¸è¯ç»æ |
| | | public Int64 HBadTypeID; //ä¸è¯ç±»å |
| | | public Int64 HMTONo; //计åè·è¸ªå· |
| | | public Int64 HOTHERORGID; //å
¶å®ç»ç»(é¢ç) |
| | | public Int64 HOWNERID; //货主 |
| | | public Int64 HOWNERTYPEID; //货主类å |
| | | |
| | | public Int64 HProcExchInterID; //å·¥åºæµè½¬å¡å
ç |
| | | public Int64 HProcExchEntryID; //å·¥åºæµè½¬å¡åå
ç |
| | | public string HProcExchBillNo; //å·¥åºæµè½¬å¡å· |
| | | |
| | | public Int64 HQualityReportEntryID; //è´¨éæ±æ¥åå表ID |
| | | // |
| | | } |
| | | } |
| | |
| | | <Compile Include="åºç¡èµæ\åºç¡èµæ\ClsGy_TechnologyParameter_Model.cs" /> |
| | | <Compile Include="ææ¬ç®¡ç\ClsKf_ICBal.cs" /> |
| | | <Compile Include="ææ¬ç®¡ç\ClsKf_WIPBal.cs" /> |
| | | <Compile Include="ç产管ç\ClsGy_SourceWorkStationSet.cs" /> |
| | | <Compile Include="ç产管ç\ClsSc_ChangeNoteBillMain.cs" /> |
| | | <Compile Include="ç产管ç\ClsSc_ChangeNoteBillSub.cs" /> |
| | | <Compile Include="ç产管ç\ClsSc_MateWasterRequestBillMain.cs" /> |
| | |
| | | <Compile Include="ç产管ç\设å¤ç®¡ç\ClsSb_EquipConkBookBillMain.cs" /> |
| | | <Compile Include="ç产管ç\设å¤ç®¡ç\ClsSb_EquipConkBookBillSub.cs" /> |
| | | <Compile Include="è´¨æ£ç®¡ç\ClsQC_FirstPieceCheckBillSub_ValueGrid.cs" /> |
| | | <Compile Include="è´¨æ£ç®¡ç\ClsQC_ProcessCheckBillSub_ValueGrid.cs" /> |
| | | <Compile Include="车é´ç®¡ç\ClsSc_ProcExchRecordBackBillMain.cs" /> |
| | | <Compile Include="车é´ç®¡ç\ClsSc_ProcExchRecordBackBillSub.cs" /> |
| | | <Compile Include="车é´ç®¡ç\ClsSc_ProcExchSendWorkBillMain.cs" /> |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | namespace Model |
| | | { |
| | | public class ClsGy_SourceWorkStationSet : DBUtility.ClsGy_Base_Model |
| | | { |
| | | public string HMacAddr; //MACå· |
| | | public Int64 HSourceID; //çäº§èµæº(Gy_Source) |
| | | public Int64 HProdOrgID; //ç产ç»ç»() |
| | | public Int64 HWorkStationID; //å·¥ä½ï¼Gy_WorkStationï¼ |
| | | public Int64 HProcID; //å·¥åº(Gy_Process) |
| | | public string HType; //å¹é
ç±»åï¼æå·¥ä½å¹é
ï¼æå·¥åºå¹é
ï¼æå·¥ä½+å·¥åºå¹é
ï¼ |
| | | public Int64 HVideo; //æ¯å¦é»è®¤ææ¾è§é¢ |
| | | public DateTime HCreateDate; //åå»ºæ¥æ |
| | | public string HCreator; //å建人ï¼åHUserName ä¸è´ï¼ |
| | | } |
| | | } |
| | |
| | | public String HBackRemark; |
| | | public Int64 HPrintQty; |
| | | public Int64 HICMOEntryID; |
| | | public Int64 HQCSchemeID; |
| | | |
| | | } |
| | | } |
| | |
| | | public String HDownOffSet; |
| | | public String HAnalysisMethod; |
| | | public Int64 HKeyInspect; |
| | | public Int64 HInspectInstruMentID; |
| | | public String HInspectResult; |
| | | //public HSamplingType; |
| | | //public HInspectionLevel; |
| | | //public HStrictness; |
| | |
| | | public Int64 HItemID; |
| | | public Int64 HSEQ; |
| | | public String HInSpectResult; |
| | | public decimal HInSpectValue; |
| | | public double HInSpectValue; |
| | | public Int64 HInSpectValueB; |
| | | public String HInSpectValueT; |
| | | } |
| | |
| | | public String HDrawingDireID; |
| | | public Int64 HPackTypeID; |
| | | public Int64 HICMOEntryID; |
| | | |
| | | public Int64 HQCSchemeID; |
| | | |
| | | } |
| | | } |
| | |
| | | public String HResult; |
| | | public Int64 HProcCheckEmp; |
| | | public DateTime HProcCheckTime; |
| | | |
| | | public Int64 HSampleSchemeID; |
| | | public Int64 HSampleQty; |
| | | public double HSampleDamageQty; |
| | | public Int64 HAcceptQty; |
| | | public Int64 HRejectQty; |
| | | public double HSampleUnRightQty; |
| | | public String HStatus; |
| | | public Int64 HUnitID; |
| | | public String HInspectVal; |
| | | public String HTargetVal; |
| | | public String HUpLimit; |
| | | public String HDownLimit; |
| | | public String HUpOffSet; |
| | | public String HDownOffSet; |
| | | public String HAnalysisMethod; |
| | | public Int64 HKeyInspect; |
| | | public Int64 HInspectInstruMentID; |
| | | public String HInspectResult; |
| | | //public HSamplingType; |
| | | //public HInspectionLevel; |
| | | //public HStrictness; |
| | | //public HAQL; |
| | | //public xxx; |
| | | } |
| | | } |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | namespace Model |
| | | { |
| | | public class ClsQC_ProcessCheckBillSub_ValueGrid : DBUtility.ClsXt_BaseBillSub |
| | | { |
| | | public Int64 HItemID; |
| | | public Int64 HSEQ; |
| | | public String HInSpectResult; |
| | | public double HInSpectValue; |
| | | public Int64 HInSpectValueB; |
| | | public String HInSpectValueT; |
| | | } |
| | | } |
| | |
| | | |
| | | if (BillOld.CheckBill(BillOld.omodel.HInterID, ref ClsPub.sExeReturnInfo) == true) |
| | | { |
| | | |
| | | |
| | | |
| | | BillChange = true; |
| | | txtHChecker.Text = ClsPub.CurUserName; |
| | | txtHCheckDate.Text = BillOld.omodel.HCheckDate; |
| | |
| | | omodel.MES_StationEntrustOutBill_SaveAutoAddnew = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | |
| | | |
| | | //=============================é¦ä»¶æ£éªå |
| | | //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "QC_FirstPieceCheckBill_AutoCheck") |
| | | { |
| | | omodel.QC_FirstPieceCheckBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //ä¿ååå为æ°å¢ç¶æ |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "QC_FirstPieceCheckBill_SaveAutoAddnew") |
| | | { |
| | | omodel.QC_FirstPieceCheckBill_SaveAutoAddnew = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //å é¤äººå¿
é¡»æ¯å¶å人 |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "QC_FirstPieceCheckBill_DeleterAndMakerMustSame") |
| | | { |
| | | omodel.QC_FirstPieceCheckBill_DeleterAndMakerMustSame = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //è´¨æ£æ¹æ¡æ¥æº |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "QC_FirstPieceCheckBill_QCSchemeSource") |
| | | { |
| | | omodel.QC_FirstPieceCheckBill_QCSchemeSource = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | |
| | | |
| | | |
| | | //=============================å·¡æ£å |
| | | //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "QC_PatrolProcCheckBill_AutoCheck") |
| | | { |
| | | omodel.QC_PatrolProcCheckBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //ä¿ååå为æ°å¢ç¶æ |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "QC_PatrolProcCheckBill_SaveAutoAddnew") |
| | | { |
| | | omodel.QC_PatrolProcCheckBill_SaveAutoAddnew = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //å é¤äººå¿
é¡»æ¯å¶å人 |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "QC_PatrolProcCheckBill_DeleterAndMakerMustSame") |
| | | { |
| | | omodel.QC_PatrolProcCheckBill_DeleterAndMakerMustSame = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //è´¨æ£æ¹æ¡æ¥æº |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "QC_PatrolProcCheckBill_QCSchemeSource") |
| | | { |
| | | omodel.QC_PatrolProcCheckBill_QCSchemeSource = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | |
| | | |
| | | //=============================å·¥åºè½¬åºæ£éªå |
| | | //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "QC_ProcessCheckBill_AutoCheck") |
| | | { |
| | | omodel.QC_ProcessCheckBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //ä¿ååå为æ°å¢ç¶æ |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "QC_ProcessCheckBill_SaveAutoAddnew") |
| | | { |
| | | omodel.QC_ProcessCheckBill_SaveAutoAddnew = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //å é¤äººå¿
é¡»æ¯å¶å人 |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "QC_ProcessCheckBill_DeleterAndMakerMustSame") |
| | | { |
| | | omodel.QC_ProcessCheckBill_DeleterAndMakerMustSame = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //è´¨æ£æ¹æ¡æ¥æº |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "QC_ProcessCheckBill_QCSchemeSource") |
| | | { |
| | | omodel.QC_ProcessCheckBill_QCSchemeSource = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | |
| | | |
| | | |
| | | //æ¥å·¥å°ï¼å·¥åºæ±æ¥èªå¨å®¡æ ¸åæ° |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MESProceReportWorkBill_AutoCheck") |
| | | { |
| | |
| | | public string QC_FirstPieceCheckBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string QC_FirstPieceCheckBill_SaveAutoAddnew; //ä¿ååå为æ°å¢ç¶æ |
| | | public string QC_FirstPieceCheckBill_DeleterAndMakerMustSame; //å é¤äººå¿
é¡»æ¯å¶å人 |
| | | public string QC_FirstPieceCheckBill_QCSchemeSource; //è´¨æ£æ¹æ¡æ¥æº |
| | | |
| | | //å·¡æ£å |
| | | |
| | | public string QC_PatrolProcCheckBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string QC_PatrolProcCheckBill_SaveAutoAddnew; //ä¿ååå为æ°å¢ç¶æ |
| | | public string QC_PatrolProcCheckBill_DeleterAndMakerMustSame; //å é¤äººå¿
é¡»æ¯å¶å人 |
| | | public string QC_PatrolProcCheckBill_QCSchemeSource; //è´¨æ£æ¹æ¡æ¥æº |
| | | |
| | | //å·¥åºè½¬åºæ£éªå |
| | | |
| | | public string QC_ProcessCheckBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string QC_ProcessCheckBill_SaveAutoAddnew; //ä¿ååå为æ°å¢ç¶æ |
| | | public string QC_ProcessCheckBill_DeleterAndMakerMustSame; //å é¤äººå¿
é¡»æ¯å¶å人 |
| | | public string QC_ProcessCheckBill_QCSchemeSource; //è´¨æ£æ¹æ¡æ¥æº |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | |
| | | #region[ç¨æ·å表æ¥è¯¢] |
| | | [Route("Xt_User/list")] |
| | | [HttpGet] |
| | | public object list(string sWhere) |
| | | public object list(string sWhere,string user) |
| | | { |
| | | try |
| | | { |
| | | if (!DBUtility.ClsPub.Security_Log_second("Xt_User_Query", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn("select * from h_v_IF_UserList " + sWhere, "h_v_IF_UserList"); |
| | |
| | | |
| | | public json AddBillMain(string msg1) |
| | | { |
| | | string sErrMsg = ""; |
| | | oSystemParameter.ShowBill(ref sErrMsg); |
| | | string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); |
| | | string msg2 = sArray[0].ToString(); |
| | | string msg3 = sArray[1].ToString(); |
| | |
| | | int IsProNo = mainList[0].IsProNo;//æ¯å¦è½¬å·¥åº |
| | | HName_LongShan = mainList[0].HName;//å·¥èºè·¯çº¿åç§° |
| | | |
| | | |
| | | if (oSystemParameter.omodel.WMS_CampanyName == "") |
| | | { |
| | | if (HPicNumVer == "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å¾å·çæ¬ä¸è½ä¸ºç©º!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | if (HPicNumAssemble == "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ»è£
å¾å·ä¸è½ä¸ºç©º!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | if (HMaterTexture == "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æè´¨ä¸è½ä¸ºç©º!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | if (HProductNum == "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æåç¼å·ä¸è½ä¸ºç©º!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | if (HVerNum == "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "çæ¬ä¸è½ä¸ºç©º!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | if (OperationType == 2) |
| | | { |
| | | ds = oCN.RunProcReturn("select * from h_v_Gy_RoutingBillList where åæ®å·='" + HBillNo + "'", "h_v_Gy_RoutingBillList"); |
| | |
| | | return objJsonResult; |
| | | } |
| | | |
| | | string sErrMsg = ""; |
| | | if (oSystemParameter.ShowBill(ref sErrMsg)) |
| | | if (oSystemParameter.omodel.WMS_CampanyName == "çä¸ç¥º") |
| | | { |
| | | if (oSystemParameter.omodel.WMS_CampanyName == "çä¸ç¥º") |
| | | { |
| | | if (oSystemParameter.omodel.Gy_RoutingBill_SaveAutoLastProc == "Y" && OperationType == 1) |
| | | { |
| | | ds = oCN.RunProcReturn("select * from Gy_Process Where HTProcessFlag = 1 and HNumber='9999' ", "Gy_Process"); |
| | | |
| | | if (ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æªè®¾ç½®è½¬å·¥åº!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | //è®¾ç½®è½¬å·¥åº |
| | | oCN.RunProc("exec Gy_RoutingBill_LastProNo " + HInterID); |
| | | } |
| | | } |
| | | else if (IsProNo == 1 && OperationType == 1) |
| | | if (oSystemParameter.omodel.Gy_RoutingBill_SaveAutoLastProc == "Y" && OperationType == 1) |
| | | { |
| | | ds = oCN.RunProcReturn("select * from Gy_Process Where HTProcessFlag = 1 and HNumber='9999' ", "Gy_Process"); |
| | | |
| | |
| | | oCN.RunProc("exec Gy_RoutingBill_LastProNo " + HInterID); |
| | | } |
| | | } |
| | | else if (IsProNo == 1 && OperationType == 1) |
| | | { |
| | | ds = oCN.RunProcReturn("select * from Gy_Process Where HTProcessFlag = 1 and HNumber='9999' ", "Gy_Process"); |
| | | |
| | | if (ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æªè®¾ç½®è½¬å·¥åº!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | //è®¾ç½®è½¬å·¥åº |
| | | oCN.RunProc("exec Gy_RoutingBill_LastProNo " + HInterID); |
| | | } |
| | | |
| | | |
| | | |
| | | //æ¯å¦å¾éé»è®¤å·¥èºè·¯çº¿ |
New file |
| | |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | using Pub_Class; |
| | | using System; |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Data.SqlClient; |
| | | using System.Web.Http; |
| | | using WebAPI.Models; |
| | | |
| | | namespace WebAPI.Controllers |
| | | { |
| | | public class Gy_SourceWorkStationSetController : ApiController |
| | | { |
| | | public DBUtility.ClsPub.Enum_BillStatus BillStatus; |
| | | |
| | | private json objJsonResult = new json(); |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | DataSet ds; |
| | | |
| | | /// <summary> |
| | | /// è¿åç产工ä½å表 |
| | | ///åæ°ï¼string sqlã |
| | | ///è¿åå¼ï¼objectã |
| | | /// </summary> |
| | | [Route("Gy_SourceWorkStationSet/list")] |
| | | [HttpGet] |
| | | public object list(string sWhere, string user) |
| | | { |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | //ç¼è¾æé |
| | | if (!DBUtility.ClsPub.Security_Log_second("Gy_SourceWorkStationSet_Query", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | string sql1 = string.Format(@"select * from h_v_Gy_SourceWorkStationSetList where 1 = 1"); |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn(sql1 + sWhere + " order by HItemID ", "h_v_Gy_SourceWorkStationSetList"); |
| | | } |
| | | else |
| | | { |
| | | string sql = sql1 + sWhere + " order by HItemID "; |
| | | ds = oCN.RunProcReturn(sql, "h_v_Gy_SourceWorkStationSetList"); |
| | | } |
| | | |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | | { |
| | | Type dataType = col.DataType; |
| | | string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; |
| | | columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//è·åå°DataColumnå对象çåå |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | objJsonResult.list = columnNameList; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | #region 产线工ä½ä¿å |
| | | [Route("Gy_SourceWorkStationSet/Save")] |
| | | [HttpPost] |
| | | public object set_SaveBill([FromBody] JObject oMain) |
| | | { |
| | | var _value = oMain["oMain"].ToString(); |
| | | string msg1 = _value.ToString(); |
| | | //ä¿ååæ® |
| | | return objJsonResult = AddBillMain(msg1); |
| | | } |
| | | |
| | | public json AddBillMain(string msg1) |
| | | { |
| | | string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); |
| | | string msg2 = sArray[0].ToString(); |
| | | string user = sArray[1].ToString(); //ç¨æ· |
| | | bool bResult; |
| | | try |
| | | { |
| | | //夿æé |
| | | if (!DBUtility.ClsPub.Security_Log("Gy_SourceWorkStationSet_Edit", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ ä¿åæé"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | msg2 = "[" + msg2.ToString() + "]"; |
| | | List<Model.ClsGy_SourceWorkStationSet> mainList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsGy_SourceWorkStationSet>>(msg2); |
| | | DAL.ClsGy_SourceWorkStationSet BillNew = new DAL.ClsGy_SourceWorkStationSet(); |
| | | //夿ä¼è®¡ææ¯å¦åç |
| | | string s = ""; |
| | | int sYear = 0; |
| | | int sPeriod = 0; |
| | | DateTime HDate = mainList[0].HCreateDate;//æ¥æ |
| | | if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(HDate, ref sYear, ref sPeriod, ref s) == false) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = s; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //åºå®èµå¼================================= |
| | | BillNew.oModel.HMacAddr = mainList[0].HMacAddr; |
| | | BillNew.oModel.HSourceID = mainList[0].HSourceID; |
| | | BillNew.oModel.HProdOrgID = mainList[0].HProdOrgID; |
| | | BillNew.oModel.HWorkStationID = mainList[0].HWorkStationID; |
| | | BillNew.oModel.HProcID = mainList[0].HProcID; |
| | | BillNew.oModel.HType = ClsPub.isStrNull(mainList[0].HType); |
| | | BillNew.oModel.HVideo = ClsPub.isLong(mainList[0].HVideo); |
| | | BillNew.oModel.HCreateDate = ClsPub.isDate(mainList[0].HCreateDate); |
| | | BillNew.oModel.HCreator = ClsPub.isStrNull(mainList[0].HCreator); |
| | | |
| | | //ä¿å宿¯åå¤ç |
| | | if (mainList[0].HItemID == 0) |
| | | { |
| | | bResult = BillNew.AddNew(); |
| | | } |
| | | else |
| | | { |
| | | bResult = BillNew.ModifyByID(mainList[0].HItemID); |
| | | } |
| | | //æç¤º |
| | | if (bResult == true) |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | //objJsonResult.Message = "åæ®åç宿¯!åæ®å·:" + mainList[0].HBillNo.Trim(); |
| | | objJsonResult.Message = "ä¿åæå!" + ClsPub.sExeReturnInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "ä¿å失败!åå :" + ClsPub.sExeReturnInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | } |
| | | } |
| | |
| | | { |
| | | try |
| | | { |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | List<object> columnNameList = new List<object>(); |
| | | |
| | | string sql1 = "select * from h_v_Sc_AssemblyBillList where 1 = 1 "; |
| | | string sql = sql1 + sWhere; |
| | | ds = oCN.RunProcReturn(sql, "h_v_Sc_AssemblyBillList"); |
| | | |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | | { |
| | | ds = oCN.RunProcReturn("select * from h_v_Sc_AssemblyBillList " + sWhere, "h_v_Sc_AssemblyBillList"); |
| | | Type dataType = col.DataType; |
| | | string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; |
| | | columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//è·åå°DataColumnå对象çåå |
| | | } |
| | | else |
| | | { |
| | | string sql1 = "select * from h_v_Sc_AssemblyBillList where 1 = 1 "; |
| | | string sql = sql1 + sWhere; |
| | | ds = oCN.RunProcReturn(sql, "h_v_Sc_AssemblyBillList"); |
| | | } |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "falseï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | objJsonResult.list = columnNameList; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | |
| | | #region ææè®¡åå ææè®¡åæ¥è¡¨ |
| | | [Route("JIT_Cg_PODemandPlanBill/ReportPODemandPlanBillList_S")] |
| | | [HttpGet] |
| | | public object ReportPODemandPlanBillList_S(string sWhere, string user) |
| | | public object ReportPODemandPlanBillList_S(string sWhere, string user,string HBEGINDATE,string HENDDATE) |
| | | { |
| | | try |
| | | { |
| | |
| | | return objJsonResult; |
| | | } |
| | | |
| | | ds = oCN.RunProcReturn($"exec h_p_JIT_PODemandPlanBill_S_ReportList '{sWhere.ToString()}' ", "h_p_JIT_PODemandPlanBill_S_ReportList"); |
| | | ds = oCN.RunProcReturn($"exec h_p_JIT_PODemandPlanBill_S_ReportList '{sWhere.ToString()}','{HBEGINDATE}','{HENDDATE}' ", "h_p_JIT_PODemandPlanBill_S_ReportList"); |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | |
| | | { |
| | | SumCount += 1; |
| | | ////ä¿åå表 |
| | | |
| | | objJsonResult = AddBillSub(HInterID == 0 ? list[i]["hmainid"].ToString() : HInterID.ToString() |
| | | , HBillNo == "" ? list[i]["åæ®å·"].ToString() : HBillNo |
| | | , DateTime.Parse(DateTime.Now.AddDays(j).ToString("yyyy-MM-dd").ToString()) |
| | | , int.Parse(list[i][DateTime.Now.AddDays(j).ToString("yyyy-MM-dd")].ToString())); |
| | | |
| | | , int.Parse(list[i][DateTime.Now.AddDays(j).ToString("yyyy-MM-dd")].ToString()) |
| | | , list[i]); |
| | | if (objJsonResult.count == 1) |
| | | { |
| | | TrueCount += 1; |
| | |
| | | //ä¸»è¡¨ææ°æ® åè¡¨æ æ°æ® |
| | | if (j == 30 && SumCount == 0 && HInterID != 0 && HBillNo != "") |
| | | { |
| | | objJsonResult = AddBillSub(HInterID.ToString(), HBillNo, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd").ToString()), 0); |
| | | objJsonResult = AddBillSub(HInterID.ToString(), HBillNo, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd").ToString()), 0, list[i]); |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | public json AddBillSub(string HInterID, string HBillNo, DateTime date, int HQTY) |
| | | public json AddBillSub(string HInterID, string HBillNo, DateTime date, int HQTY, Dictionary<string, string> dic) |
| | | { |
| | | //è·åè¡¨æ ¼æ°æ® |
| | | ds = oCN.RunProcReturn($"select * from h_v_JIT_Sc_WorkBillSortBillList where åæ®å·='{HBillNo}'", "h_v_JIT_Sc_WorkBillSortBillList"); |
| | | |
| | | int count = 0; |
| | | if (ds.Tables[0].Rows.Count > 0) |
| | | { |
| | |
| | | { |
| | | if (DateTime.Parse(ds.Tables[0].Rows[i]["æ¥è®¡åçäº§æ¥æ"].ToString()) == date) |
| | | { |
| | | oCN.RunProc($"update Sc_WorkBillSortBillSub set HMasterDate='{date}',HQty={HQTY}" + |
| | | oCN.RunProc($"update Sc_WorkBillSortBillSub set HMasterDate='{date}',HQty={HQTY},HUseTimes={(dic["å°æ¶äº§è½"]=="0"?0: HQTY / float.Parse(dic["å°æ¶äº§è½"].ToString()))}" + |
| | | $" where HInterID={HInterID} and HEntryID={ds.Tables[0].Rows[i]["hsubid"].ToString()}"); |
| | | count += 1; |
| | | } |
| | |
| | | { |
| | | //æå
¥å表 |
| | | oCN.RunProc("insert into Sc_WorkBillSortBillSub(HInterID,HSEQ," + |
| | | "HMasterDate,HQty)" + |
| | | "HMasterDate,HQty,HUseTimes)" + |
| | | $"values({HInterID}, {(ds.Tables[0].Rows.Count + 1)}," + |
| | | $" '{date}', {HQTY})"); |
| | | $" '{date}', {HQTY},{(dic["å°æ¶äº§è½"] == "0" ? 0 : HQTY / float.Parse(dic["å°æ¶äº§è½"].ToString()))})"); |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | |
| | | using System; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Linq; |
| | |
| | | Int64 sCPMaterID = 0; |
| | | string sCPMaterName = ""; |
| | | private json objjson = new json(); |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | |
| | | //æ«ææåæ¡ç |
| | | [Route("Assembly/Get_Assembly_CPBarCode_Json")] |
| | |
| | | } |
| | | |
| | | |
| | | #region 产线ç»è£
追溯å |
| | | [Route("Sc_AssemblyBill/HBardCodeList")] |
| | | [HttpGet] |
| | | public object HBardCodeList(string HBarCode, string user,string HICMOBillNo) |
| | | { |
| | | try |
| | | { |
| | | //æ¥çæé |
| | | if (!DBUtility.ClsPub.Security_Log("Sc_AssemblyBill_Edit", 1, false, user)) |
| | | { |
| | | objjson.code = "0"; |
| | | objjson.count = 0; |
| | | objjson.Message = "æ ä¿åæéï¼"; |
| | | objjson.data = null; |
| | | return objjson; |
| | | } |
| | | if (HICMOBillNo == "" || HICMOBillNo == null) |
| | | { |
| | | ds = oCN.RunProcReturn(@"select bard.HSourceInterID,bard.HSourceEntryID,b.FMUSTQTY,a.FMOBILLNO,FERPCLSID,t5.FNAME HMaterName_z,t5.FSPECIFICATION HMaterModel_z ,m.HItemID,b.FMATERIALID,m.HName HMaterName,m.HNumber HMaterNumber,m.HModel HMaterModel,m1.HItemID HMaterID |
| | | from AIS20210811135644..T_PRD_PPBOM a |
| | | join AIS20210811135644..T_PRD_PPBOMENTRY b on a.FID = b.FID |
| | | join AIS20210811135644..T_BD_MATERIAL t3 on a.FMATERIALID = t3.FMATERIALID |
| | | join AIS20210811135644..T_BD_MATERIAL t31 on b.FMATERIALID = t31.FMATERIALID |
| | | join AIS20210811135644..T_BD_MATERIAL_L t5 on b.FMATERIALID = t5.FMATERIALID and FLOCALEID=2052 |
| | | join AIS20210811135644..t_BD_MaterialBase t4 on t5.FMATERIALID = t4.FMATERIALID |
| | | join Gy_BarCodeBill bard on a.FMOBILLNO=bard.HSourceBillNo |
| | | join Gy_Material m on bard.HMaterID=m.HItemID and t3.FNUMBER=m.HNumber |
| | | join Gy_Material m1 on t31.FNUMBER=m1.HNumber and t31.FUSEORGID=m1.HUSEORGID |
| | | where bard.HBarCode='" + HBarCode + "' AND t4.FERPCLSID in ('1', '3')", "Gy_BarCodeBill"); |
| | | if (ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objjson.code = "0"; |
| | | objjson.count = 0; |
| | | objjson.Message = "请å
æ«äº§åæ¡ç ï¼"; |
| | | objjson.data = null; |
| | | return objjson; |
| | | } |
| | | else |
| | | { |
| | | objjson.code = "1"; |
| | | objjson.count = 1; |
| | | objjson.Message = ""; |
| | | objjson.data = ds.Tables[0]; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | ds = oCN.RunProcReturn(@"select a.FMOBILLNO,FERPCLSID ,t4.FMATERIALID, a.FMATERIALID from AIS20210811135644..T_PRD_PPBOM a |
| | | join AIS20210811135644..T_PRD_PPBOMENTRY b on a.FID=b.FID |
| | | JOIN AIS20210811135644..T_BD_MATERIAL T6 ON b.FMATERIALID = T6.FMATERIALID |
| | | join AIS20210811135644..t_BD_MaterialBase t4 on b.FMATERIALID = t4.FMATERIALID |
| | | left join Gy_Material m on t6.FNUMBER=m.HNumber and m.HUSEORGID=a.FPRDORGID |
| | | where a.FMOBILLNO ='" + HICMOBillNo + "' and m.HItemID=(select HMaterID from Gy_BarCodeBill where HBarCode = '" + HBarCode + "' )", "ds2"); |
| | | |
| | | |
| | | if (ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objjson.code = "0"; |
| | | objjson.count = 0; |
| | | objjson.Message = "é
ä»¶ä¸å±äºè¯¥ç产订åï¼"; |
| | | objjson.data = null; |
| | | return objjson; |
| | | } |
| | | |
| | | ds = oCN.RunProcReturn(@"select HQty,HSourceBillNo,m.HName HMaterName,m.HItemID HMaterID from Gy_BarCodeBill bard |
| | | join Gy_Material m on bard.HMaterID=m.HItemID |
| | | where HBarCode='" + HBarCode + "'", "ds3"); |
| | | |
| | | objjson.code = "1"; |
| | | objjson.count = 1; |
| | | objjson.Message = ""; |
| | | objjson.data = ds.Tables[0]; |
| | | } |
| | | return objjson; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | |
| | | objjson.code = "0"; |
| | | objjson.count = 0; |
| | | objjson.Message = "没æè¿åä»»ä½è®°å½ï¼" + e.ToString(); |
| | | objjson.data = null; |
| | | return objjson; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region 产线ç»è£
追溯åä¿å |
| | | [Route("Sc_AssemblyBill/AddBill")] |
| | | [HttpPost] |
| | | public object AddBill([FromBody] JObject sMainSub) |
| | | { |
| | | var _value = sMainSub["sMainSub"].ToString(); |
| | | string msg1 = _value.ToString(); |
| | | oCN.BeginTran(); |
| | | //ä¿å主表 |
| | | objjson = AddBillMain(msg1); |
| | | if (objjson.code == "0") |
| | | { |
| | | oCN.RollBack(); |
| | | objjson.code = "0"; |
| | | objjson.count = 0; |
| | | objjson.Message = objjson.Message; |
| | | objjson.data = null; |
| | | return objjson; |
| | | } |
| | | oCN.Commit(); |
| | | objjson.code = "1"; |
| | | objjson.count = 1; |
| | | objjson.Message = "æ°å¢åæ®æåï¼"; |
| | | objjson.data = null; |
| | | return objjson; |
| | | } |
| | | Models.ClsSc_AssemblyBillMain omodel = new Models.ClsSc_AssemblyBillMain();//åºæ¬èµæ |
| | | public json AddBillMain(string msg1) |
| | | { |
| | | string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); |
| | | string msg2 = sArray[0].ToString(); |
| | | string msg3 = sArray[1].ToString(); |
| | | int OperationType = int.Parse(sArray[2].ToString());//ç±»å |
| | | string user = sArray[3].ToString();//ç¨æ·å |
| | | |
| | | try |
| | | { |
| | | //夿æ¯å¦æç¼è¾æé |
| | | if (!DBUtility.ClsPub.Security_Log("Sc_AssemblyBill_Edit", 1, false, user)) |
| | | { |
| | | objjson.code = "0"; |
| | | objjson.count = 0; |
| | | objjson.Message = "æ æéç¼è¾!"; |
| | | objjson.data = null; |
| | | return objjson; |
| | | } |
| | | omodel = Newtonsoft.Json.JsonConvert.DeserializeObject<ClsSc_AssemblyBillMain>(msg2); |
| | | //JSONåºåå转æ¢åå
¸éå |
| | | List<Dictionary<string, string>> list = new List<Dictionary<string, string>>(); |
| | | List<object> jb = JsonConvert.DeserializeObject<List<object>>(msg3); |
| | | foreach (JObject item in jb) |
| | | { |
| | | Dictionary<string, string> dic = new Dictionary<string, string>(); |
| | | foreach (var itm in item.Properties()) |
| | | { |
| | | dic.Add(itm.Name, itm.Value.ToString()); |
| | | } |
| | | list.Add(dic); |
| | | } |
| | | |
| | | if (OperationType == 1)//æ°å¢ä¸´æ¶è¡¨æºå表 |
| | | { |
| | | for (int i = 0; i < list.Count; i++) |
| | | { |
| | | //临æ¶é
件表 |
| | | oCN.RunProc("Insert Into Sc_AssemblyBill_BindSourceTemp " + |
| | | "(HInterID,HEntryID,HBillNo_bak,HSourceBillNo,HSourceInterID,HMaterID" + |
| | | ",HQtyMust,HProdOrgID,HSourceEntryID,HSourceBillType,HAuxPropID,HProcID,HQty,HBatchNo,HMTONo,HPlanMode) " + |
| | | " values(" + omodel.HInterID.ToString() + "," + (i+1) + ",'" + omodel.HBillNo.ToString() + "','" + omodel.HICMOBillNo.ToString() + "',0," + list[i]["HMaterID"].ToString() + |
| | | ",'" + list[i]["HQty"].ToString() + "','" + list[i]["HPRDORGID"].ToString() + "',0,'',0,0,0,'','','') "); |
| | | } |
| | | } |
| | | else if (OperationType == 2)//æ°å¢é
ä»¶æ«ç 表 |
| | | { |
| | | for (int i = 0; i < list.Count; i++) |
| | | { |
| | | if (list[i]["HBarCode"].ToString() != "") |
| | | { |
| | | ds = oCN.RunProcReturn("select * from Sc_AssemblyBill_BindBarCodeTemp where HSourceBillNo='" + omodel.HICMOBillNo.ToString() + "' and HBarCode='" + list[i]["HBarCode"].ToString() + "' and HBillNo_bak='" + omodel.HBillNo.ToString() + "'", "Sc_AssemblyBill_BindBarCodeTemp"); |
| | | if (ds.Tables[0].Rows.Count > 0) { |
| | | objjson.code = "0"; |
| | | objjson.count = 0; |
| | | objjson.Message ="该æ¡ç å·²æ«å
¥,æ 须快!"; |
| | | objjson.data = null; |
| | | return objjson; |
| | | } |
| | | //临æ¶è®°å½è¡¨ |
| | | oCN.RunProc("Insert Into Sc_AssemblyBill_BindBarCodeTemp " + |
| | | "(HInterID,HEntryID,HBillNo_bak,HSourceBillNo,HSourceInterID,HMaterID" + |
| | | ",HBarCode,HQty,HProdOrgID,HSourceEntryID,HSourceBillType,HAuxPropID,HProcID,HBatchNo,HMTONo,HPlanMode) " + |
| | | " values(" + omodel.HInterID.ToString() + "," + (i + 1) + ",'" + omodel.HBillNo.ToString() + "','" + omodel.HICMOBillNo.ToString() + "',0," + list[i]["HMaterID"].ToString() + |
| | | ",'" + list[i]["HBarCode"].ToString() + "','" + list[i]["HEQty"].ToString() + "','" + list[i]["HPRDORGID"].ToString() + "',0,'',0,0,'','','') "); |
| | | } |
| | | } |
| | | } |
| | | else if (OperationType == 3)//æ°å¢ä¸»å表 |
| | | { |
| | | //ä¿åç产ç»è£
å主表 |
| | | string sql = $@"Insert Into Sc_AssemblyBillMain(HYear,HPeriod,HBillType,HBillSubType,HInterID,HDate |
| | | ,HBillNo,HBillStatus,HMaker,HMakeDate,HMainSourceInterID,HMainSourceEntryID,HMainSourceBillNo |
| | | ,HICMOInterID,HICMOBillNo,HBarCode_P,HMaterID,HUnitID,HAssemblyStatus,HProdOrgID) |
| | | values('{DateTime.Now.Year}','{DateTime.Now.Month}','3727','3727',{omodel.HInterID.ToString()},getdate() |
| | | ,'{omodel.HBillNo.ToString()}','1','{user}',getdate(),{omodel.HICMOInterID.ToString()},{omodel.HICMOEntryID.ToString()},'{omodel.HICMOBillNo.ToString()}' |
| | | ,{omodel.HICMOInterID.ToString()},'{omodel.HICMOBillNo.ToString()}','{omodel.HBarCode_P.ToString()}',{omodel.HMaterID},0,'{omodel.HAssemblyStatus}',{omodel.HProdOrgID})"; |
| | | oCN.RunProc(sql); |
| | | |
| | | ds = oCN.RunProcReturn("select * from Sc_AssemblyBill_BindBarCodeTemp where HSourceBillNo='" + omodel.HICMOBillNo.ToString() + "' and HInterID='" + omodel.HInterID + "' and HBillNo_bak='" + omodel.HBillNo.ToString() + "'", "Sc_AssemblyBill_BindBarCodeTemp"); |
| | | |
| | | for (int i = 0; i < ds.Tables[0].Rows.Count; i++) |
| | | { |
| | | int HMaterID = int.Parse(ds.Tables[0].Rows[i]["HMaterID"].ToString()); |
| | | double HQty = double.Parse(ds.Tables[0].Rows[i]["HQty"].ToString()); |
| | | string HBarCode = ds.Tables[0].Rows[i]["HBarCode"].ToString(); |
| | | string sq2 = $@"Insert Into Sc_AssemblyBillSub(HInterID,HBillNo_bak,HEntryID,HSourceInterID,HSourceEntryID,HSourceBillNo |
| | | ,HSourceBillType,HMaterID,HSourceID,HEquipID,HUnitID,HQty |
| | | ,HGroupID,HWorkerID,HScanDate,HBarCode,HBarCode_P,HSNNumber) |
| | | values({omodel.HInterID},'{omodel.HBillNo}',{(i + 1)},0,0,'' |
| | | ,'',{HMaterID},0,0,0,{HQty} |
| | | ,0,0,getdate(),'{HBarCode}','{omodel.HBarCode_P}','') "; |
| | | oCN.RunProc(sq2); |
| | | } |
| | | } |
| | | |
| | | objjson.code = "1"; |
| | | objjson.count = 1; |
| | | objjson.Message = null; |
| | | objjson.data = null; |
| | | return objjson; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objjson.code = "0"; |
| | | objjson.count = 0; |
| | | objjson.Message = "Exceptionï¼" + e.ToString(); |
| | | objjson.data = null; |
| | | return objjson; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region 产线ç»è£
è¿½æº¯å æ¥è¯¢ |
| | | [Route("Sc_AssemblyBill/Sc_AssemblyBillAddList")] |
| | | [HttpGet] |
| | | public object Sc_AssemblyBillAddList(string sWhere) |
| | | { |
| | | try |
| | | { |
| | | ds = oCN.RunProcReturn(@"select * from h_v_Sc_AssemblyBillList where 1=1 " + sWhere, "h_v_Sc_AssemblyBillList"); |
| | | |
| | | objjson.code = "1"; |
| | | objjson.count = 1; |
| | | objjson.Message = ""; |
| | | objjson.data = ds.Tables[0]; |
| | | return objjson; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | |
| | | objjson.code = "0"; |
| | | objjson.count = 0; |
| | | objjson.Message = "没æè¿åä»»ä½è®°å½ï¼" + e.ToString(); |
| | | objjson.data = null; |
| | | return objjson; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | [Route("Assembly/Delete_Json")] |
| | | [HttpGet] |
| | |
| | | { |
| | | try |
| | | { |
| | | string sErr = ""; |
| | | oSystemParameter.ShowBill(ref sErr); |
| | | |
| | | |
| | | //è·åçäº§æ±æ¥åæå¤§InterIDååæ®å· |
| | | Int64 HInterID = DBUtility.ClsPub.CreateBillID("3711", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | string HBillNo = DBUtility.ClsPub.CreateBillCode("3711", ref DBUtility.ClsPub.sExeReturnInfo, true); |
| | |
| | | FentityModel.Add("FCostRate", dr1["FCostRate"].ToString());// ææ¬æé |
| | | FentityModel.Add("FISBACKFLUSH", dr1["FISBACKFLUSH"].ToString() == "1" ? true : false);// åå²é¢æ |
| | | FentityModel.Add("FMOMAINENTRYID", dr1["FMOENTRYID"].ToString());// |
| | | //FentityModel.Add("F_bsv_Base1", new JObject() { ["Fnumber"] = dr1["FPREBDONENUMBER"].ToString() }); //å
è£
æ è¯ |
| | | if (oSystemParameter.omodel.WMS_CampanyName == "çä¸ç¥º") |
| | | { |
| | | FentityModel.Add("F_bsv_Base1", new JObject() { ["Fnumber"] = dr1["FPREBDONENUMBER"].ToString() });//å
è£
æ è¯ |
| | | } |
| | | FentityModel.Add("FLot", new JObject() { ["FNumber"] = dr1["FBATCHNO"].ToString() }); //æ¹å· |
| | | FentityModel.Add("F_bsv_Text", dr1["å·¥åºæµè½¬å¡å·"].ToString()); //æµè½¬å¡å· |
| | | JArray Fentity2 = new JArray(); |
| | |
| | | try |
| | | { |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | string sql = "Select a.HItemID ,HNumber æ ¸ç®æ¹å¼ç»ä»£ç ,HName æ ¸ç®æ¹å¼ç»åç§°,HDeptID,b.é¨é¨åç§° é¨é¨ from Gy_ClassTimePrjGroup a left join h_v_Gy_Department b on a.HDeptID=b.HItemID"; |
| | | string sql = "Select a.HItemID ,HNumber æ ¸ç®æ¹å¼ç»ä»£ç ,HName æ ¸ç®æ¹å¼ç»åç§°,HDeptID,b.é¨é¨ä»£ç ,b.é¨é¨åç§° é¨é¨ from Gy_ClassTimePrjGroup a left join h_v_Gy_Department b on a.HDeptID=b.HItemID"; |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn(sql, "Gy_ClassTimePrjGroup"); |
| | |
| | | { |
| | | objjson.code = "0"; |
| | | objjson.count = 0; |
| | | objjson.Message = "è·å失败" + DBUtility.ClsPub.sErrInfo; |
| | | objjson.Message = "è·å失败" + ",æ²¡ææ¥è¯¢å°æ°æ®"; |
| | | objjson.data = null; |
| | | return objjson; |
| | | } |
| | |
| | | { |
| | | objjson.code = "0"; |
| | | objjson.count = 0; |
| | | objjson.Message = "è·å失败" + DBUtility.ClsPub.sErrInfo; |
| | | objjson.Message = "è·å失败" + ",æ²¡ææ¥è¯¢å°æ°æ®"; |
| | | objjson.data = null; |
| | | return objjson; |
| | | } |
| | | else |
| | | { |
| | | objjson.code = "1"; |
| | | objjson.count = 1; |
| | | objjson.Message = "è·åæå!"; |
| | | objjson.data = ds.Tables[0]; |
| | | objjson.list = columnNameList; |
| | | return objjson; |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | objjson.code = "0"; |
| | | objjson.count = 0; |
| | | objjson.Message = "è·å失败" + ex.ToString(); |
| | | objjson.data = null; |
| | | return objjson; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åæ£ä»ªå¨å表 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route("Web/GetGy_InspectInstruMent")] |
| | | [HttpGet] |
| | | public object GetGy_InspectInstruMent(string InspectInstruMent, int OrganizationID) |
| | | { |
| | | if (InspectInstruMent != "") |
| | | { |
| | | sWhere = " and ( æ£éªä»ªå¨ä»£ç like '%" + InspectInstruMent + "%' or æ£éªä»ªå¨åç§° like '%" + InspectInstruMent + "%' ) "; |
| | | } |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | string sql = "Select * from h_v_Gy_InspectInstruMent where 1 = 1 " + sWhere + "Order by HItemID "; |
| | | ds = oCN.RunProcReturn(sql, "h_v_Gy_InspectInstruMent"); |
| | | |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | | { |
| | | Type dataType = col.DataType; |
| | | string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; |
| | | columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//è·åå°DataColumnå对象çåå |
| | | } |
| | | |
| | | if (ds == null || ds.Tables[0].Rows.Count <= 0) |
| | | { |
| | | objjson.code = "0"; |
| | | objjson.count = 0; |
| | | objjson.Message = "è·å失败" + ",æ²¡ææ¥è¯¢å°æ°æ®"; |
| | | objjson.data = null; |
| | | return objjson; |
| | | } |
| | |
| | | using System.Windows.Forms; |
| | | using WebAPI.Models; |
| | | |
| | | namespace WebAPI.Controllers.项ç®ç®¡ç.å·¥ä½ä»»å¡ |
| | | namespace WebAPI.Controllers.人äºç®¡ç.离èç³è¯· |
| | | { |
| | | public class HR_EmpDimissionBillController : ApiController |
| | | { |
| | |
| | | private json objJsonResult = new json(); |
| | | public DataSet ds = new DataSet(); |
| | | public SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | public DAL.ClsSc_ICMOBill BillOld = new DAL.ClsSc_ICMOBill(); |
| | | public DAL.ClsHR_EmpDimissionBill BillOld = new DAL.ClsHR_EmpDimissionBill(); |
| | | string user_LongShan = ""; |
| | | string HName_LongShan = ""; |
| | | |
| | |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region 离èç³è¯·åå表 æ ¹æ®èåå
ç è·åé¨é¨ä¸å²ä½ |
| | | /// <summary> |
| | | /// è¿å项ç®é¶æ®µå表 |
| | | ///åæ°ï¼string sqlã |
| | | ///è¿åå¼ï¼objectã |
| | | /// </summary> |
| | | [Route("HR_EmpDimissionBill/getInfoByHEmpID")] |
| | | [HttpGet] |
| | | public object getInfoByHEmpID(Int64 HEmpID) |
| | | { |
| | | try |
| | | { |
| | | string sql = @"select |
| | | b.HItemID HDeptID, b.HNumber HDeptNumber, b.HName HDeptName |
| | | , c.HItemID HPostID, c.HNumber HPostNumber, c.HName HPostName |
| | | , d.HItemID HWorkTypeID, d.HNumber HWorkTypeNumber, d.HName HWorkTypeName, d.HPayMoney |
| | | , e.HItemID HGroupID, e.HNumber HGroupNumber, e.HName HGroupName |
| | | from Gy_Employee AS a |
| | | LEFT OUTER JOIN Gy_Department AS b on a.HDeptID = b.HItemID |
| | | LEFT OUTER JOIN Gy_Post AS c on a.HPostID = c.HItemID |
| | | LEFT OUTER JOIN Gy_WorkType AS d on a.HWorkTypeID = d.HItemID |
| | | LEFT OUTER JOIN Gy_Group AS e on a.HGroupID = e.HItemID |
| | | where a.HItemID = " + HEmpID; |
| | | |
| | | ds = oCN.RunProcReturn(sql, "Gy_EmployeeInfo"); |
| | | |
| | | if(ds==null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æªæ¾å°è¯¥èåè®°å½"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | } |
| | |
| | | using System.Windows.Forms; |
| | | using WebAPI.Models; |
| | | |
| | | namespace WebAPI.Controllers.项ç®ç®¡ç.å·¥ä½ä»»å¡ |
| | | namespace WebAPI.Controllers.人äºç®¡ç.èåå¼å¨å |
| | | { |
| | | public class HR_EmpChangeBillController : ApiController |
| | | { |
| | |
| | | private json objJsonResult = new json(); |
| | | public DataSet ds = new DataSet(); |
| | | public SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | public DAL.ClsSc_ICMOBill BillOld = new DAL.ClsSc_ICMOBill(); |
| | | public DAL.ClsHR_EmpChangeBill BillOld = new DAL.ClsHR_EmpChangeBill(); |
| | | string user_LongShan = ""; |
| | | string HName_LongShan = ""; |
| | | |
| | |
| | | //ç©æä»£ç -å
è£
æ è¯-æ¥æ-ä¾åºå代ç -å
«ä½æµæ°´å· |
| | | LSHlen = 8;//æµæ°´å·æ¯8ä½ |
| | | |
| | | DataSet dataDs = oCN.RunProcReturn($"select b.F_TEZV_BASE from AIS20220308151944..T_PUR_Receive a inner join AIS20220308151944..T_PUR_RECEIVEENTRY b on a.FID = b.FID where a.FID={ordrlist[j].HMainID} and b.FENTRYID={ordrlist[j].HSubID}", "T_PUR_Receive"); |
| | | DataSet dataDs = oCN.RunProcReturn($@"select isnull(pr.FNUMBER,'') F_TEZV_BASE from AIS20220308151944..T_PUR_Receive a |
| | | inner join AIS20220308151944..T_PUR_RECEIVEENTRY b on a.FID = b.FID |
| | | left join AIS20220308151944..T_BAS_PREBDONE pr on b.F_TEZV_BASE=pr.FID |
| | | where a.FID={ordrlist[j].HMainID} and b.FENTRYID={ordrlist[j].HSubID}", "T_PUR_Receive"); |
| | | if (dataDs.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | |
| | | { |
| | | //ç©æä»£ç -å
è£
æ è¯-æ¥æ-ç»ç»ä»£ç -å
«ä½æµæ°´å· |
| | | LSHlen = 8;//æµæ°´å·æ¯8ä½ |
| | | |
| | | DataSet dataDs = oCN.RunProcReturn($"select b.F_bsv_Base1,a.FPRDORGID from AIS20220308151944..T_PRD_INSTOCK a inner join AIS20220308151944..T_PRD_INSTOCKENTRY b on a.FID = b.FID where a.FID={ordrlist[j].HMainID} and b.FENTRYID={ordrlist[j].HSubID}", "T_PRD_INSTOCK"); |
| | | DataSet dataDs = oCN.RunProcReturn($@"select isnull(pr.FNUMBER,'') F_bsv_Base1,a.FPRDORGID from AIS20220308151944..T_PRD_INSTOCK a |
| | | inner join AIS20220308151944..T_PRD_INSTOCKENTRY b on a.FID = b.FID |
| | | join( |
| | | select HERPInterID, HERPEntryID, HInterID, HEntryID from Kf_ICStockBillSub |
| | | )kf on b.FID = kf.HERPInterID and b.FENTRYID = kf.HERPEntryID |
| | | left join AIS20220308151944..T_BAS_PREBDONE pr on b.F_bsv_Base1=pr.FID |
| | | where kf.HInterID = {ordrlist[j].HMainID} and kf.HEntryID = {ordrlist[j].HSubID}", "T_PRD_INSTOCK"); |
| | | if (dataDs.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
New file |
| | |
| | | using DBUtility; |
| | | using Model; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using System.Web.Http; |
| | | using System.Windows.Forms; |
| | | using WebAPI.Models; |
| | | |
| | | namespace WebAPI.Controllers.å质管ç.产线质æ£å¹³å° |
| | | { |
| | | public class Sc_ICMOBillQualityStatus_TmpController : ApiController |
| | | { |
| | | public DBUtility.ClsPub.Enum_BillStatus BillStatus;//åæ®ç¶æï¼æ°å¢ï¼ä¿®æ¹ï¼æµè§ï¼æ´æ°åä»·ï¼åæ´ï¼ |
| | | private json objJsonResult = new json(); |
| | | public DataSet ds = new DataSet(); |
| | | public SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | public DAL.ClsSc_ICMOBillQualityStatus_Tmp BillOld = new DAL.ClsSc_ICMOBillQualityStatus_Tmp(); |
| | | string user_LongShan = ""; |
| | | string HName_LongShan = ""; |
| | | |
| | | #region 产线质æ£å¹³å° ä¿å |
| | | /// <summary> |
| | | /// æ°å¢åæ®-ä¿åæé® |
| | | ///åæ°ï¼string sqlã |
| | | ///è¿åå¼ï¼objectã |
| | | /// </summary> |
| | | [Route("Sc_ICMOBillQualityStatus_Tmp/AddICMOBillQualityStatus_Tmp")] |
| | | [HttpPost] |
| | | public object AddICMOBillQualityStatus_Tmp([FromBody] JObject sMainSub) |
| | | { |
| | | try |
| | | { |
| | | //è·ååæ° |
| | | var _value = sMainSub["sMainSub"].ToString(); |
| | | string msg1 = _value.ToString(); |
| | | string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); |
| | | string msg2 = sArray[0].ToString(); //è¡¨å¤´æ°æ® |
| | | int HSaveType = int.Parse(sArray[1].ToString()); //ä¿åç±»å 1:ä¸è¯åä¿å 2:æ¥åºä¿å |
| | | string user = sArray[2].ToString(); //æä½ç¨æ·çç¨æ·å |
| | | string HComputerName = SystemInformation.ComputerName; //设å¤åç§° |
| | | |
| | | ////夿æ¯å¦ææ°å¢æé |
| | | //if (!DBUtility.ClsPub.Security_Log("Sc_ICMOBillQualityStatus_Tmp_Edit", 1, false, user)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "æ æ°å¢æé!"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | |
| | | msg2 = "[" + msg2.ToString() + "]"; |
| | | List<Model.ClsSc_ICMOBillQualityStatus_Tmp> mainList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSc_ICMOBillQualityStatus_Tmp>>(msg2); |
| | | BillOld.omodel = mainList[0]; |
| | | if (HSaveType == 1) |
| | | { |
| | | BillOld.omodel.HSaveType = "ä¸è¯åä¿å"; |
| | | } |
| | | else if (HSaveType == 2) |
| | | { |
| | | BillOld.omodel.HSaveType = "æ¥åºåä¿å"; |
| | | } |
| | | |
| | | if (!BillOld.AddBill1(ref DBUtility.ClsPub.sExeReturnInfo)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region 产线质æ£å¹³å° è·åè¡¨å¤´ä¿¡æ¯ |
| | | [Route("Sc_ICMOBillQualityStatus_Tmp/getMainInfo")] |
| | | [HttpGet] |
| | | public object getMainInfo(string Czybm, string user) |
| | | { |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | //æ¥çæé |
| | | //if (!DBUtility.ClsPub.Security_Log("Gy_ProjectStage_Query", 1, false, user)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | |
| | | string sql = "exec h_p_Sc_ICMOBillQualityStatus_Tmp_Init '" + Czybm + "'"; |
| | | ds = oCN.RunProcReturn(sql, "h_p_Sc_ICMOBillQualityStatus_Tmp_Init"); |
| | | |
| | | if(ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æªæ¾å°ç¸å
³æ°æ®ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | | { |
| | | Type dataType = col.DataType; |
| | | string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; |
| | | columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//è·åå°DataColumnå对象çåå |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | objJsonResult.list = columnNameList; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region 产线质æ£å¹³å° è·ååè¡¨ä¿¡æ¯ |
| | | [Route("Sc_ICMOBillQualityStatus_Tmp/getSubInfo")] |
| | | [HttpGet] |
| | | public object getSubInfo(string HSplitNo, string user) |
| | | { |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | //æ¥çæé |
| | | //if (!DBUtility.ClsPub.Security_Log("Gy_ProjectStage_Query", 1, false, user)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | |
| | | string sql = @"select |
| | | a.HInterID, a.HDate æ¥æ, a.HMaterID, b.HName 产ååç§°, a.HBarCode æ¡å½¢ç , a.HBadReasonID, c.HName ä¸è¯åå , a.HResult å¤æç»æ |
| | | from Sc_ICMOBillQualityStatus_Tmp AS a |
| | | LEFT OUTER JOIN Gy_Material AS b on a.HMaterID = b.HItemID |
| | | LEFT OUTER JOIN Gy_BadReason AS c on a.HBadReasonID = c.HItemID |
| | | where a.HSplitNo = '" + HSplitNo + "' order by a.HDate desc, a.HInterID desc" ; |
| | | ds = oCN.RunProcReturn(sql, "h_p_Sc_ICMOBillQualityStatus_Tmp_Init"); |
| | | |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | | { |
| | | Type dataType = col.DataType; |
| | | string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; |
| | | columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//è·åå°DataColumnå对象çåå |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | objJsonResult.list = columnNameList; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region 产线质æ£å¹³å° å表å é¤ |
| | | [Route("Sc_ICMOBillQualityStatus_Tmp/deleteSubInfo")] |
| | | [HttpGet] |
| | | public object deleteSubInfo(int HInterID, string user) |
| | | { |
| | | try |
| | | { |
| | | //æ¥çæé |
| | | //if (!DBUtility.ClsPub.Security_Log("Gy_ProjectStage_Query", 1, false, user)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | |
| | | string sql = @"delete from Sc_ICMOBillQualityStatus_Tmp where HInterID = " + HInterID ; |
| | | oCN.RunProc(sql); |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region 产线质æ£å¹³å° è·åä¸è¯çå æ¯åæå¾æ°æ® |
| | | [Route("Sc_ICMOBillQualityStatus_Tmp/getBadReasonRateInfo")] |
| | | [HttpGet] |
| | | public object getBadReasonRateInfo(int HICMOInterID, int HICMOEntryID) |
| | | { |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | //æ¥çæé |
| | | //if (!DBUtility.ClsPub.Security_Log("Gy_ProjectStage_Query", 1, false, user)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | |
| | | string sql = @"select |
| | | a.HBadReasonID |
| | | ,b.HName HBadReasonName |
| | | , COUNT(a.HBadReasonID) HBadReasonQty |
| | | from Sc_ICMOBillQualityStatus_Tmp AS a |
| | | LEFT OUTER JOIN Gy_BadReason as b on a.HBadReasonID = b.HItemID " + |
| | | "where a.HICMOInterID = " + HICMOInterID + " and a.HICMOEntryID = " + HICMOEntryID + |
| | | " and ISNULL(a.HBadReasonID,0)<> 0" + |
| | | " group by a.HBadReasonID,b.HName order by COUNT(a.HBadReasonID) desc"; |
| | | |
| | | ds = oCN.RunProcReturn(sql, "getBadReasonRateInfo"); |
| | | |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | | { |
| | | Type dataType = col.DataType; |
| | | string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; |
| | | columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//è·åå°DataColumnå对象çåå |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | objJsonResult.list = columnNameList; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region 产线质æ£å¹³å° æ ¹æ®æ¡å½¢ç è·åä¿¡æ¯ |
| | | [Route("Sc_ICMOBillQualityStatus_Tmp/getBarCodeInfo")] |
| | | [HttpGet] |
| | | public object getBarCodeInfo(string HBarCode) |
| | | { |
| | | try |
| | | { |
| | | //æ¥çæé |
| | | //if (!DBUtility.ClsPub.Security_Log("Gy_ProjectStage_Query", 1, false, user)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | |
| | | if(HBarCode == null || HBarCode == "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ¡å½¢ç ä¸å¯ä¸ºç©ºï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | string sql = "select * from Gy_BarCodeBill where HBarCode = '" + HBarCode + "'"; |
| | | ds = oCN.RunProcReturn(sql, "Gy_BarCodeBill"); |
| | | |
| | | if(ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "该æ¡ç ä¸åå¨ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | } |
New file |
| | |
| | | using DBUtility; |
| | | using Model; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using System.Web.Http; |
| | | using System.Windows.Forms; |
| | | using WebAPI.Models; |
| | | |
| | | namespace WebAPI.Controllers.å质管ç.产线è¿ä¿®å¹³å° |
| | | { |
| | | public class Sc_SourceLineRepairBillController : ApiController |
| | | { |
| | | public DBUtility.ClsPub.Enum_BillStatus BillStatus;//åæ®ç¶æï¼æ°å¢ï¼ä¿®æ¹ï¼æµè§ï¼æ´æ°åä»·ï¼åæ´ï¼ |
| | | private json objJsonResult = new json(); |
| | | public DataSet ds = new DataSet(); |
| | | public SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | public DAL.ClsSc_ICMOBillQualityStatus_Tmp BillOld = new DAL.ClsSc_ICMOBillQualityStatus_Tmp(); |
| | | string user_LongShan = ""; |
| | | string HName_LongShan = ""; |
| | | |
| | | #region 产线质æ£å¹³å° ä¿å |
| | | /// <summary> |
| | | /// æ°å¢åæ®-ä¿åæé® |
| | | ///åæ°ï¼string sqlã |
| | | ///è¿åå¼ï¼objectã |
| | | /// </summary> |
| | | [Route("Sc_ICMOBillQualityStatus_Tmp/AddICMOBillQualityStatus_Tmp")] |
| | | [HttpPost] |
| | | public object AddICMOBillQualityStatus_Tmp([FromBody] JObject sMainSub) |
| | | { |
| | | try |
| | | { |
| | | //è·ååæ° |
| | | var _value = sMainSub["sMainSub"].ToString(); |
| | | string msg1 = _value.ToString(); |
| | | string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); |
| | | string msg2 = sArray[0].ToString(); //è¡¨å¤´æ°æ® |
| | | int HSaveType = int.Parse(sArray[1].ToString()); //ä¿åç±»å 1:ä¸è¯åä¿å 2:æ¥åºä¿å |
| | | string user = sArray[2].ToString(); //æä½ç¨æ·çç¨æ·å |
| | | string HComputerName = SystemInformation.ComputerName; //设å¤åç§° |
| | | |
| | | ////夿æ¯å¦ææ°å¢æé |
| | | //if (!DBUtility.ClsPub.Security_Log("Sc_ICMOBillQualityStatus_Tmp_Edit", 1, false, user)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "æ æ°å¢æé!"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | |
| | | msg2 = "[" + msg2.ToString() + "]"; |
| | | List<Model.ClsSc_ICMOBillQualityStatus_Tmp> mainList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSc_ICMOBillQualityStatus_Tmp>>(msg2); |
| | | BillOld.omodel = mainList[0]; |
| | | if (HSaveType == 1) |
| | | { |
| | | BillOld.omodel.HSaveType = "ä¸è¯åä¿å"; |
| | | } |
| | | else if (HSaveType == 2) |
| | | { |
| | | BillOld.omodel.HSaveType = "æ¥åºåä¿å"; |
| | | } |
| | | |
| | | if (!BillOld.AddBill1(ref DBUtility.ClsPub.sExeReturnInfo)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region 产线质æ£å¹³å° è·åè¡¨å¤´ä¿¡æ¯ |
| | | [Route("Sc_ICMOBillQualityStatus_Tmp/getMainInfo")] |
| | | [HttpGet] |
| | | public object getMainInfo(string Czybm, string user) |
| | | { |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | //æ¥çæé |
| | | //if (!DBUtility.ClsPub.Security_Log("Gy_ProjectStage_Query", 1, false, user)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | |
| | | string sql = "exec h_p_Sc_ICMOBillQualityStatus_Tmp_Init '" + Czybm + "'"; |
| | | ds = oCN.RunProcReturn(sql, "h_p_Sc_ICMOBillQualityStatus_Tmp_Init"); |
| | | |
| | | if(ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æªæ¾å°ç¸å
³æ°æ®ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | | { |
| | | Type dataType = col.DataType; |
| | | string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; |
| | | columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//è·åå°DataColumnå对象çåå |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | objJsonResult.list = columnNameList; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region 产线质æ£å¹³å° è·ååè¡¨ä¿¡æ¯ |
| | | [Route("Sc_ICMOBillQualityStatus_Tmp/getSubInfo")] |
| | | [HttpGet] |
| | | public object getSubInfo(string HSplitNo, string user) |
| | | { |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | //æ¥çæé |
| | | //if (!DBUtility.ClsPub.Security_Log("Gy_ProjectStage_Query", 1, false, user)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | |
| | | string sql = @"select |
| | | a.HInterID, a.HDate æ¥æ, a.HMaterID, b.HName 产ååç§°, a.HBarCode æ¡å½¢ç , a.HBadReasonID, c.HName ä¸è¯åå , a.HResult å¤æç»æ |
| | | from Sc_ICMOBillQualityStatus_Tmp AS a |
| | | LEFT OUTER JOIN Gy_Material AS b on a.HMaterID = b.HItemID |
| | | LEFT OUTER JOIN Gy_BadReason AS c on a.HBadReasonID = c.HItemID |
| | | where a.HSplitNo = '" + HSplitNo + "' order by a.HDate desc, a.HInterID desc" ; |
| | | ds = oCN.RunProcReturn(sql, "h_p_Sc_ICMOBillQualityStatus_Tmp_Init"); |
| | | |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | | { |
| | | Type dataType = col.DataType; |
| | | string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; |
| | | columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//è·åå°DataColumnå对象çåå |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | objJsonResult.list = columnNameList; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region 产线质æ£å¹³å° å表å é¤ |
| | | [Route("Sc_ICMOBillQualityStatus_Tmp/deleteSubInfo")] |
| | | [HttpGet] |
| | | public object deleteSubInfo(int HInterID, string user) |
| | | { |
| | | try |
| | | { |
| | | //æ¥çæé |
| | | //if (!DBUtility.ClsPub.Security_Log("Gy_ProjectStage_Query", 1, false, user)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | |
| | | string sql = @"delete from Sc_ICMOBillQualityStatus_Tmp where HInterID = " + HInterID ; |
| | | oCN.RunProc(sql); |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region 产线质æ£å¹³å° è·åä¸è¯çå æ¯åæå¾æ°æ® |
| | | [Route("Sc_ICMOBillQualityStatus_Tmp/getBadReasonRateInfo")] |
| | | [HttpGet] |
| | | public object getBadReasonRateInfo(int HICMOInterID, int HICMOEntryID) |
| | | { |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | //æ¥çæé |
| | | //if (!DBUtility.ClsPub.Security_Log("Gy_ProjectStage_Query", 1, false, user)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | |
| | | string sql = @"select |
| | | a.HBadReasonID |
| | | ,b.HName HBadReasonName |
| | | , COUNT(a.HBadReasonID) HBadReasonQty |
| | | from Sc_ICMOBillQualityStatus_Tmp AS a |
| | | LEFT OUTER JOIN Gy_BadReason as b on a.HBadReasonID = b.HItemID " + |
| | | "where a.HICMOInterID = " + HICMOInterID + " and a.HICMOEntryID = " + HICMOEntryID + |
| | | " and ISNULL(a.HBadReasonID,0)<> 0" + |
| | | " group by a.HBadReasonID,b.HName order by COUNT(a.HBadReasonID) desc"; |
| | | |
| | | ds = oCN.RunProcReturn(sql, "getBadReasonRateInfo"); |
| | | |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | | { |
| | | Type dataType = col.DataType; |
| | | string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; |
| | | columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//è·åå°DataColumnå对象çåå |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | objJsonResult.list = columnNameList; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region 产线质æ£å¹³å° æ ¹æ®æ¡å½¢ç è·åä¿¡æ¯ |
| | | [Route("Sc_ICMOBillQualityStatus_Tmp/getBarCodeInfo")] |
| | | [HttpGet] |
| | | public object getBarCodeInfo(string HBarCode) |
| | | { |
| | | try |
| | | { |
| | | //æ¥çæé |
| | | //if (!DBUtility.ClsPub.Security_Log("Gy_ProjectStage_Query", 1, false, user)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | |
| | | if(HBarCode == null || HBarCode == "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ¡å½¢ç ä¸å¯ä¸ºç©ºï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | string sql = "select * from Gy_BarCodeBill where HBarCode = '" + HBarCode + "'"; |
| | | ds = oCN.RunProcReturn(sql, "Gy_BarCodeBill"); |
| | | |
| | | if(ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "该æ¡ç ä¸åå¨ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | } |
| | |
| | | using Newtonsoft.Json.Linq; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | using Pub_Class; |
| | | using System; |
| | | using System.Collections; |
| | |
| | | BillNew.omodel.HMainSourceEntryID = ClsPub.isLong(mainList[0].HMainSourceEntryID); |
| | | BillNew.omodel.HMainSourceBillNo = ClsPub.isStrNull(mainList[0].HMainSourceBillNo); |
| | | BillNew.omodel.HMainSourceBillType = ClsPub.isStrNull(mainList[0].HMainSourceBillType); |
| | | BillNew.omodel.HQCSchemeID = ClsPub.isLong(mainList[0].HQCSchemeID); |
| | | BillNew.omodel.HBillStatus = 1; |
| | | BillNew.omodel.HProcID = ClsPub.isLong(mainList[0].HProcID); |
| | | List<Model.ClsQC_ProcessCheckBillSub> subList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsQC_ProcessCheckBillSub>>(msg3); |
| | |
| | | oSub.HProcCheckTime = HDate; |
| | | oSub.HBillNo_bak = DBUtility.ClsPub.isStrNull(mainList[0].HBillNo); |
| | | oSub.HProcCheckEmp = ClsPub.isLong(mainList[0].HFirstCheckEmp); |
| | | |
| | | oSub.HSampleSchemeID = DBUtility.ClsPub.isLong(subList[i].HSampleSchemeID); |
| | | oSub.HSampleQty = DBUtility.ClsPub.isLong(subList[i].HSampleQty); |
| | | oSub.HSampleDamageQty = DBUtility.ClsPub.isDoule(subList[i].HSampleDamageQty); |
| | | oSub.HAcceptQty = DBUtility.ClsPub.isLong(subList[i].HAcceptQty); |
| | | oSub.HRejectQty = DBUtility.ClsPub.isLong(subList[i].HRejectQty); |
| | | oSub.HSampleUnRightQty = DBUtility.ClsPub.isDoule(subList[i].HSampleUnRightQty); |
| | | oSub.HStatus = DBUtility.ClsPub.isStrNull(subList[i].HStatus); |
| | | oSub.HUnitID = DBUtility.ClsPub.isLong(subList[i].HUnitID); |
| | | oSub.HInspectVal = DBUtility.ClsPub.isStrNull(subList[i].HInspectVal); |
| | | oSub.HTargetVal = DBUtility.ClsPub.isStrNull(subList[i].HTargetVal); |
| | | oSub.HUpLimit = DBUtility.ClsPub.isStrNull(subList[i].HUpLimit); |
| | | oSub.HDownLimit = DBUtility.ClsPub.isStrNull(subList[i].HDownLimit); |
| | | oSub.HUpOffSet = DBUtility.ClsPub.isStrNull(subList[i].HUpOffSet); |
| | | oSub.HDownOffSet = DBUtility.ClsPub.isStrNull(subList[i].HDownOffSet); |
| | | oSub.HAnalysisMethod = DBUtility.ClsPub.isStrNull(subList[i].HAnalysisMethod); |
| | | oSub.HKeyInspect = DBUtility.ClsPub.isLong(subList[i].HKeyInspect); |
| | | oSub.HInspectInstruMentID = DBUtility.ClsPub.isLong(subList[i].HInspectInstruMentID); |
| | | oSub.HInspectResult = DBUtility.ClsPub.isStrNull(subList[i].HResult); |
| | | |
| | | BillNew.DetailColl.Add(oSub); |
| | | } |
| | |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region æ£éªå¼ä¿å |
| | | [Route("QC_ProcessCheckBill/set_SaveValue")] |
| | | [HttpPost] |
| | | public object set_SaveValue([FromBody] JObject msg) |
| | | { |
| | | ListModels oListModels = new ListModels(); |
| | | try |
| | | { |
| | | var _value = msg["msg"].ToString(); |
| | | string msg1 = _value.ToString(); |
| | | string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); |
| | | |
| | | string Value = sArray[0].ToString(); //æ£éªå¼è¡¨æ ¼ |
| | | Int64 HInterID = Convert.ToInt64(sArray[1]); //主ID |
| | | Int64 HEntryID = Convert.ToInt64(sArray[2]); //åID |
| | | bool bResult; |
| | | |
| | | |
| | | List<Model.ClsQC_ProcessCheckBillSub_ValueGrid> valueList = new List<Model.ClsQC_ProcessCheckBillSub_ValueGrid>(); |
| | | valueList = oListModels.getObjectByJson_ClsQC_ProcessCheckBillSub_ValueGrid(Value); |
| | | |
| | | DAL.ClsQC_ProcessCheckBill BillNew = new DAL.ClsQC_ProcessCheckBill(); |
| | | |
| | | for (int i = 0; i < valueList.ToArray().Length; i++) |
| | | { |
| | | if (i >= 0)//HQty |
| | | { |
| | | Model.ClsQC_ProcessCheckBillSub_ValueGrid oSub_Value = new Model.ClsQC_ProcessCheckBillSub_ValueGrid(); |
| | | oSub_Value.HInterID = HInterID; |
| | | oSub_Value.HEntryID = HEntryID; |
| | | oSub_Value.HSEQ = i + 1; |
| | | oSub_Value.HInSpectResult = ClsPub.isStrNull(valueList[i].HInSpectResult); |
| | | oSub_Value.HInSpectValue = ClsPub.isDoule(valueList[i].HInSpectValue); |
| | | oSub_Value.HInSpectValueB = ClsPub.isLong(valueList[i].HInSpectValueB); |
| | | oSub_Value.HInSpectValueT = ClsPub.isStrNull(valueList[i].HInSpectValueT); |
| | | |
| | | BillNew.DetailColl_Value.Add(oSub_Value); |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æç»è¡ä¿¡æ¯!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | bResult = BillNew.AddValue(ref ClsPub.sExeReturnInfo, ref HInterID, ref HEntryID); |
| | | |
| | | if (bResult == true) |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "ä¿åæ£éªå¼æå"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "ä¿å失败!åå :" + ClsPub.sExeReturnInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region å·¥åºæ£éªåæ ¹æ®æºåç±»åè·åä¿¡æ¯-æºå为çäº§ç¶æä¸´æ¶è¡¨ï¼3722ï¼ |
| | |
| | | } |
| | | } |
| | | #endregion |
| | | // |
| | | |
| | | #region å·¥åºæ£éªåå表 |
| | | [Route("QC_ProcessCheckBill/QC_ProcessCheckBillList")] |
| | | [HttpGet] |
| | | public object QC_ProcessCheckBillList(string sWhere, string user) |
| | | { |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | |
| | | string sql1 = "select * from h_v_QC_ProcessCheckBill where 1 = 1 "; |
| | | string sql = sql1 + sWhere + " order by hmainid desc"; |
| | | ds = oCN.RunProcReturn(sql, "h_v_QC_ProcessCheckBill"); |
| | | |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | | { |
| | | Type dataType = col.DataType; |
| | | string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; |
| | | columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//è·åå°DataColumnå对象çåå |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.list = columnNameList; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | ///è¿åæ£éªå¼å表 |
| | | /// </summary> |
| | | /// <param name="sWhere"></param> |
| | | /// <returns></returns> |
| | | [Route("QC_ValueTable_ProcessCheck/getValueList")] |
| | | [HttpGet] |
| | | public object getValueList(Int64 HInterID, Int64 HEntryID, string user) |
| | | { |
| | | DataSet ds; |
| | | try |
| | | { |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | |
| | | ds = oCN.RunProcReturn("select * from QC_ProcessCheckBillSub_ValueGrid where HInterID=" + HInterID + " and HEntryID=" + HEntryID, "QC_ProcessCheckBillSub_ValueGrid"); |
| | | |
| | | if (ds.Tables[0].Rows.Count > 0) |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ²¡ææ¥è¯¢å°æ°æ®ï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "没æè¿åä»»ä½è®°å½ï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | BillNew.omodel.HMainSourceEntryID = ClsPub.isLong(mainList[0].HMainSourceEntryID); |
| | | BillNew.omodel.HMainSourceBillNo = ClsPub.isStrNull(mainList[0].HMainSourceBillNo); |
| | | BillNew.omodel.HMainSourceBillType = ClsPub.isStrNull(mainList[0].HMainSourceBillType); |
| | | BillNew.omodel.HQCSchemeID = ClsPub.isLong(mainList[0].HQCSchemeID); |
| | | BillNew.omodel.HBillStatus = 1; |
| | | List<Model.ClsQC_FirstPieceCheckBillSub> subList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsQC_FirstPieceCheckBillSub>>(msg3); |
| | | BillNew.DetailColl = new List<Model.ClsQC_FirstPieceCheckBillSub>(); |
| | |
| | | oSub.HDownOffSet= DBUtility.ClsPub.isStrNull(subList[i].HDownOffSet); |
| | | oSub.HAnalysisMethod = DBUtility.ClsPub.isStrNull(subList[i].HAnalysisMethod); |
| | | oSub.HKeyInspect = DBUtility.ClsPub.isLong(subList[i].HKeyInspect); |
| | | oSub.HInspectInstruMentID = DBUtility.ClsPub.isLong(subList[i].HInspectInstruMentID); |
| | | oSub.HInspectResult = DBUtility.ClsPub.isStrNull(subList[i].HResult); |
| | | BillNew.DetailColl.Add(oSub); |
| | | } |
| | | else |
| | |
| | | |
| | | |
| | | List<Model.ClsQC_FirstPieceCheckBillSub_ValueGrid> valueList = new List<Model.ClsQC_FirstPieceCheckBillSub_ValueGrid>(); |
| | | valueList = oListModels.getObjectByJson_ClsClsQC_FirstPieceCheckBillSub_ValueGrid(Value); |
| | | valueList = oListModels.getObjectByJson_ClsQC_FirstPieceCheckBillSub_ValueGrid(Value); |
| | | |
| | | DAL.ClsQC_FirstPieceCheckBill BillNew = new DAL.ClsQC_FirstPieceCheckBill(); |
| | | |
| | |
| | | oSub_Value.HEntryID = HEntryID; |
| | | oSub_Value.HSEQ = i + 1; |
| | | oSub_Value.HInSpectResult = ClsPub.isStrNull(valueList[i].HInSpectResult); |
| | | oSub_Value.HInSpectValue = ClsPub.isLong(valueList[i].HInSpectValue); |
| | | oSub_Value.HInSpectValue = ClsPub.isDoule(valueList[i].HInSpectValue); |
| | | oSub_Value.HInSpectValueB = ClsPub.isLong(valueList[i].HInSpectValueB); |
| | | oSub_Value.HInSpectValueT = ClsPub.isStrNull(valueList[i].HInSpectValueT); |
| | | |
| | |
| | | try |
| | | { |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | List<object> columnNameList = new List<object>(); |
| | | |
| | | ds = oCN.RunProcReturn("select * from QC_FirstPieceCheckBillSub_ValueGrid where HInterID="+ HInterID + " and HEntryID="+ HEntryID, "h_v_QC_FirstPieceCheckBillList"); |
| | | |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | | { |
| | | Type dataType = col.DataType; |
| | | string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; |
| | | columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//è·åå°DataColumnå对象çåå |
| | | } |
| | | |
| | | if (ds.Tables[0].Rows.Count > 0) |
| | | { |
| | |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | objJsonResult.list = columnNameList; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ²¡ææ¥è¯¢å°æ°æ®ï¼"; |
| | | objJsonResult.Message = "æ æ£æµå¼æ°æ®ï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
New file |
| | |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | using Pub_Class; |
| | | using System; |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Data.SqlClient; |
| | | using System.Web.Http; |
| | | using WebAPI.Models; |
| | | namespace WebAPI.Controllers |
| | | { |
| | | public class Gy_TemporaryAreaController : ApiController |
| | | { |
| | | public DBUtility.ClsPub.Enum_BillStatus BillStatus; |
| | | |
| | | private json objJsonResult = new json(); |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | DataSet ds; |
| | | |
| | | |
| | | #region ææ¾åº ä¿å |
| | | [Route("Gy_TemporaryAreaBill/ModifyByID")] |
| | | [HttpPost] |
| | | public object ModifyByID([FromBody] JObject oMain) |
| | | { |
| | | try |
| | | { |
| | | var _value = oMain["oMain"].ToString(); |
| | | string msg1 = _value.ToString(); |
| | | string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); |
| | | string msg2 = sArray[0].ToString(); |
| | | string user = sArray[1].ToString(); |
| | | |
| | | //ååºåå |
| | | msg2 = "[" + msg2.ToString() + "]"; |
| | | List<Gy_TemporaryArea> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Gy_TemporaryArea>>(msg2); |
| | | |
| | | |
| | | string HNumber = list[0].HNumber; |
| | | string HName = list[0].HName; |
| | | string HHelpCode = list[0].HHelpCode; |
| | | |
| | | int HStopFlag = list[0].HStopFlag?1:0; |
| | | long HCREATEORGID = list[0].HCREATEORGID; |
| | | long HUSEORGID = list[0].HUSEORGID; |
| | | string HBarCode = list[0].HBarCode; |
| | | |
| | | string HRemark = list[0].HRemark; |
| | | long HItemID = list[0].HItemID; |
| | | string HShortNumber = list[0].HShortNumber; |
| | | long HParentID = list[0].HParentID; |
| | | |
| | | long HLevel = ClsPub.GetLevel(list[0].HNumber.Trim()); |
| | | int HEndFlag = 1; |
| | | |
| | | string Emp = user; |
| | | string Time = DateTime.Now.ToString("yyyy-MM-dd"); |
| | | |
| | | #region [注é代ç ] |
| | | //夿æé |
| | | if (!ClsPub.Security_Log("Gy_TemporaryArea_Edit", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æéï¼ï¼ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (!DBUtility.ClsPub.AllowNumber(HNumber)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "代ç ä¸ä¸è½åºç°è¿ç»â.âå¹¶ä¸é¦ä½æ«ä½ä¸è½ä¸ºâ.âï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | #endregion |
| | | |
| | | //ä¿å |
| | | //ä¿å宿¯åå¤ç |
| | | if (HItemID == 0) //æ°å¢ä¿å |
| | | { |
| | | oCN.BeginTran(); |
| | | string sql = "Insert into Gy_TemporaryArea" + |
| | | "(HNumber,HName,HHelpCode,HStopFlag,HCREATEORGID,HUSEORGID,HBarCode,HRemark,HShortNumber,HParentID,HEndFlag,HLevel,HMakeEmp,HMakeTime)" + |
| | | " values(" + |
| | | "'" + HNumber + |
| | | "','" + HName + |
| | | "','" + HHelpCode + |
| | | "'," + HStopFlag + |
| | | "," + HCREATEORGID + |
| | | "," + HUSEORGID + |
| | | ",'" + HBarCode + |
| | | "','" + HRemark + |
| | | "','" + HShortNumber + |
| | | "'," + HParentID + |
| | | "," + HEndFlag + |
| | | "," + HLevel + |
| | | ",'" + Emp + |
| | | "','" + Time + |
| | | "')"; |
| | | oCN.RunProc(sql, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //æ°å¢åä¸çº§ä¸ºéæ«çº§ä»£ç |
| | | oCN.RunProc("Update Gy_TemporaryArea set HEndFlag=0 where HItemID = " + HParentID, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | oCN.Commit(); |
| | | }else{ //ç¼è¾ä¿å |
| | | oCN.BeginTran(); |
| | | |
| | | //å¤æè¯¥è®°å½æ´æ¹åï¼è¯¥è®°å½çä¸çº§è®°å½æ¯å¦ä¸ºæ«çº§ï¼å¹¶æ´æ¹æ«çº§æ è®° |
| | | string sql = @"select * from Gy_TemporaryArea AS a where a.HParentID in (select b.HParentID from Gy_TemporaryArea AS b where b.HItemID = " + HItemID + ")"; |
| | | ds = oCN.RunProcReturn(sql, "Gy_TemporaryArea"); |
| | | if (ds != null && ds.Tables[0].Rows.Count == 1) |
| | | { |
| | | sql = "update Gy_TemporaryArea set HEndFlag = 1 where HItemID = " + ds.Tables[0].Rows[0]["HParentID"].ToString(); |
| | | oCN.RunProc(sql); |
| | | } |
| | | |
| | | if (HStopFlag == 1) |
| | | { |
| | | //æ´æ°è®°å½ |
| | | sql = "Update Gy_TemporaryArea set " + |
| | | " HNumber = '" + HNumber + |
| | | "', HName = '" + HName + |
| | | "', HHelpCode = '" + HHelpCode + |
| | | "', HStopFlag = " + HStopFlag + |
| | | ", HCREATEORGID = " + HCREATEORGID + |
| | | ", HUSEORGID = " + HUSEORGID + |
| | | ", HBarCode = '" + HBarCode + |
| | | "', HRemark = '" + HRemark + |
| | | "', HShortNumber = '" + HShortNumber + |
| | | "', HParentID = " + HParentID + |
| | | ", HEndFlag = " + HEndFlag + |
| | | ", HLevel = " + HLevel + |
| | | ", HModifyEmp = '" + Emp + |
| | | "', HModifyTime = '" + Time + |
| | | "', HStopEmp = '" + Emp + |
| | | "', HStopTime = '" + Time + |
| | | "' Where HItemID=" + HItemID; |
| | | } |
| | | else |
| | | { |
| | | //æ´æ°è®°å½ |
| | | sql = "Update Gy_TemporaryArea set " + |
| | | " HNumber = '" + HNumber + |
| | | "', HName = '" + HName + |
| | | "', HHelpCode = '" + HHelpCode + |
| | | "', HStopFlag = " + HStopFlag + |
| | | ", HCREATEORGID = " + HCREATEORGID + |
| | | ", HUSEORGID = " + HUSEORGID + |
| | | ", HBarCode = '" + HBarCode + |
| | | "', HRemark = '" + HRemark + |
| | | "', HShortNumber = '" + HShortNumber + |
| | | "', HParentID = " + HParentID + |
| | | ", HEndFlag = " + HEndFlag + |
| | | ", HLevel = " + HLevel + |
| | | ", HModifyEmp = '" + Emp + |
| | | "', HModifyTime = '" + Time + |
| | | "', HStopEmp = '" + "" + |
| | | "', HStopTime = " + "null" + |
| | | " Where HItemID=" + HItemID; |
| | | } |
| | | oCN.RunProc(sql, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | |
| | | //ä¿®æ¹åï¼å°æ°ä¸çº§æ´æ°ä¸ºéæ«çº§ |
| | | oCN.RunProc("Update Gy_TemporaryArea set HEndFlag=0 where HItemID=" + HParentID, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | |
| | | oCN.Commit(); |
| | | } |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "ä¿åæåï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.Message; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region æååº-æ¥è¯¢ |
| | | /// <summary> |
| | | /// è¿å项ç®é¶æ®µå表 |
| | | ///åæ°ï¼string sqlã |
| | | ///è¿åå¼ï¼objectã |
| | | /// </summary> |
| | | [Route("Gy_TemporaryArea/list")] |
| | | [HttpGet] |
| | | public object getTemporaryArea(string sWhere, string user) |
| | | { |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | if (!DBUtility.ClsPub.Security_Log("Gy_TemporaryAreaList", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn("select * from h_v_Gy_TemporaryAreaList order by HItemID desc", "h_v_Gy_TemporaryAreaList"); |
| | | } |
| | | else |
| | | { |
| | | string sql1 = "select * from h_v_Gy_TemporaryAreaList where 1 = 1 "; |
| | | string sql = sql1 + sWhere + " order by HItemID desc"; |
| | | ds = oCN.RunProcReturn(sql, "h_v_Gy_TemporaryAreaList"); |
| | | } |
| | | |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | | { |
| | | Type dataType = col.DataType; |
| | | string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; |
| | | columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//è·åå°DataColumnå对象çåå |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | objJsonResult.list = columnNameList; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region ææ¾åº ç¼è¾-页é¢èµå¼ |
| | | /// <summary> |
| | | ///åæ°ï¼string HInterIDã |
| | | ///è¿åå¼ï¼objectã |
| | | /// </summary> |
| | | [Route("Gy_TemporaryArea/editInit")] |
| | | [HttpGet] |
| | | public object getTemporaryAreaeditInit(string HInterID, string user) |
| | | { |
| | | try |
| | | { |
| | | //æ¥çæé |
| | | if (!DBUtility.ClsPub.Security_Log("Gy_TemporaryArea_Edit", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ ç¼è¾æéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (HInterID == null || HInterID.Equals("")) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "HInterIDä¸è½ä¸ºç©ºï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | string sql = "select * from Gy_TemporaryArea where HItemID = " + HInterID; |
| | | ds = oCN.RunProcReturn(sql, "Gy_TemporaryArea"); |
| | | |
| | | if(ds==null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æªæ¥è¯¢å°è®°å½ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | }else if(ds.Tables[0].Rows[0]["HCheckEmp"].ToString() != "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "该æååºå·²å®¡æ ¸ï¼ä¸å¯ç¼è¾ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region ææ¾åº å é¤ |
| | | /// <summary> |
| | | ///åæ°ï¼string HInterIDã |
| | | ///è¿åå¼ï¼objectã |
| | | /// </summary> |
| | | [Route("Gy_TemporaryArea/delete")] |
| | | [HttpGet] |
| | | public object deleteTemporaryArea(string HInterID, string user) |
| | | { |
| | | try |
| | | { |
| | | //æ¥çæé |
| | | if (!DBUtility.ClsPub.Security_Log("Gy_TemporaryArea_Drop", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ å 餿éï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (HInterID == null || HInterID.Equals("")) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "HInterIDä¸è½ä¸ºç©ºï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //æ ¹æ®è®°å½ç¶æå¤ææ¯å¦å¯ä»¥å é¤ |
| | | string sql = "select * from Gy_TemporaryArea where HItemID = " + HInterID; |
| | | ds = oCN.RunProcReturn(sql, "Gy_TemporaryArea"); |
| | | if(ds!=null && ds.Tables[0].Rows.Count>0 && ds.Tables[0].Rows[0]["HCheckEmp"].ToString()!="" && ds.Tables[0].Rows[0]["HStopEmp"].ToString()=="") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "该æååºä¸å¯å é¤ï¼è¯·æ£æ¥è¯¥æååºçç¶æï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | oCN.BeginTran(); |
| | | |
| | | //å¤æè¯¥è®°å½å é¤åï¼è¯¥è®°å½çä¸çº§è®°å½æ¯å¦ä¸ºæ«çº§ï¼å¹¶æ´æ¹æ«çº§æ è®° |
| | | sql = @"select * from Gy_TemporaryArea AS a where a.HParentID in (select b.HParentID from Gy_TemporaryArea AS b where b.HItemID = " + HInterID + ")"; |
| | | ds = oCN.RunProcReturn(sql, "Gy_TemporaryArea"); |
| | | if(ds!=null && ds.Tables[0].Rows.Count == 1) |
| | | { |
| | | sql = "update Gy_TemporaryArea set HEndFlag = 1 where HItemID = " + ds.Tables[0].Rows[0]["HParentID"].ToString(); |
| | | oCN.RunProc(sql); |
| | | } |
| | | |
| | | //å é¤è¯¥è®°å½ |
| | | oCN.RunProc("delete from Gy_TemporaryArea where HItemID = " + HInterID); |
| | | |
| | | oCN.Commit(); |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region ææ¾åº å®¡æ ¸/åå®¡æ ¸ |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <param name="HInterID">忮ID</param> |
| | | /// <param name="Type">å®¡æ ¸(1),åå®¡æ ¸(2)</param> |
| | | /// <param name="CurUserName">å®¡æ ¸äºº</param> |
| | | /// <returns></returns> |
| | | [Route("Gy_TemporaryArea/AuditGy_TemporaryArea")] |
| | | [HttpGet] |
| | | public object AuditGy_TemporaryArea(int HInterID, int IsAudit, string CurUserName) |
| | | { |
| | | try |
| | | { |
| | | //å®¡æ ¸æé |
| | | if (!DBUtility.ClsPub.Security_Log_second("Gy_TemporaryArea_Check", 1, false, CurUserName)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å®¡æ ¸å¤±è´¥ï¼æ æéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | ds = oCN.RunProcReturn("select * from Gy_TemporaryArea where HItemID=" + HInterID, "Gy_TemporaryArea"); |
| | | if (ds.Tables[0].Rows.Count > 0) |
| | | { |
| | | //if (bool.Parse(ds.Tables[0].Rows[0]["HStopFlag"].ToString())){ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "ææ¾åºå·²ç¦ç¨!ä¸è½åè¿è¡å®¡æ ¸æåå®¡æ ¸ï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | if (IsAudit == 0) //å®¡æ ¸å¤æ |
| | | { |
| | | if (ds.Tables[0].Rows[0]["HCheckEmp"].ToString() != "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åæ®å·²å®¡æ ¸!ä¸è½åæ¬¡å®¡æ ¸ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | if (IsAudit == 1) //åå®¡æ ¸å¤æ |
| | | { |
| | | if (ds.Tables[0].Rows[0]["HCheckEmp"].ToString() == "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åæ®æªå®¡æ ¸!ä¸éè¦åå®¡æ ¸!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åæ®ä¸åå¨!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | oCN.BeginTran(); |
| | | |
| | | if (IsAudit == 0) //å®¡æ ¸å¤æ |
| | | { |
| | | oCN.RunProc("update Gy_TemporaryArea set HCheckEmp='" + CurUserName + "',HCheckTime=getdate() where HItemID=" + HInterID); |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "å®¡æ ¸æå"; |
| | | objJsonResult.data = null; |
| | | } |
| | | if (IsAudit == 1) //åå®¡æ ¸å¤æ |
| | | { |
| | | oCN.RunProc("update Gy_TemporaryArea set HCheckEmp='',HCheckTime=null where HItemID=" + HInterID); |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "åå®¡æ ¸æå"; |
| | | objJsonResult.data = null; |
| | | } |
| | | oCN.Commit(); |
| | | |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | oCN.RollBack(); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å®¡æ ¸å¤±è´¥æè
åå®¡æ ¸å¤±è´¥ï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region ææ¾åº ç¦ç¨ãåç¦ç¨ |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <param name="HInterID">忮ID</param> |
| | | /// <param name="IsStop">ç¦ç¨(0),åç¦ç¨(1)</param> |
| | | /// <param name="CurUserName">å®¡æ ¸äºº</param> |
| | | /// <returns></returns> |
| | | [Route("Gy_TemporaryArea/StopGy_TemporaryArea")] |
| | | [HttpGet] |
| | | public object StopGy_TemporaryArea(int HInterID, int IsStop, string CurUserName) |
| | | { |
| | | try |
| | | { |
| | | //å®¡æ ¸æé |
| | | if (!DBUtility.ClsPub.Security_Log_second("Gy_TemporaryArea_Stop", 1, false, CurUserName)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "ç¦ç¨å¤±è´¥ï¼æ æéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | var ds = oCN.RunProcReturn("select * from Gy_TemporaryArea where HItemID=" + HInterID, "Gy_TemporaryArea"); |
| | | if (ds.Tables[0].Rows.Count > 0) |
| | | { |
| | | if (IsStop == 0) //ç¦ç¨å¤æ |
| | | { |
| | | if (ds.Tables[0].Rows[0]["HStopEmp"].ToString() != "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "忮已ç¦ç¨!ä¸è½å次ç¦ç¨ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | if (IsStop == 1) //åç¦ç¨å¤æ |
| | | { |
| | | if (ds.Tables[0].Rows[0]["HStopEmp"].ToString() == "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åæ®æªç¦ç¨!ä¸éè¦åç¦ç¨!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åæ®ä¸åå¨!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | oCN.BeginTran(); |
| | | |
| | | if (IsStop == 0) //ç¦ç¨å¤æ |
| | | { |
| | | oCN.RunProc("update Gy_TemporaryArea set HStopEmp='" + CurUserName + "',HStopTime=getdate(),HStopFlag=1 where HItemID=" + HInterID); |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "ç¦ç¨æå"; |
| | | objJsonResult.data = null; |
| | | } |
| | | if (IsStop == 1) //åç¦ç¨å¤æ |
| | | { |
| | | oCN.RunProc("update Gy_TemporaryArea set HStopEmp='',HStopTime=null,HStopflag=0 where HItemID=" + HInterID); |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "åç¦ç¨æå"; |
| | | objJsonResult.data = null; |
| | | } |
| | | oCN.Commit(); |
| | | |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | oCN.RollBack(); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "ç¦ç¨å¤±è´¥æè
åç¦ç¨å¤±è´¥ï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | } |
| | |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Linq; |
| | | using System.IO; |
| | | using System.Web; |
| | | using System.Web.Http; |
| | | using System.Windows.Forms; |
| | | using WebAPI.Models; |
| | | using WebAPI.Controllers.SCGL.æ¥è®¡å管ç; |
| | | using System.Text.RegularExpressions; |
| | | |
| | | namespace WebAPI.Controllers.项ç®ç®¡ç.å·¥ä½ä»»å¡ |
| | | namespace WebAPI.Controllers.å·¥èµç®¡ç.æ£è¡¥é¡¹ç®è´¹ç¨å |
| | | { |
| | | public class Pay_DuSubsidyItemBillController : ApiController |
| | | { |
| | |
| | | private json objJsonResult = new json(); |
| | | public DataSet ds = new DataSet(); |
| | | public SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | public DAL.ClsSc_ICMOBill BillOld = new DAL.ClsSc_ICMOBill(); |
| | | DAL.ClsGy_Employee_View oEmp = new DAL.ClsGy_Employee_View(); |
| | | DAL.ClsGy_Department_View oDept = new DAL.ClsGy_Department_View(); |
| | | DAL.ClsGy_Group_View oGroup = new DAL.ClsGy_Group_View(); |
| | | DAL.ClsGy_ORGANIZATIONS_View oOrg = new DAL.ClsGy_ORGANIZATIONS_View(); |
| | | DAL.ClsGy_DuSubsidyItem_View oDuSItem = new DAL.ClsGy_DuSubsidyItem_View(); |
| | | public DAL.ClsPay_DuSubsidyItemBill BillOld = new DAL.ClsPay_DuSubsidyItemBill(); |
| | | Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); |
| | | string user_LongShan = ""; |
| | | string HName_LongShan = ""; |
| | | |
| | |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region æ£è¡¥é¡¹ç®è´¹ç¨å æ°æ®å¯¼å
¥ |
| | | #region è·å导å
¥æä»¶çæ°æ® |
| | | [Route("Pay_DuSubsidyItemBill/Pay_DuSubsidyItemBillimport")] |
| | | [HttpPost] |
| | | public object Pay_DuSubsidyItemBillimport() |
| | | { |
| | | try |
| | | { |
| | | var WorkBookName = HttpContext.Current.Request["WorkBookName"]; |
| | | DBUtility.ClsPub.HOrgID = long.Parse(HttpContext.Current.Request["HOrgID"]); |
| | | //è·åæä»¶åç§° |
| | | var file = HttpContext.Current.Request.Files[0]; |
| | | //è·åæä»¶ç©çè·¯å¾ |
| | | string ExcelPath = HttpContext.Current.Server.MapPath("~/" + file.FileName); |
| | | //ä¿åæä»¶ |
| | | file.SaveAs(ExcelPath); |
| | | |
| | | NpoiHelper np = new NpoiHelper(); |
| | | DataSet ExcelDs = np.ReadExcel(ExcelPath, 1, 2, WorkBookName); |
| | | |
| | | //å 餿件 |
| | | File.Delete(ExcelPath); |
| | | |
| | | //å建临æ¶è¡¨ |
| | | DataTable tb2 = new DataTable("dt2"); |
| | | DataTable tb3 = new DataTable("dt3"); |
| | | |
| | | //æ·»å åå |
| | | for (int i = 0; i < ExcelDs.Tables[0].Columns.Count; i++) |
| | | { |
| | | tb2.Columns.Add(ExcelDs.Tables[0].Rows[0][i].ToString()); |
| | | } |
| | | |
| | | //æ·»å æ°æ® |
| | | for (int i = 1; i < ExcelDs.Tables[0].Rows.Count; i++) |
| | | { |
| | | DataRow row = tb2.NewRow(); |
| | | for (int j = 0; j < ExcelDs.Tables[0].Columns.Count; j++) |
| | | { |
| | | row[j] = ExcelDs.Tables[0].Rows[i][j].ToString(); |
| | | } |
| | | tb2.Rows.Add(row); |
| | | } |
| | | //è·å导å
¥æä»¶ååéåï¼ç¨äºåç«¯å¨æå |
| | | List<object> columnNameList = new List<object>(); |
| | | //æ·»å åå |
| | | foreach (DataColumn col in tb2.Columns) |
| | | { |
| | | Type dataType = col.DataType; |
| | | string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; |
| | | columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//è·åå°DataColumnå对象çåå |
| | | } |
| | | |
| | | var error = ""; |
| | | |
| | | //æ¥è¯¢æ£è¡¥é¡¹ç®è´¹ç¨å没æçå |
| | | if (!tb2.Columns.Contains("æ¥æ")) |
| | | error += "æ²¡ææ¾å°ãæ¥æãçæ é¢,"; |
| | | if (!tb2.Columns.Contains("å¹´")) |
| | | error += "æ²¡ææ¾å°ãå¹´ãçæ é¢,"; |
| | | if (!tb2.Columns.Contains("æ")) |
| | | error += "æ²¡ææ¾å°ãæãçæ é¢,"; |
| | | if (!tb2.Columns.Contains("ç»ç»ä»£ç ")) |
| | | error += "æ²¡ææ¾å°ãç»ç»ä»£ç ãçæ é¢,"; |
| | | if (!tb2.Columns.Contains("ç»ç»")) |
| | | error += "æ²¡ææ¾å°ãç»ç»ãçæ é¢,"; |
| | | if (!tb2.Columns.Contains("é¨é¨ä»£ç ")) |
| | | error += "æ²¡ææ¾å°ãé¨é¨ä»£ç ãçæ é¢,"; |
| | | if (!tb2.Columns.Contains("é¨é¨åç§°")) |
| | | error += "æ²¡ææ¾å°ãé¨é¨åç§°ãçæ é¢,"; |
| | | if (!tb2.Columns.Contains("çç»ä»£ç ")) |
| | | error += "æ²¡ææ¾å°ãçç»ä»£ç ãçæ é¢,"; |
| | | if (!tb2.Columns.Contains("çç»")) |
| | | error += "æ²¡ææ¾å°ãçç»ãçæ é¢,"; |
| | | if (!tb2.Columns.Contains("è¡¨å¤´å¤æ³¨")) |
| | | error += "æ²¡ææ¾å°ãè¡¨å¤´å¤æ³¨ãçæ é¢,"; |
| | | if (!tb2.Columns.Contains("èå代ç ")) |
| | | error += "æ²¡ææ¾å°ãèå代ç ãçæ é¢,"; |
| | | if (!tb2.Columns.Contains("èååç§°")) |
| | | error += "æ²¡ææ¾å°ãèååç§°ãçæ é¢,"; |
| | | ////è·åææçæ£è¡¥é¡¹ç®ï¼å¤å®å¯¼å
¥æä»¶ä¸æªå
å«çæ£è¡¥é¡¹ç® |
| | | //DataSet ds_DuSubsidyItem; |
| | | //ds_DuSubsidyItem = oCN.RunProcReturn("select * from Gy_DuSubsidyItem", "Gy_DuSubsidyItem"); |
| | | //if (ds_DuSubsidyItem.Tables[0] != null) |
| | | //{ |
| | | // for (int i = 0; i < ds_DuSubsidyItem.Tables[0].Rows.Count; i++) |
| | | // { |
| | | // string DuSubsidyItem = ds_DuSubsidyItem.Tables[0].Rows[i]["HName"] == null ? "" : ds_DuSubsidyItem.Tables[0].Rows[i]["HName"].ToString(); |
| | | // if (!tb2.Columns.Contains(DuSubsidyItem)) |
| | | // error += "æ²¡ææ¾å°ã" + DuSubsidyItem + "ãçæ é¢,"; |
| | | // } |
| | | //} |
| | | |
| | | if (error.Length > 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = $"Excel模æ¿åå¨é误,{error}\r\n"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | objJsonResult = (json)Checkdata(tb2); |
| | | if (objJsonResult.code == "0") |
| | | { |
| | | return objJsonResult; |
| | | } |
| | | |
| | | oCN.BeginTran(); |
| | | //å é¤ä¸´æ¶è¡¨æ°æ® |
| | | oCN.RunProc("delete from diyipi_Pay_DuSubsidyItemBill"); |
| | | |
| | | //临æ¶è¡¨æ·»å æ°æ® |
| | | for (int i = 0; i < tb2.Rows.Count; i++) |
| | | { |
| | | if (tb2.Rows[i]["èå代ç "].ToString() != "") |
| | | { |
| | | //æ ¹æ®ä»£ç è·åè¡¨æ°æ® |
| | | oOrg.GetInfoByNumber(tb2.Rows[i]["ç»ç»ä»£ç "].ToString()); |
| | | oDept.GetInfoByNumber(tb2.Rows[i]["é¨é¨ä»£ç "].ToString()); |
| | | oGroup.GetInfoByNumber(tb2.Rows[i]["çç»ä»£ç "].ToString()); |
| | | oEmp.GetInfoByNumber(tb2.Rows[i]["èå代ç "].ToString()); |
| | | |
| | | //è·åå
ç |
| | | Int64 HOrgID = oOrg.omodel.HItemID; |
| | | Int64 HDeptID = oDept.omodel.HItemID; |
| | | Int64 HGroupID = oGroup.omodel.HItemID; |
| | | Int64 HEmpID = oEmp.omodel.HItemID; |
| | | |
| | | for (int j = 12; j < tb2.Columns.Count - 1; j++) |
| | | { |
| | | oDuSItem.GetInfoByName(tb2.Columns[j].ColumnName); |
| | | Int64 HDuSID = oDuSItem.omodel.HItemID; |
| | | string HDuSNumber = oDuSItem.omodel.HNumber; |
| | | string HDuSName = oDuSItem.omodel.HName; |
| | | double HMoney = double.Parse(tb2.Rows[i][tb2.Columns[j].ColumnName].ToString()); |
| | | |
| | | string sql = "insert into diyipi_Pay_DuSubsidyItemBill(HDate,HYear,HPeriod,HOrgID,HOrgNumber,HOrgName,HDeptID,HDeptNumber,HDeptName" + |
| | | ",HGroupID,HGroupNumber,HGroupName,HRemarkMain,HEmpID,HEmpNumber,HEmpName,HDuSubsidyItemID,HDuSubsidyItemNumber,HDuSubsidyItemName,HMoney,HRemarkSub) " + |
| | | "values(" + |
| | | "'" + tb2.Rows[i]["æ¥æ"].ToString() + |
| | | "'," + int.Parse(tb2.Rows[i]["å¹´"].ToString()) + |
| | | "," + int.Parse(tb2.Rows[i]["æ"].ToString()) + |
| | | "," + HOrgID + |
| | | ",'" + tb2.Rows[i]["ç»ç»ä»£ç "].ToString() + |
| | | "','" + tb2.Rows[i]["ç»ç»"].ToString() + |
| | | "'," + HDeptID + |
| | | ",'" + tb2.Rows[i]["é¨é¨ä»£ç "].ToString() + |
| | | "','" + tb2.Rows[i]["é¨é¨åç§°"].ToString() + |
| | | "'," + HGroupID + |
| | | ",'" + tb2.Rows[i]["çç»ä»£ç "].ToString() + |
| | | "','" + tb2.Rows[i]["çç»"].ToString() + |
| | | "','" + tb2.Rows[i]["è¡¨å¤´å¤æ³¨"].ToString() + |
| | | "'," + HEmpID + |
| | | ",'" + tb2.Rows[i]["èå代ç "].ToString() + |
| | | "','" + tb2.Rows[i]["èååç§°"].ToString() + |
| | | "'," + HDuSID + |
| | | ",'" + HDuSNumber + |
| | | "','" + HDuSName + |
| | | "'," + HMoney + |
| | | ",'" + tb2.Rows[i]["表ä½å¤æ³¨"] + |
| | | "')"; |
| | | oCN.RunProc(sql); |
| | | } |
| | | } |
| | | |
| | | } |
| | | oCN.Commit(); |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = error; |
| | | objJsonResult.data = tb2; |
| | | objJsonResult.list = columnNameList; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region æ£æ¥å¯¼å
¥æä»¶çæ°æ® |
| | | private object Checkdata(DataTable dt) |
| | | { |
| | | bool b = false; |
| | | string sErrMsg = ""; |
| | | string sMsg = ""; |
| | | for (int i = 0; i <= dt.Rows.Count - 1; i++) |
| | | { |
| | | string HDeptNumber = ""; |
| | | string HGroupNumber = ""; |
| | | string HEmpNumber = ""; |
| | | double HMoney = 0; |
| | | |
| | | HDeptNumber = DBUtility.ClsPub.isStrNull(dt.Rows[i]["é¨é¨ä»£ç "].ToString()); |
| | | HGroupNumber = DBUtility.ClsPub.isStrNull(dt.Rows[i]["çç»ä»£ç "].ToString()); |
| | | HEmpNumber = DBUtility.ClsPub.isStrNull(dt.Rows[i]["èå代ç "].ToString()); |
| | | if (HEmpNumber != "") |
| | | { |
| | | int index = i + 1; //è®°å½å½åæ£éªæ°æ®ä½äºå¯¼å
¥æä»¶ç第å è¡ |
| | | |
| | | //å®¡æ ¸ä»£ç æ¯å¦åç |
| | | if (!DBUtility.ClsPub.AllowNumber(HDeptNumber)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "é¨é¨ä»£ç ä¸ä¸è½åºç°è¿ç»â.âå¹¶ä¸é¦ä½æ«ä½ä¸è½ä¸ºâ.âï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | if (!DBUtility.ClsPub.AllowNumber(HGroupNumber)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "çç»ä»£ç ä¸ä¸è½åºç°è¿ç»â.âå¹¶ä¸é¦ä½æ«ä½ä¸è½ä¸ºâ.âï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | if (!DBUtility.ClsPub.AllowNumber(HEmpNumber)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "èå代ç ä¸ä¸è½åºç°è¿ç»â.âå¹¶ä¸é¦ä½æ«ä½ä¸è½ä¸ºâ.âï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | //å¾å°é¨é¨å
ç |
| | | if (!oDept.GetInfoByNumber(HDeptNumber)) |
| | | { |
| | | sMsg = "[" + HDeptNumber + "]é¨é¨ä¸åå¨"; |
| | | if (sErrMsg.Contains(sMsg) == false) |
| | | { |
| | | sErrMsg = sErrMsg + "[" + HDeptNumber + "]é¨é¨ä¸åå¨\r\n"; |
| | | } |
| | | b = true; |
| | | } |
| | | //å¾å°çç»å
ç |
| | | if (!oGroup.GetInfoByNumber(HGroupNumber)) |
| | | { |
| | | sMsg = "[" + HGroupNumber + "]çç»ä¸åå¨"; |
| | | if (sErrMsg.Contains(sMsg) == false) |
| | | { |
| | | sErrMsg = sErrMsg + "[" + HGroupNumber + "]çç»ä¸åå¨\r\n"; |
| | | } |
| | | b = true; |
| | | } |
| | | |
| | | //å¾å°èåå
ç |
| | | if (!oEmp.GetInfoByNumber(HEmpNumber)) |
| | | { |
| | | sMsg = "[" + HEmpNumber + "]èåä¸åå¨"; |
| | | if (sErrMsg.Contains(sMsg) == false) |
| | | { |
| | | sErrMsg = sErrMsg + "[" + HEmpNumber + "]èåä¸åå¨\r\n"; |
| | | } |
| | | b = true; |
| | | } |
| | | //æ£éªå¯¼å
¥æä»¶ä¸çæ£è¡¥é¡¹ç®æ¯å¦åå¨ã弿¯å¦åæ³ |
| | | for(int j=12; j < dt.Columns.Count-1; j++) |
| | | { |
| | | //æ£éªå¯¼å
¥æä»¶ä¸çæ£è¡¥é¡¹ç®æ¯å¦åå¨ |
| | | if (!oDuSItem.GetInfoByName(dt.Columns[j].ColumnName)) |
| | | { |
| | | sMsg = "[" + dt.Columns[j].ColumnName + "]æ£è¡¥é¡¹ç®ä¸åå¨"; |
| | | if (sErrMsg.Contains(sMsg) == false) |
| | | { |
| | | sErrMsg = sErrMsg + "[" + dt.Columns[j].ColumnName + "]æ£è¡¥é¡¹ç®ä¸åå¨\r\n"; |
| | | } |
| | | b = true; |
| | | } |
| | | //æ£éªå¯¼å
¥æä»¶ä¸çæ£è¡¥é¡¹ç®å¼æ¯å¦åæ³ |
| | | if ( !Regex.IsMatch( dt.Rows[i][dt.Columns[j].ColumnName].ToString(), @"^\d+(\.\d+)?$")) |
| | | { |
| | | sMsg = "[" + dt.Columns[j].ColumnName + "]æ°æ®æ ¼å¼é误ï¼è¯·è¾å
¥éè´æ°"; |
| | | if (sErrMsg.Contains(sMsg) == false) |
| | | { |
| | | sErrMsg = sErrMsg + "[" + dt.Columns[j].ColumnName + "]æ°æ®æ ¼å¼é误ï¼è¯·è¾å
¥éè´æ°\r\n"; |
| | | } |
| | | b = true; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | if (b == true) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = sErrMsg; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = sErrMsg; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region æ£è¡¥é¡¹ç®è´¹ç¨å ä¿å导å
¥æ°æ® |
| | | [Route("Pay_DuSubsidyItemBill/Pay_DuSubsidyItemBillSaveImport")] |
| | | [HttpGet] |
| | | public object Pay_DuSubsidyItemBillSaveImport(string user) |
| | | { |
| | | try |
| | | { |
| | | //æ¥çæé |
| | | if (!DBUtility.ClsPub.Security_Log("Pay_DuSubsidyItemBill_Edit", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æ°å¢æéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //è·å临æ¶è¡¨æ°æ® |
| | | ds = oCN.RunProcReturn("select * from diyipi_Pay_DuSubsidyItemBill order by HDate desc,HYear desc,HPeriod desc,HOrgID desc,HDeptID desc,HGroupID desc,HRemarkMain desc,HEmpID desc", "diyipi_Pay_DuSubsidyItemBill"); |
| | | if (ds==null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "ä¿åå¤±è´¥ï¼æ°æ®æªå¯¼å
¥æåï¼è¯·éæ°å¯¼å
¥æ°æ®ï¼ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //ä¿åæ°æ® |
| | | oCN.BeginTran(); |
| | | DataTable dt = ds.Tables[0]; |
| | | Pay_DuSubsidyItemBillMain mainTable = new Pay_DuSubsidyItemBillMain(); |
| | | List<Pay_DuSubsidyItemBillSub> subTable = new List<Pay_DuSubsidyItemBillSub>(); |
| | | int HOrgID = 0; |
| | | int HYear = 0; |
| | | int HPeriod = 0; |
| | | string compareText = ""; |
| | | |
| | | for (int i = 0; i < dt.Rows.Count; i++) |
| | | { |
| | | string compareText1 = dt.Rows[i]["HDate"].ToString() + |
| | | "" + dt.Rows[i]["HYear"].ToString() + |
| | | "" + dt.Rows[i]["HPeriod"].ToString() + |
| | | "" + dt.Rows[i]["HOrgID"].ToString() + |
| | | "" + dt.Rows[i]["HDeptID"].ToString() + |
| | | "" + dt.Rows[i]["HGroupID"].ToString() + |
| | | "" + dt.Rows[i]["HRemarkMain"].ToString() + |
| | | "" + dt.Rows[i]["HEmpID"].ToString(); |
| | | if(compareText != compareText1) |
| | | { |
| | | if (subTable.Count>0) |
| | | { |
| | | objJsonResult = SaveImport_AddBillMain(mainTable, subTable, HOrgID, HYear, HPeriod, user); |
| | | if (objJsonResult.code == "0") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = objJsonResult.Message; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | mainTable = new Pay_DuSubsidyItemBillMain(); |
| | | subTable.Clear(); |
| | | } |
| | | compareText = compareText1; |
| | | mainTable.HDate = dt.Rows[i]["HDate"].ToString(); |
| | | mainTable.HDeptID = int.Parse(dt.Rows[i]["HDeptID"].ToString()); |
| | | mainTable.HGroupID = int.Parse(dt.Rows[i]["HGroupID"].ToString()); |
| | | mainTable.HRemark = dt.Rows[i]["HRemarkMain"].ToString(); |
| | | mainTable.HMaker = user; |
| | | mainTable.HMakerDate = DateTime.Now.ToString("yyyy-MM-dd"); |
| | | HOrgID = int.Parse(dt.Rows[i]["HOrgID"].ToString()); |
| | | HYear = int.Parse(dt.Rows[i]["HYear"].ToString()); |
| | | HPeriod = int.Parse(dt.Rows[i]["HPeriod"].ToString()); |
| | | } |
| | | |
| | | Pay_DuSubsidyItemBillSub oSub = new Pay_DuSubsidyItemBillSub(); |
| | | oSub.HEmpID = int.Parse(dt.Rows[i]["HEmpID"].ToString()); |
| | | oSub.HDuSubsidyItemID = int.Parse(dt.Rows[i]["HDuSubsidyItemID"].ToString()); |
| | | oSub.HQty = 0; |
| | | oSub.HPrice = 0; |
| | | oSub.HMoney = double.Parse(dt.Rows[i]["HMoney"].ToString()); |
| | | oSub.HRemark = dt.Rows[i]["HRemarkSub"].ToString(); |
| | | subTable.Add(oSub); |
| | | } |
| | | |
| | | //æ·»å æå䏿¬¡è®°å½ |
| | | if (subTable.Count > 0) |
| | | { |
| | | objJsonResult = SaveImport_AddBillMain(mainTable, subTable, HOrgID, HYear, HPeriod, user); |
| | | if (objJsonResult.code == "0") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = objJsonResult.Message; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | mainTable = new Pay_DuSubsidyItemBillMain(); |
| | | subTable.Clear(); |
| | | } |
| | | |
| | | |
| | | oCN.Commit(); |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region æ·»å æ£è¡¥é¡¹ç®è´¹ç¨å 主表 |
| | | public json SaveImport_AddBillMain(Pay_DuSubsidyItemBillMain mainTable, List<Pay_DuSubsidyItemBillSub> subTable, int HOrgID, int Year, int Period, string user) |
| | | { |
| | | string HComputerName = SystemInformation.ComputerName; //设å¤åç§° |
| | | |
| | | try |
| | | { |
| | | List<Pay_DuSubsidyItemBillMain> mainList = new List<Pay_DuSubsidyItemBillMain>(); |
| | | mainList.Add(mainTable); |
| | | |
| | | |
| | | int HYear = Year; |
| | | int HPeriod = Period; |
| | | string HBillType = "2233"; |
| | | string HBillSubType = ""; |
| | | int HBillStatus = 1; |
| | | |
| | | int HAutoSaveFlag = 0; |
| | | |
| | | |
| | | Int64 HInterID = DBUtility.ClsPub.CreateBillID_Prod(HBillType, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | string HBillNo = DBUtility.ClsPub.CreateBillCode(HBillType, ref DBUtility.ClsPub.sExeReturnInfo, true); |
| | | string HDate = mainList[0].HDate; |
| | | string HInnerBillNo = ""; |
| | | int HGroupID = mainList[0].HGroupID; |
| | | int HDeptID = mainList[0].HDeptID; |
| | | string HExplanation = ""; |
| | | string HRemark = mainList[0].HRemark; |
| | | |
| | | |
| | | string HMaker = mainList[0].HMaker; |
| | | string HMakerDate = mainList[0].HMakerDate; |
| | | |
| | | ds = oCN.RunProcReturn("select * from Pay_DuSubsidyItemBillMain where HInterID = " + HInterID + " and HBillNo = '" + HBillNo + "'", "Pay_DuSubsidyItemBillMain"); |
| | | |
| | | //ä¸»è¡¨æ·»å æ°æ® |
| | | string sql = "insert into Pay_DuSubsidyItemBillMain" + |
| | | "(HYear,HPeriod,HBillType,HBillSubType,HBillStatus,HInterID,HBillNo,HDate,HInnerBillNo,HGroupID,HDeptID,HExplanation,HAutoSaveFlag,HRemark,HMaker,HMakeDate) " + |
| | | "values(" + |
| | | "" + HYear + |
| | | "," + HPeriod + |
| | | ",'" + HBillType + |
| | | "','" + HBillSubType + |
| | | "'," + HBillStatus + |
| | | "," + HInterID + |
| | | ",'" + HBillNo + |
| | | "','" + HDate + |
| | | "','" + HInnerBillNo + |
| | | "'," + HGroupID + |
| | | "," + HDeptID + |
| | | ",'" + HExplanation + |
| | | "'," + HAutoSaveFlag + |
| | | ",'" + HRemark + |
| | | "','" + HMaker + |
| | | "','" + HMakerDate + |
| | | "')"; |
| | | |
| | | //主表 |
| | | oCN.RunProc(sql); |
| | | LogService.Write("ç¨æ·:" + user + ",æ¥æ:" + DateTime.Now + ",æ°å¢æ£è¡¥é¡¹ç®è´¹ç¨å:" + HBillNo); |
| | | oCN.RunProc("Insert into System_log (GeginDate, userid, WorkstationName, WorkList, SystemName, NetuserName, State) select GETDATE(),'" + user + "','" + HComputerName + "','" + "æ°å¢æ£è¡¥é¡¹ç®è´¹ç¨åï¼" + HBillNo + "','LMES-æ£è¡¥é¡¹ç®è´¹ç¨å模å','" + DBUtility.ClsPub.IPAddress + "','æ°å¢åæ®'", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | |
| | | |
| | | //ä¿åå表 |
| | | objJsonResult = SaveImport_AddBillSub(subTable, HInterID,HBillNo); |
| | | |
| | | if (objJsonResult.code == "0") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = objJsonResult.Message; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = null; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | #region æ·»å æ£è¡¥é¡¹ç®è´¹ç¨å å表 |
| | | public json SaveImport_AddBillSub(List<Pay_DuSubsidyItemBillSub> DetailColl, Int64 HInterID, string HBillNo) |
| | | { |
| | | int i = 0; //ä½ä¸ºå表å
ç |
| | | foreach (Pay_DuSubsidyItemBillSub oSub in DetailColl) |
| | | { |
| | | i++; //åä¸ä¸ªä¸»è¡¨ä¸çå表çå
ç èªå¢ |
| | | |
| | | int HEntryID = i; |
| | | |
| | | int HEmpID = oSub.HEmpID; |
| | | int HDuSubsidyItemID = oSub.HDuSubsidyItemID; |
| | | double HQty = oSub.HQty; |
| | | double HPrice = oSub.HPrice; |
| | | double HMoney = oSub.HMoney; |
| | | string HRemark = oSub.HRemark; |
| | | |
| | | string sql = "insert into Pay_DuSubsidyItemBillSub" + |
| | | "(HInterID,HEntryID,HEmpID,HDuSubsidyItemID,HQty,HPrice,HMoney,HRemark) " + |
| | | "values(" + |
| | | "" + HInterID + |
| | | "," + HEntryID + |
| | | "," + HEmpID + |
| | | "," + HDuSubsidyItemID + |
| | | "," + HQty + |
| | | "," + HPrice + |
| | | "," + HMoney + |
| | | ",'" + HRemark + |
| | | "')"; |
| | | |
| | | oCN.RunProc(sql); |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = null; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | #endregion |
| | | #endregion |
| | | |
| | | #region æ£è¡¥é¡¹ç®è´¹ç¨å_è´¹ç¨æ¨ªåæ¾ç¤º è·åæ£è¡¥é¡¹ç® |
| | | [Route("Pay_DuSubsidyItemBill_KS/getInitGrid_KS")] |
| | | [HttpGet] |
| | | public object getInitGrid_KS() |
| | | { |
| | | try |
| | | { |
| | | //è·åæªç¦ç¨çæ£è¡¥é¡¹ç® |
| | | string sql = "select * from Gy_DuSubsidyItem where HStopFlag = 0"; |
| | | ds = oCN.RunProcReturn(sql, "Gy_DuSubsidyItem"); |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æªæ¾å°ç¸å
³æ£è¡¥é¡¹ç®ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //å¤çæ£è¡¥é¡¹ç® |
| | | List<object> columnNameList = new List<object>(); |
| | | for(int i = 0; i < ds.Tables[0].Rows.Count; i++) |
| | | { |
| | | string field = ds.Tables[0].Rows[i]["HItemID"].ToString(); |
| | | string title = ds.Tables[0].Rows[i]["HName"].ToString(); |
| | | string dataType = "decimal(18,2)"; |
| | | string ColmString = "{\"field\":\"" + field + "\",\"title\":\"" + title + "\",\"dataType\":\"" + dataType + "\"}"; |
| | | columnNameList.Add(JsonConvert.DeserializeObject(ColmString)); |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.list = columnNameList; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | } |
| | |
| | | using System.Windows.Forms; |
| | | using WebAPI.Models; |
| | | |
| | | namespace WebAPI.Controllers.项ç®ç®¡ç.å·¥ä½ä»»å¡ |
| | | namespace WebAPI.Controllers.å·¥èµç®¡ç.å¼å¸¸å·¥æ¶ç³è¯· |
| | | { |
| | | public class Pay_ErrWorkTimesRequestBillController : ApiController |
| | | { |
| | |
| | | private json objJsonResult = new json(); |
| | | public DataSet ds = new DataSet(); |
| | | public SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | public DAL.ClsSc_ICMOBill BillOld = new DAL.ClsSc_ICMOBill(); |
| | | public DAL.ClsPay_ErrWorkTimesRequestBill BillOld = new DAL.ClsPay_ErrWorkTimesRequestBill(); |
| | | string user_LongShan = ""; |
| | | string HName_LongShan = ""; |
| | | |
| | |
| | | return objJsonResult; |
| | | } |
| | | |
| | | oCN.BeginTran(); |
| | | ds = oCN.RunProcReturn("select * from Sc_ICMOBillWorkQtyStatus_Tmp where HInterID=" + HInterID + " and HSourceInterID=" + HICMOInterID + " and HSourceEntryID=" + HICMOEntryID, "Sc_ICMOBillWorkQtyStatus_Tmp"); |
| | | if (ds.Tables[0].Rows.Count == 0) { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ¥æ æ°æ®!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | oCN.BeginTran(); |
| | | //å é¤äº§éæ±æ¥è¡¨ |
| | | string sql = string.Format(@"delete Sc_ICMOBillWorkQtyStatus_Tmp where HInterID='" + HInterID + "'"); |
| | | oCN.RunProc(sql); |
| | | double sumqty = double.Parse(ds.Tables[0].Rows[0]["HQty"].ToString()) + double.Parse(ds.Tables[0].Rows[0]["HBadQty"].ToString()) + double.Parse(ds.Tables[0].Rows[0]["HWasterQty"].ToString()); //æ±æ¥æ°é+ä¸è¯+æ¥åº |
| | | //ååçäº§ç¶æä¸´æ¶è¡¨Sc_ICMOBillStatus_Tmpæåæ±æ¥æ°é HSplitRelationQty |
| | | oCN.RunProc("update Sc_ICMOBillStatus_Tmp set HSplitRelationQty=HSplitRelationQty-" + sumqty + " where HICMOBillNo='" + ds.Tables[0].Rows[0]["HICMOBillNo"].ToString() + "' and HSourceID='" + ds.Tables[0].Rows[0]["HSourceID"].ToString() + "' and HICMOInterID='" + ds.Tables[0].Rows[0]["HICMOInterID"].ToString() + "' and HICMOEntryID='" + ds.Tables[0].Rows[0]["HICMOEntryID"].ToString() + "' and HInterID=" + ds.Tables[0].Rows[0]["HSourceInterID"].ToString()); |
| | | |
| | | |
| | | oCN.Commit(); |
| | | objJsonResult.code = "1"; |
| | |
| | | |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn("select * from h_v_PM_YearEmployeeMoneyBillList order by åæ®å· ", "h_v_PM_YearEmployeeMoneyBillList"); |
| | | ds = oCN.RunProcReturn("select * from h_v_PM_YearEmployeeMoneyBillList order by åæ®å· desc ", "h_v_PM_YearEmployeeMoneyBillList"); |
| | | } |
| | | else |
| | | { |
| | | string sql1 = "select * from h_v_PM_YearEmployeeMoneyBillList where 1 = 1 "; |
| | | string sql = sql1 + sWhere + " order by åæ®å· "; |
| | | string sql = sql1 + sWhere + " order by åæ®å· desc "; |
| | | ds = oCN.RunProcReturn(sql, "h_v_PM_YearEmployeeMoneyBillList"); |
| | | } |
| | | |
| | |
| | | |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn("select * from h_v_PM_WorkTaskBillList order by åæ®å· ", "h_v_PM_WorkTaskBillList"); |
| | | ds = oCN.RunProcReturn("select * from h_v_PM_WorkTaskBillList order by åæ®å· desc", "h_v_PM_WorkTaskBillList"); |
| | | } |
| | | else |
| | | { |
| | | string sql1 = "select * from h_v_PM_WorkTaskBillList where 1 = 1 "; |
| | | string sql = sql1 + sWhere + " order by åæ®å· "; |
| | | string sql = sql1 + sWhere + " order by åæ®å· desc"; |
| | | ds = oCN.RunProcReturn(sql, "h_v_PM_WorkTaskBillList"); |
| | | } |
| | | |
| | |
| | | |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn("select * from h_v_PM_WorkTaskReportBillList order by åæ®å·", "h_v_PM_ProjectStageBillList"); |
| | | ds = oCN.RunProcReturn("select * from h_v_PM_WorkTaskReportBillList order by åæ®å· desc", "h_v_PM_ProjectStageBillList"); |
| | | } |
| | | else |
| | | { |
| | | string sql1 = "select * from h_v_PM_WorkTaskReportBillList where 1 = 1 "; |
| | | string sql = sql1 + sWhere + " order by åæ®å·"; |
| | | string sql = sql1 + sWhere + " order by åæ®å· desc"; |
| | | ds = oCN.RunProcReturn(sql, "h_v_PM_WorkTaskReportBillList"); |
| | | } |
| | | |
| | |
| | | |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn("select * from h_v_PM_ProjectBillList order by åæ®å· ", "h_v_PM_ProjectBillList"); |
| | | ds = oCN.RunProcReturn("select * from h_v_PM_ProjectBillList order by åæ®å· desc", "h_v_PM_ProjectBillList"); |
| | | } |
| | | else |
| | | { |
| | | string sql1 = "select * from h_v_PM_ProjectBillList where 1 = 1 "; |
| | | string sql = sql1 + sWhere + " order by åæ®å· "; |
| | | string sql = sql1 + sWhere + " order by åæ®å· desc"; |
| | | ds = oCN.RunProcReturn(sql, "h_v_PM_ProjectBillList"); |
| | | } |
| | | |
| | |
| | | |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn("select * from h_v_Gy_ProjectStage order by é¶æ®µç¼ç ", "h_v_Gy_ProjectStage"); |
| | | ds = oCN.RunProcReturn("select * from h_v_Gy_ProjectStage order by é¶æ®µç¼ç desc", "h_v_Gy_ProjectStage"); |
| | | } |
| | | else |
| | | { |
| | | string sql1 = "select * from h_v_Gy_ProjectStage where 1 = 1 "; |
| | | string sql = sql1 + sWhere + " order by é¶æ®µç¼ç "; |
| | | string sql = sql1 + sWhere + " order by é¶æ®µç¼ç desc"; |
| | | ds = oCN.RunProcReturn(sql, "h_v_Gy_ProjectStage"); |
| | | } |
| | | |
| | |
| | | |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn("select * from h_v_PM_ProjectReportBillList order by åæ®å· ", "h_v_PM_ProjectReportBillList"); |
| | | ds = oCN.RunProcReturn("select * from h_v_PM_ProjectReportBillList order by åæ®å· desc ", "h_v_PM_ProjectReportBillList"); |
| | | } |
| | | else |
| | | { |
| | | string sql1 = "select * from h_v_PM_ProjectReportBillList where 1 = 1 "; |
| | | string sql = sql1 + sWhere + " order by åæ®å· "; |
| | | string sql = sql1 + sWhere + " order by åæ®å· desc "; |
| | | ds = oCN.RunProcReturn(sql, "h_v_PM_ProjectReportBillList"); |
| | | } |
| | | |
| | |
| | | |
| | | ///é¦ä»¶æ£éªå å表 |
| | | ///ClsQC_FirstPieceCheckBillSub_ValueGrid |
| | | public List<Model.ClsQC_FirstPieceCheckBillSub_ValueGrid> getObjectByJson_ClsClsQC_FirstPieceCheckBillSub_ValueGrid(string jsonString) |
| | | public List<Model.ClsQC_FirstPieceCheckBillSub_ValueGrid> getObjectByJson_ClsQC_FirstPieceCheckBillSub_ValueGrid(string jsonString) |
| | | { |
| | | //jsonString = "[" + jsonString.ToString() + "]"; |
| | | List<Model.ClsQC_FirstPieceCheckBillSub_ValueGrid> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsQC_FirstPieceCheckBillSub_ValueGrid>>(jsonString); |
| | | return list; |
| | | } |
| | | |
| | | ///å·¥åºæ£éªå å表 |
| | | ///ClsQC_ProcessCheckBillSub_ValueGrid |
| | | public List<Model.ClsQC_ProcessCheckBillSub_ValueGrid> getObjectByJson_ClsQC_ProcessCheckBillSub_ValueGrid(string jsonString) |
| | | { |
| | | //jsonString = "[" + jsonString.ToString() + "]"; |
| | | List<Model.ClsQC_ProcessCheckBillSub_ValueGrid> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsQC_ProcessCheckBillSub_ValueGrid>>(jsonString); |
| | | return list; |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | public string HPCrux; |
| | | public string HSCZY; |
| | | public int HSCZYID; |
| | | public int HProdOrgID; //ç»ç» |
| | | public int HICMOEntryID; //ä»»å¡ååID |
| | | } |
| | | } |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Web; |
| | | |
| | | namespace WebAPI.Models |
| | | { |
| | | public class Gy_TemporaryArea |
| | | { |
| | | public long HItemID { get; set; } |
| | | public string HNumber { get; set; } // 代ç |
| | | public string HName { get; set; } // åç§° |
| | | public string HShortNumber { get; set; } //ç代ç |
| | | public long HParentID { get; set; } //ç¶çº§ID |
| | | public bool HEndFlag { get; set; } //æ«çº§æ å¿ |
| | | public bool HStopFlag { get; set; } //ç¦ç¨æ å¿ |
| | | public string HRemark { get; set; } //夿³¨ |
| | | public string HHelpCode { get; set; } //å©è®°ç |
| | | public int HUSEORGID { get; set; } //使ç¨ç»ç» |
| | | public int HCREATEORGID { get; set; } //å建ç»ç» |
| | | public string HBarCode { get; set; } //æ¡å½¢ç |
| | | } |
| | | } |
| | |
| | | </PropertyGroup> |
| | | <ItemGroup> |
| | | <File Include="apiapp.json"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="bin/Antlr3.Runtime.dll"> |
| | | <publishTime>02/22/2013 08:43:40</publishTime> |
| | | <publishTime>02/22/2013 16:43:40</publishTime> |
| | | </File> |
| | | <File Include="bin/Antlr3.Runtime.pdb"> |
| | | <publishTime>02/22/2013 08:43:40</publishTime> |
| | | <publishTime>02/22/2013 16:43:40</publishTime> |
| | | </File> |
| | | <File Include="bin/BLL.dll"> |
| | | <publishTime>11/09/2022 16:02:08</publishTime> |
| | |
| | | <publishTime>08/18/2023 13:23:22</publishTime> |
| | | </File> |
| | | <File Include="bin/BouncyCastle.Crypto.dll"> |
| | | <publishTime>12/17/2020 21:32:28</publishTime> |
| | | <publishTime>12/18/2020 05:32:28</publishTime> |
| | | </File> |
| | | <File Include="bin/DAL.dll"> |
| | | <publishTime>11/09/2022 16:02:06</publishTime> |
| | |
| | | <publishTime>08/18/2023 13:23:20</publishTime> |
| | | </File> |
| | | <File Include="bin/Dapper.dll"> |
| | | <publishTime>07/22/2016 14:52:40</publishTime> |
| | | <publishTime>07/22/2016 22:52:40</publishTime> |
| | | </File> |
| | | <File Include="bin/DBUtility.dll"> |
| | | <publishTime>11/02/2022 22:02:56</publishTime> |
| | |
| | | <publishTime>08/18/2023 13:23:18</publishTime> |
| | | </File> |
| | | <File Include="bin/Grpc.Core.Api.dll"> |
| | | <publishTime>03/22/2022 05:17:26</publishTime> |
| | | <publishTime>03/22/2022 13:17:26</publishTime> |
| | | </File> |
| | | <File Include="bin/Grpc.Core.Api.pdb"> |
| | | <publishTime>03/18/2022 23:39:42</publishTime> |
| | | <publishTime>03/19/2022 07:39:42</publishTime> |
| | | </File> |
| | | <File Include="bin/Grpc.Core.dll"> |
| | | <publishTime>03/22/2022 05:17:20</publishTime> |
| | | <publishTime>03/22/2022 13:17:20</publishTime> |
| | | </File> |
| | | <File Include="bin/Grpc.Core.pdb"> |
| | | <publishTime>03/18/2022 23:39:48</publishTime> |
| | | <publishTime>03/19/2022 07:39:48</publishTime> |
| | | </File> |
| | | <File Include="bin/grpc_csharp_ext.x64.dll"> |
| | | <publishTime>03/22/2022 05:17:22</publishTime> |
| | | <publishTime>03/22/2022 13:17:22</publishTime> |
| | | </File> |
| | | <File Include="bin/grpc_csharp_ext.x86.dll"> |
| | | <publishTime>03/22/2022 05:17:22</publishTime> |
| | | <publishTime>03/22/2022 13:17:22</publishTime> |
| | | </File> |
| | | <File Include="bin/ICSharpCode.SharpZipLib.dll"> |
| | | <publishTime>05/08/2021 17:08:30</publishTime> |
| | | <publishTime>05/09/2021 01:08:30</publishTime> |
| | | </File> |
| | | <File Include="bin/ICSharpCode.SharpZipLib.pdb"> |
| | | <publishTime>05/08/2021 17:08:30</publishTime> |
| | | <publishTime>05/09/2021 01:08:30</publishTime> |
| | | </File> |
| | | <File Include="bin/Interop.gregn6Lib.dll"> |
| | | <publishTime>08/25/2021 10:28:25</publishTime> |
| | | </File> |
| | | <File Include="bin/Kingdee.BOS.WebApi.Client.dll"> |
| | | <publishTime>02/09/2023 20:21:24</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="bin/Kingdee.BOS.WebApi.FormService.dll"> |
| | | <publishTime>09/20/2018 19:23:20</publishTime> |
| | |
| | | <publishTime>09/20/2018 19:28:34</publishTime> |
| | | </File> |
| | | <File Include="bin/libgrpc_csharp_ext.x64.dylib"> |
| | | <publishTime>03/18/2022 23:38:44</publishTime> |
| | | <publishTime>03/19/2022 07:38:44</publishTime> |
| | | </File> |
| | | <File Include="bin/libgrpc_csharp_ext.x64.so"> |
| | | <publishTime>03/18/2022 23:38:42</publishTime> |
| | | <publishTime>03/19/2022 07:38:42</publishTime> |
| | | </File> |
| | | <File Include="bin/Microsoft.Azure.AppService.ApiApps.Service.dll"> |
| | | <publishTime>03/18/2015 17:02:50</publishTime> |
| | | <publishTime>03/19/2015 01:02:50</publishTime> |
| | | </File> |
| | | <File Include="bin/Microsoft.CSharp.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/Microsoft.Web.Infrastructure.dll"> |
| | | <publishTime>07/25/2012 11:48:56</publishTime> |
| | | <publishTime>07/25/2012 19:48:56</publishTime> |
| | | </File> |
| | | <File Include="bin/Model.dll"> |
| | | <publishTime>11/09/2022 16:02:01</publishTime> |
| | |
| | | <publishTime>08/18/2023 13:23:18</publishTime> |
| | | </File> |
| | | <File Include="bin/Models/ClsSc_MouldScrapOutBillMain.cs"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="bin/Newtonsoft.Json.dll"> |
| | | <publishTime>08/03/2014 20:33:56</publishTime> |
| | | <publishTime>08/04/2014 04:33:56</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.dll"> |
| | | <publishTime>10/23/2021 01:07:54</publishTime> |
| | | <publishTime>10/23/2021 09:07:54</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.OOXML.dll"> |
| | | <publishTime>10/23/2021 01:07:56</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.OOXML.pdb"> |
| | | <publishTime>10/23/2021 09:07:56</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.OOXML.pdb"> |
| | | <publishTime>10/23/2021 17:07:56</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.OpenXml4Net.dll"> |
| | | <publishTime>10/23/2021 01:07:54</publishTime> |
| | | <publishTime>10/23/2021 09:07:54</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.OpenXml4Net.pdb"> |
| | | <publishTime>10/23/2021 09:07:54</publishTime> |
| | | <publishTime>10/23/2021 17:07:54</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.OpenXmlFormats.dll"> |
| | | <publishTime>10/23/2021 01:07:54</publishTime> |
| | | <publishTime>10/23/2021 09:07:54</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.OpenXmlFormats.pdb"> |
| | | <publishTime>10/23/2021 09:07:54</publishTime> |
| | | <publishTime>10/23/2021 17:07:54</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.pdb"> |
| | | <publishTime>10/23/2021 09:07:54</publishTime> |
| | | <publishTime>10/23/2021 17:07:54</publishTime> |
| | | </File> |
| | | <File Include="bin/Pub_Class.dll"> |
| | | <publishTime>11/09/2022 16:01:56</publishTime> |
| | |
| | | <publishTime>08/18/2023 13:23:17</publishTime> |
| | | </File> |
| | | <File Include="bin/RestSharp.dll"> |
| | | <publishTime>08/30/2012 22:22:50</publishTime> |
| | | <publishTime>08/31/2012 06:22:50</publishTime> |
| | | </File> |
| | | <File Include="bin/SQLHelper.dll"> |
| | | <publishTime>08/18/2023 13:23:17</publishTime> |
| | |
| | | <publishTime>05/09/2021 13:35:37</publishTime> |
| | | </File> |
| | | <File Include="bin/Swashbuckle.Core.dll"> |
| | | <publishTime>02/15/2015 17:57:08</publishTime> |
| | | <publishTime>02/16/2015 01:57:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Buffers.dll"> |
| | | <publishTime>07/19/2017 10:01:28</publishTime> |
| | | <publishTime>07/19/2017 18:01:28</publishTime> |
| | | </File> |
| | | <File Include="bin/System.ComponentModel.DataAnnotations.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.IdentityModel.Tokens.Jwt.dll"> |
| | | <publishTime>08/19/2014 10:03:34</publishTime> |
| | | <publishTime>08/19/2014 18:03:34</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Memory.dll"> |
| | | <publishTime>04/17/2019 16:24:34</publishTime> |
| | | <publishTime>04/18/2019 00:24:34</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Net.Http.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Net.Http.Formatting.dll"> |
| | | <publishTime>11/28/2018 13:00:36</publishTime> |
| | | <publishTime>11/28/2018 21:00:36</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Runtime.CompilerServices.Unsafe.dll"> |
| | | <publishTime>09/18/2018 19:38:10</publishTime> |
| | | <publishTime>09/19/2018 03:38:10</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Runtime.Serialization.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Cors.dll"> |
| | | <publishTime>11/28/2018 12:58:44</publishTime> |
| | | <publishTime>11/28/2018 20:58:44</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Helpers.dll"> |
| | | <publishTime>01/28/2015 04:04:30</publishTime> |
| | | <publishTime>01/28/2015 12:04:30</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Http.Cors.dll"> |
| | | <publishTime>11/28/2018 13:01:26</publishTime> |
| | | <publishTime>11/28/2018 21:01:26</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Http.dll"> |
| | | <publishTime>11/28/2018 13:01:00</publishTime> |
| | | <publishTime>11/28/2018 21:01:00</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Http.WebHost.dll"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Mvc.dll"> |
| | | <publishTime>01/28/2015 04:02:18</publishTime> |
| | | <publishTime>01/28/2015 12:02:18</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Optimization.dll"> |
| | | <publishTime>02/11/2014 15:26:04</publishTime> |
| | | <publishTime>02/11/2014 23:26:04</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Razor.dll"> |
| | | <publishTime>01/28/2015 04:02:32</publishTime> |
| | | <publishTime>01/28/2015 12:02:32</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Services.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.WebPages.Deployment.dll"> |
| | | <publishTime>01/28/2015 04:04:30</publishTime> |
| | | <publishTime>01/28/2015 12:04:30</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.WebPages.dll"> |
| | | <publishTime>01/28/2015 04:04:30</publishTime> |
| | | <publishTime>01/28/2015 12:04:30</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.WebPages.Razor.dll"> |
| | | <publishTime>01/28/2015 04:04:30</publishTime> |
| | | <publishTime>01/28/2015 12:04:30</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Xml.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/WebActivatorEx.dll"> |
| | | <publishTime>11/24/2014 11:18:48</publishTime> |
| | | <publishTime>11/24/2014 19:18:48</publishTime> |
| | | </File> |
| | | <File Include="bin/WebAPI.dll"> |
| | | <publishTime>11/14/2022 11:23:59</publishTime> |
| | |
| | | <publishTime>08/18/2023 13:23:25</publishTime> |
| | | </File> |
| | | <File Include="bin/WebGrease.dll"> |
| | | <publishTime>07/17/2013 17:03:52</publishTime> |
| | | <publishTime>07/18/2013 01:03:52</publishTime> |
| | | </File> |
| | | <File Include="bin/zh-Hans/System.Net.Http.Formatting.resources.dll"> |
| | | <publishTime>11/29/2018 13:26:02</publishTime> |
| | | <publishTime>11/29/2018 21:26:02</publishTime> |
| | | </File> |
| | | <File Include="bin/zh-Hans/System.Web.Http.resources.dll"> |
| | | <publishTime>11/29/2018 13:26:30</publishTime> |
| | | <publishTime>11/29/2018 21:26:30</publishTime> |
| | | </File> |
| | | <File Include="Config/kdapi.config"> |
| | | <publishTime>08/19/2022 08:17:39</publishTime> |
| | | <publishTime>04/06/2023 15:57:01</publishTime> |
| | | </File> |
| | | <File Include="Content/bootstrap.css"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:01</publishTime> |
| | | </File> |
| | | <File Include="Content/bootstrap.min.css"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:01</publishTime> |
| | | </File> |
| | | <File Include="Content/Site.css"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:01</publishTime> |
| | | </File> |
| | | <File Include="DLL/BLL.dll"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="DLL/DAL.dll"> |
| | | <publishTime>11/01/2021 09:26:33</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="DLL/DBUtility.dll"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="DLL/Kingdee.BOS.WebApi.Client.dll"> |
| | | <publishTime>02/09/2023 20:21:24</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="DLL/Model.dll"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="DLL/Newtonsoft.Json.Net35.dll"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="DLL/Pub_Class.dll"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="DLL/Pub_Control.dll"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="DLL/SQLHelper.dll"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="fonts/glyphicons-halflings-regular.eot"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="fonts/glyphicons-halflings-regular.svg"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="fonts/glyphicons-halflings-regular.ttf"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="fonts/glyphicons-halflings-regular.woff"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Global.asax"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="grpc_csharp_ext.x64.dll"> |
| | | <publishTime>03/22/2022 05:17:22</publishTime> |
| | | <publishTime>03/22/2022 13:17:22</publishTime> |
| | | </File> |
| | | <File Include="grpc_csharp_ext.x86.dll"> |
| | | <publishTime>03/22/2022 05:17:22</publishTime> |
| | | <publishTime>03/22/2022 13:17:22</publishTime> |
| | | </File> |
| | | <File Include="Index.html"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="libgrpc_csharp_ext.x64.dylib"> |
| | | <publishTime>03/18/2022 23:38:44</publishTime> |
| | | <publishTime>03/19/2022 07:38:44</publishTime> |
| | | </File> |
| | | <File Include="libgrpc_csharp_ext.x64.so"> |
| | | <publishTime>03/18/2022 23:38:42</publishTime> |
| | | <publishTime>03/19/2022 07:38:42</publishTime> |
| | | </File> |
| | | <File Include="libman.json"> |
| | | <publishTime>07/17/2023 13:22:30</publishTime> |
| | | <publishTime>07/12/2023 08:14:21</publishTime> |
| | | </File> |
| | | <File Include="Metadata/deploymentTemplates/apiappconfig.azureresource.json"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="packages.config"> |
| | | <publishTime>11/29/2022 10:36:46</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/bootstrap.js"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/bootstrap.min.js"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/jquery-1.10.2.js"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/jquery-1.10.2.min.js"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/jquery-1.10.2.min.map"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/jquery.validate.js"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/jquery.validate.min.js"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/jquery.validate.unobtrusive.js"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/jquery.validate.unobtrusive.min.js"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/modernizr-2.6.2.js"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Views/Shared/Error.cshtml"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Views/Shared/_Layout.cshtml"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Views/web.config"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Views/_ViewStart.cshtml"> |
| | | <publishTime>08/19/2021 09:44:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsCLD_Customer_Model.datasource"> |
| | | <publishTime>06/21/2023 11:15:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsCLD_Department_Model.datasource"> |
| | | <publishTime>06/21/2023 11:15:00</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsCLD_Employee_Model.datasource"> |
| | | <publishTime>06/21/2023 11:15:02</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsCLD_StockPlace_Model.datasource"> |
| | | <publishTime>06/21/2023 11:15:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsCLD_Supplier_Model.datasource"> |
| | | <publishTime>06/21/2023 11:15:01</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsCLD_Warehouse_Model.datasource"> |
| | | <publishTime>06/21/2023 11:15:00</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_BadReason_Model.datasource"> |
| | | <publishTime>06/21/2023 11:15:02</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_BarCodeBill_WMS_Model.datasource"> |
| | | <publishTime>06/21/2023 11:15:06</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_BarCodeBill_WMS_Model_View.datasource"> |
| | | <publishTime>06/21/2023 11:15:06</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Customer_Model.datasource"> |
| | | <publishTime>06/21/2023 11:15:04</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Department_Model.datasource"> |
| | | <publishTime>06/21/2023 11:15:03</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Employee_Model.datasource"> |
| | | <publishTime>06/21/2023 11:15:05</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Group_Model.datasource"> |
| | | <publishTime>06/21/2023 11:15:03</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Item30JiTai_Model.datasource"> |
| | | <publishTime>06/21/2023 11:15:02</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Source_Model.datasource"> |
| | | <publishTime>06/21/2023 11:15:05</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_StockPlace_Model.datasource"> |
| | | <publishTime>06/21/2023 11:15:04</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Supplier_Model.datasource"> |
| | | <publishTime>06/21/2023 11:15:04</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Warehouse_Model.datasource"> |
| | | <publishTime>06/21/2023 11:15:03</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsKf_ICStockBill_Mould.datasource"> |
| | | <publishTime>06/21/2023 11:15:05</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsKf_ICStockBill_WMS.datasource"> |
| | | <publishTime>06/21/2023 11:15:00</publishTime> |
| | | <publishTime>04/06/2023 15:57:02</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/Reference.cs"> |
| | | <publishTime>12/20/2021 13:19:56</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/Reference.map"> |
| | | <publishTime>06/21/2023 11:14:55</publishTime> |
| | | <publishTime>04/26/2023 13:39:12</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/WebService1.disco"> |
| | | <publishTime>12/20/2021 13:19:56</publishTime> |
| | |
| | | <Compile Include="Controllers\SBGL\SBTC\Sb_EquipWorkBeforeCheckBillController.cs" /> |
| | | <Compile Include="Controllers\SBGL\Sb_EquipWorkBeforeCheckSBillController.cs" /> |
| | | <Compile Include="Controllers\SBGL\Sb_EquipStockInCheckBillSController.cs" /> |
| | | <Compile Include="Controllers\SCGL\Gy_SourceWorkStationSetController.cs" /> |
| | | <Compile Include="Controllers\SCGL\Sc_ComplementGoodBill_ZXBZController.cs" /> |
| | | <Compile Include="Controllers\SCGL\æ¥è®¡å管ç\DataHelper.cs" /> |
| | | <Compile Include="Controllers\SCGL\æ¥è®¡å管ç\JIT_Cg_PODemandPlanBillController.cs" /> |
| | |
| | | <Compile Include="Controllers\ä»å管ç\颿åè´§\Kf_StockOutRequestBillController.cs" /> |
| | | <Compile Include="Controllers\ä»å管ç\éªæ¶å
¥åº\Kf_StepFoldinBillController.cs" /> |
| | | <Compile Include="Controllers\忥èªå¨æ«ç 线\ScanlineAPIController.cs" /> |
| | | <Compile Include="Controllers\å质管ç\产线质æ£å¹³å°\Sc_ICMOBillQualityStatus_TmpController.cs" /> |
| | | <Compile Include="Controllers\å质管ç\产线è¿ä¿®å¹³å°\Sc_SourceLineRepairBillController.cs" /> |
| | | <Compile Include="Controllers\åºç¡èµæ\åºç¡èµæ\Gy_COMMONCONTACTBillController.cs" /> |
| | | <Compile Include="Controllers\åºç¡èµæ\åºç¡èµæ\Gy_CustLocationController.cs" /> |
| | | <Compile Include="Controllers\åºç¡èµæ\åºç¡èµæ\Gy_DutyBillController.cs" /> |
| | |
| | | <Compile Include="Controllers\åºç¡èµæ\åºç¡èµæ\Gy_MouldStatusController.cs" /> |
| | | <Compile Include="Controllers\åºç¡èµæ\åºç¡èµæ\Gy_OperatorController.cs" /> |
| | | <Compile Include="Controllers\åºç¡èµæ\åºç¡èµæ\Gy_PaymentConditionListBillController.cs" /> |
| | | <Compile Include="Controllers\åºç¡èµæ\åºç¡èµæ\Gy_TemporaryAreaController.cs" /> |
| | | <Compile Include="Controllers\åºç¡èµæ\åºç¡èµæ\Gy_RateTypeController.cs" /> |
| | | <Compile Include="Controllers\åºç¡èµæ\åºç¡èµæ\Gy_RecConditionBillController.cs" /> |
| | | <Compile Include="Controllers\åºç¡èµæ\åºç¡èµæ\Gy_SettleStyleController.cs" /> |
| | |
| | | <Compile Include="Models\åºç¡èµæ\ConkType.cs" /> |
| | | <Compile Include="Models\åºç¡èµæ\Gy_ClassTimePrj.cs" /> |
| | | <Compile Include="Models\åºç¡èµæ\Gy_Duty.cs" /> |
| | | <Compile Include="Models\åºç¡èµæ\Gy_TemporaryArea.cs" /> |
| | | <Compile Include="Models\åºç¡èµæ\Gy_StockPlace.cs" /> |
| | | <Compile Include="Models\åºç¡èµæ\WorkDay.cs" /> |
| | | <Compile Include="Models\åºç¡èµæ\PackType.cs" /> |
| | |
| | | <Folder Include="Views\Gy_RoutingGroup\" /> |
| | | <Folder Include="Views\Gy_SettleStyle\" /> |
| | | <Folder Include="Views\Gy_SOPBill\" /> |
| | | <Folder Include="Views\Gy_SourceWorkStationSet\" /> |
| | | <Folder Include="Views\Gy_SplitBarCode\" /> |
| | | <Folder Include="Views\Gy_Staff\" /> |
| | | <Folder Include="Views\Gy_StdMinPickQty\" /> |
| | |
| | | <WebStackScaffolding_IsAsyncSelected>False</WebStackScaffolding_IsAsyncSelected> |
| | | <NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile> |
| | | <NameOfLastUsedPublishProfile>D:\Git\houduan\WebAPI\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> |
| | | <NameOfLastUsedPublishProfile>D:\GITä»åº\MES-WEB-API\WebAPI\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> |
| | | <NameOfLastUsedPublishProfile>D:\ç½ç«åå¸\å端代ç \MES-WEB-API\MES-WEB-API\WebAPI\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> |
| | | <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> |
| | | <UseIISExpress>false</UseIISExpress> |
| | | <Use64BitIISExpress /> |
| | |
| | | |
| | | oSc_ProcessExchangeBill.BillStatus = DBUtility.ClsPub.Enum_BillStatus.BillStatus_AddNew; |
| | | oSc_ProcessExchangeBill.ModCaption = "å·¥åºæµè½¬å¡"; |
| | | oSc_ProcessExchangeBill.oXT = Ds; |
| | | oSc_ProcessExchangeBill.oXT = Ds; //--h_v_S_Sc_ICMOBillList è¿ä¸ªè§å¾æ¥è·å å·¥èºè·¯çº¿ |
| | | oSc_ProcessExchangeBill.ShowDialog(); |
| | | } |
| | | ///////////////////////////// |