Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-API
| | |
| | | ",HMainSourceInterID='" + omodel.HMainSourceInterID.ToString() + "'" + |
| | | ",HMainSourceEntryID='" + omodel.HMainSourceEntryID.ToString() + "'" + |
| | | |
| | | ",HCusID='" + omodel.HCusID.ToString() + "'" + |
| | | ",HBeginAddr='" + omodel.HBeginAddr.ToString() + "'" + |
| | | ",HEndAddr='" + omodel.HEndAddr.ToString() + "'" + |
| | | ",HPickAddr='" + omodel.HPickAddr.ToString() + "'" + |
| | | ",HArriverAddr='" + omodel.HArriverAddr.ToString() + "'" + |
| | | ",HTransType='" + omodel.HTransType.ToString() + "'" + |
| | | ",HCarTypeID='" + omodel.HCarTypeID.ToString() + "'" + |
| | | ",HCarTypeMaxVolume='" + omodel.HCarTypeMaxVolume.ToString() + "'" + |
| | |
| | | "(HInterID,HBillNo_bak,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HMaterID,HUnitID,HMouldID,HMouldLength,HMouldHeight,HMouldWidth" + |
| | | ",HMouldFoldHeight,HVolume,HQty,HSNP,HScatteredVolume,HMouldQty) values(" |
| | | ",HMouldFoldHeight,HVolume,HQty,HSNP,HScatteredVolume,HMouldQty,HCusID,HPickAddr,HArriverAddr) values(" |
| | | + SafeInt(omodel.HInterID.ToString(), 0) + ",'" // HInterID int |
| | | + SafeString(omodel.HBillNo.ToString()) + "'," // HBillNo_bak varchar(50) |
| | | + (oSub.HEntryID) + ",'" // HEntryID int |
| | |
| | | + (oSub.HVolume.ToString() == "" ? 0 : oSub.HVolume) + "," // HVolume dec(18,8) |
| | | + (oSub.HQty.ToString() == "" ? 0 : oSub.HQty) + "," // HQty dec(18,8) |
| | | + (oSub.HSNP.ToString() == "" ? 0 : oSub.HSNP) + "," // HSNP dec(18,8) |
| | | + (oSub.HScatteredVolume) + "," // HSNP dec(18,8) |
| | | + (oSub.HMouldQty.ToString() == "" ? 0 : oSub.HMouldQty) + ")"; // HMouldQty dec(18,8) |
| | | + "'" + (oSub.HScatteredVolume ?? "0") + "'," |
| | | + (oSub.HMouldQty.ToString() == "" ? 0 : oSub.HMouldQty) + "," |
| | | + (oSub.HCusID) + "," // HSNP dec(18,8) |
| | | + "'" + SafeString(oSub.HPickAddr?.ToString(), "") + "'," |
| | | + "'" + SafeString(oSub.HArriverAddr?.ToString(), "") + "')"; // HMouldQty dec(18,8) |
| | | oCn.RunProc(sql); |
| | | } |
| | | |
| | |
| | | string sql = "Insert Into WL_YayBillMain " + |
| | | "(HInterID,HYear,HPeriod,HBillType,HBillSubType,HDate,HBillNo,HBillStatus," + |
| | | "HRemark,HMaker,HMakeDate,HMainSourceBillType,HMainSourceInterID,HMainSourceEntryID,HMainSourceBillNo," + |
| | | "HOrgID,HCusID,HBeginAddr,HEndAddr,HPickAddr,HArriverAddr,HTransType,HCarTypeID,HCarTypeMaxVolume,HTotalVolume," + |
| | | "HOrgID,HBeginAddr,HEndAddr,HTransType,HCarTypeID,HCarTypeMaxVolume,HTotalVolume," + |
| | | "HLoadingRate,HContractTransportInterID,HContractTransportEntryID," + |
| | | "HContractTransportBillNo,HCarrierID,HDistance,HTransportTimes," + |
| | | "HTransportTyep,HSSID,HCurID,HMoney,HDateForRequestedPick," + |
| | |
| | | ",'" + omodel.HMainSourceEntryID + "'" + |
| | | ",'" + omodel.HMainSourceBillNo + "'" + |
| | | ",'" + omodel.HOrgID + "'" + |
| | | ",'" + omodel.HCusID + "'" + |
| | | ",'" + omodel.HBeginAddr + "'" + |
| | | ",'" + omodel.HEndAddr + "'" + |
| | | ",'" + omodel.HPickAddr + "'" + |
| | | ",'" + omodel.HArriverAddr + "'" + |
| | | ",'" + omodel.HTransType + "'" + |
| | | ",'" + omodel.HCarTypeID + "'" + |
| | | ",'" + omodel.HCarTypeMaxVolume + "'" + |
| | |
| | | "(HInterID,HBillNo_bak,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HMaterID,HUnitID,HMouldID,HMouldLength,HMouldHeight,HMouldWidth" + |
| | | ",HMouldFoldHeight,HVolume,HQty,HSNP,HScatteredVolume,HMouldQty) values(" |
| | | ",HMouldFoldHeight,HVolume,HQty,HSNP,HScatteredVolume,HMouldQty,HCusID,HPickAddr,HArriverAddr) values(" |
| | | + SafeInt(omodel.HInterID.ToString(), 0) + ",'" // HInterID int |
| | | + SafeString(omodel.HBillNo.ToString()) + "'," // HBillNo_bak varchar(50) |
| | | + (oSub.HEntryID) + ",'" // HEntryID int |
| | |
| | | + (oSub.HQty.ToString() == "" ? 0 : oSub.HQty) + "," // HQty dec(18,8) |
| | | + (oSub.HSNP.ToString() == "" ? 0 : oSub.HSNP) + "," // HSNP dec(18,8) |
| | | + (oSub.HScatteredVolume) + "," // HSNP dec(18,8) |
| | | + (oSub.HMouldQty.ToString() == "" ? 0 : oSub.HMouldQty) + ")"; // HMouldQty dec(18,8) |
| | | + (oSub.HMouldQty.ToString() == "" ? 0 : oSub.HMouldQty) + "," |
| | | + (oSub.HCusID) + "," // HSNP dec(18,8) |
| | | + "'" + SafeString(oSub.HPickAddr?.ToString(), "") + "'," |
| | | + "'" + SafeString(oSub.HArriverAddr?.ToString(), "") + "')"; // HMouldQty dec(18,8) |
| | | oCn.RunProc(sql); |
| | | } |
| | | //=========================ä¿ååæ§å¶ |
| | |
| | | ",HUpDateDate=getdate()" + |
| | | //======================================== |
| | | ",HSupTypeID=" + omodel.HSupTypeID.ToString() + |
| | | ",HBillSubType='" + omodel.HBillSubType.ToString() + "'" + |
| | | ",HSupID=" + omodel.HSupID.ToString() + |
| | | ",HDeptID=" + omodel.HDeptID.ToString() + |
| | | ",HWHID=" + omodel.HWHID.ToString() + |
| | |
| | | ",HEmpID,HMangerID,HSecManagerID,HKeeperID,HExplanation" + |
| | | ",HInnerBillNo,HStockOrgID" + |
| | | ") " + |
| | | " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + |
| | | " values('" + this.BillType + "','" + omodel.HBillSubType.ToString() + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + |
| | | ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + DBUtility.ClsPub.CurUserName + "',getdate()" + |
| | | ", " + omodel.HMainSourceInterID.ToString() + "," + omodel.HMainSourceEntryID.ToString() + ",'" + omodel.HMainSourceBillNo + "','" + omodel.HMainSourceBillType + "'" + |
| | | ", " + omodel.HSupTypeID.ToString() + "," + omodel.HSupID.ToString() + "," + omodel.HDeptID.ToString() + "," + omodel.HWHID.ToString() + |
| | |
| | | ",HUpDateDate=getdate()" + |
| | | //======================================== |
| | | ",HSupTypeID=" + omodel.HSupTypeID.ToString() + |
| | | ",HBillSubType='" + omodel.HBillSubType.ToString() + "'" + |
| | | ",HSupID=" + omodel.HSupID.ToString() + |
| | | ",HDeptID=" + omodel.HDeptID.ToString() + |
| | | ",HWHID=" + omodel.HWHID.ToString() + |
| | |
| | | ",HInnerBillNo,HStockStyle,HStockInOrgID,HStockOutOrgID,HERPInterID" + |
| | | ",HERPBillType,HOWNERTYPEHEADID,HTRANSTYPE,HOWNERTYPEINID,HBUSINESSTYPE" + |
| | | ") " + |
| | | " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + |
| | | " values('" + this.BillType + "','" + omodel.HBillSubType.ToString() + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + |
| | | ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + DBUtility.ClsPub.CurUserName + "',getdate()" + |
| | | ", " + omodel.HMainSourceInterID.ToString() + "," + omodel.HMainSourceEntryID.ToString() + ",'" + omodel.HMainSourceBillNo + "','" + omodel.HMainSourceBillType + "'" + |
| | | ", " + omodel.HSupTypeID.ToString() + "," + omodel.HSupID.ToString() + "," + omodel.HDeptID.ToString() + "," + omodel.HWHID.ToString() + "," + omodel.HSCWHID.ToString() + |
| | |
| | | ",HUpDateDate=getdate()" + |
| | | //======================================== |
| | | ",HSupTypeID=" + omodel.HSupTypeID.ToString() + |
| | | ",HBillSubType='" + omodel.HBillSubType.ToString() + "'" + |
| | | ",HSupID=" + omodel.HSupID.ToString() + |
| | | ",HDeptID=" + omodel.HDeptID.ToString() + |
| | | ",HWHID=" + omodel.HWHID.ToString() + |
| | |
| | | ",HEmpID,HMangerID,HSecManagerID,HKeeperID,HExplanation" + |
| | | ",HInnerBillNo,HStockOrgID,HERPInterID,HERPBillType,HOWNERTYPEIDHEAD,HBIZTYPE" + |
| | | ") " + |
| | | " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + |
| | | " values('" + this.BillType + "','" + omodel.HBillSubType.ToString() + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + |
| | | ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + DBUtility.ClsPub.CurUserName + "',getdate()" + |
| | | ", " + omodel.HMainSourceInterID.ToString() + "," + omodel.HMainSourceEntryID.ToString() + ",'" + omodel.HMainSourceBillNo + "','" + omodel.HMainSourceBillType + "'" + |
| | | ", " + omodel.HSupTypeID.ToString() + "," + omodel.HSupID.ToString() + "," + omodel.HDeptID.ToString() + "," + omodel.HWHID.ToString() + |
| | |
| | | ",HUpDateDate=getdate()" + |
| | | //======================================== |
| | | ",HSupTypeID=" + omodel.HSupTypeID.ToString() + |
| | | ",HBillSubType='" + omodel.HBillSubType.ToString() + "'" + |
| | | ",HSupID=" + omodel.HSupID.ToString() + |
| | | ",HEmpID=" + omodel.HEmpID.ToString() + |
| | | ",HManagerID=" + omodel.HManagerID.ToString() + |
| | |
| | | ",HKeeperID,HDeptID,HWHID,HSCWHID,HRedBlueFlag" + |
| | | ",HExplanation,HInnerBillNo,HStockOrgID" + |
| | | ") " + |
| | | " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + |
| | | " values('" + this.BillType + "','" + omodel.HBillSubType.ToString() + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + |
| | | ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + DBUtility.ClsPub.CurUserName + "',getdate()" + |
| | | ", " + omodel.HMainSourceInterID.ToString() + "," + omodel.HMainSourceEntryID.ToString() + ",'" + omodel.HMainSourceBillNo + "','" + omodel.HMainSourceBillType + "'" + |
| | | ", " + omodel.HSupID.ToString() + "," + omodel.HSupTypeID.ToString() + "," + omodel.HEmpID.ToString() + "," + omodel.HManagerID.ToString() + "," + omodel.HSecManagerID.ToString() + |
| | |
| | | ",HUpDateDate=getdate()" + |
| | | //======================================== |
| | | ",HSupTypeID=" + omodel.HSupTypeID.ToString() + |
| | | ",HBillSubType='" + omodel.HBillSubType.ToString() + "'" + |
| | | ",HSupID=" + omodel.HSupID.ToString() + |
| | | ",HEmpID=" + omodel.HEmpID.ToString() + |
| | | ",HManagerID=" + omodel.HManagerID.ToString() + |
| | |
| | | ",HKeeperID,HDeptID,HWHID,HSCWHID,HRedBlueFlag" + |
| | | ",HExplanation,HInnerBillNo,HStockOrgID,HStockStyle,HStockInOrgID,HStockOutOrgID" + |
| | | ") " + |
| | | " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + |
| | | " values('" + this.BillType + "','" + omodel.HBillSubType.ToString() + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + |
| | | ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + DBUtility.ClsPub.CurUserName + "',getdate()" + |
| | | ", " + omodel.HMainSourceInterID.ToString() + "," + omodel.HMainSourceEntryID.ToString() + ",'" + omodel.HMainSourceBillNo + "','" + omodel.HMainSourceBillType + "'" + |
| | | ", " + omodel.HSupID.ToString() + "," + omodel.HSupTypeID.ToString() + "," + omodel.HEmpID.ToString() + "," + omodel.HManagerID.ToString() + "," + omodel.HSecManagerID.ToString() + |
| | |
| | | ",HUpDateDate=getdate()" + |
| | | //======================================== |
| | | ",HSupTypeID=" + omodel.HSupTypeID.ToString() + |
| | | ",HBillSubType='" + omodel.HBillSubType.ToString() + "'" + |
| | | ",HSupID=" + omodel.HSupID.ToString() + |
| | | ",HEmpID=" + omodel.HEmpID.ToString() + |
| | | ",HManagerID=" + omodel.HManagerID.ToString() + |
| | |
| | | ",HKeeperID,HDeptID,HWHID,HSCWHID,HRedBlueFlag" + |
| | | ",HExplanation,HInnerBillNo,HStockOrgID" + |
| | | ") " + |
| | | " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + |
| | | " values('" + this.BillType + "','" + omodel.HBillSubType.ToString() + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + |
| | | ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + DBUtility.ClsPub.CurUserName + "',getdate()" + |
| | | ", " + omodel.HMainSourceInterID.ToString() + "," + omodel.HMainSourceEntryID.ToString() + ",'" + omodel.HMainSourceBillNo + "','" + omodel.HMainSourceBillType + "'" + |
| | | ", " + omodel.HSupID.ToString() + "," + omodel.HSupTypeID.ToString() + "," + omodel.HEmpID.ToString() + "," + omodel.HManagerID.ToString() + "," + omodel.HSecManagerID.ToString()+ |
| | |
| | | public decimal HRelationQty { get; set; } // å
³èæ°é |
| | | public decimal HRelationMoney { get; set; } // å
³èéé¢ |
| | | |
| | | public int HCusID { get; set; } // 客æ·ID |
| | | |
| | | |
| | | public string HPickAddr { get; set; } // æè´§å°å |
| | | |
| | | public string HArriverAddr { get; set; } // å°è´§å°å |
| | | |
| | | // èªå¢å |
| | | public int HItemSubID { get; set; } // èªå¢å |
| | | |
| | |
| | | FentityModel.Add("FSrcInterId0", HSLInterID.ToString()); //æ¶æéç¥å主ID |
| | | FentityModel.Add("FSrcEntryId0", HSLEntryID.ToString()); |
| | | FentityModel.Add("FSrcEntrySeq0", HSLSeQ.ToString()); //æºåè¡å· |
| | | DataSet BfDs = oCN.RunProcReturn("exec h_p_QC_POStockInCheckBill_getDefineFieldFromSourceBill " + HSLInterID.ToString() + "," + HSLEntryID.ToString() , "h_p_QC_POStockInCheckBill_getDefineFieldFromSourceBill"); |
| | | |
| | | FentityModel.Add("F_WPVT_Text_uky", HSourceBillNo.ToString()); //éè´è®¢åè¡å· |
| | | FentityModel.Add("F_WPVT_Integer_fg2", HSeQ.ToString()); //订åè¡å· |
| | | |
| | | FentityModel.Add("F_WPVT_Text_uky", BfDs.Tables[0].Rows[0]["订åå·"].ToString()); //éè´è®¢åè¡å· |
| | | FentityModel.Add("F_WPVT_Integer_fg2", BfDs.Tables[0].Rows[0]["鿱忮è¡å·"].ToString()); //订åè¡å· |
| | | } |
| | | } |
| | | FentityModel.Add("FBaseUnitId", new JObject() { ["Fnumber"] = HUnitNumber.ToString() });//åºæ¬åä½ |
| | |
| | | return objJsonResult; |
| | | } |
| | | |
| | | DataSet ds = oCN.RunProcReturn("select * from WL_YayBillMain a inner join WL_YayBillSub_Material b on b.HInterID=a.HInterID where a.HInterID=" + HInterID + " and b.HEntryID = " + HEntryID, "WL_YayBillMain"); |
| | | DataSet ds = oCN.RunProcReturn("select * from WL_YayBillMain where HInterID=" +HInterID , "WL_YayBillMain"); |
| | | if (ds != null || ds.Tables[0].Rows.Count > 0) |
| | | { |
| | | oCN.BeginTran(); |
| | | oCN.RunProc("update WL_YayBillSub_Material set HScatteredVolume= " + ScatteredVolume + " where HInterID=" + HInterID + "and HEntryID=" + HEntryID); |
| | | oCN.RunProc("update WL_YayBillMain set HScatteredVolume= " + ScatteredVolume + " where HInterID=" + HInterID ); |
| | | oCN.Commit(); |
| | | |
| | | objJsonResult.code = "1"; |
| | |
| | | |
| | | if (IsAudit == 1) |
| | | { |
| | | |
| | | ds = oCN.RunProcReturn("select * from gy_car where HItemID=" + HcheckID + "", "gy_car"); |
| | | var HNumber = ds.Tables[0].Rows[0]["HNumber"].ToString(); |
| | | var HName = ds.Tables[0].Rows[0]["HName"].ToString(); |
| | | oCN.BeginTran(); |
| | | oCN.RunProc("update WL_YayBillMain set HCarID='" + HcheckID + "' where HInterID=" + HInterID); |
| | | oCN.RunProc("update WL_YayBillMain set HCarID='" + HcheckID + "', CarHNumber='" + HNumber + "', CarHName='" + HName + "' where HInterID=" + HInterID); |
| | | oCN.Commit(); |
| | | |
| | | objJsonResult.code = "1"; |
| | |
| | | else |
| | | { |
| | | |
| | | ds = oCN.RunProcReturn("select * from Gy_Driver where HItemID=" + HcheckID + "", "Gy_Driver"); |
| | | var HName = ds.Tables[0].Rows[0]["HName"].ToString(); |
| | | var HIDCard = ds.Tables[0].Rows[0]["HIDCard"].ToString(); |
| | | oCN.BeginTran(); |
| | | oCN.RunProc("update WL_YayBillMain set HDriverID='" + HcheckID + "',HDate_AllocationDriver=getdate() where HInterID=" + HInterID); |
| | | oCN.RunProc("update WL_YayBillMain set HDriverID='" + HcheckID + "', DriverHName='" + HName + "', DriverHIDCard='" + HIDCard + "',HDate_AllocationDriver=getdate() where HInterID=" + HInterID); |
| | | oCN.Commit(); |
| | | |
| | | objJsonResult.code = "1"; |
| | |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | oCN.RollBack(); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "失败ï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region åºè¿å ç»´æ¤å¸æº(å¹³å°) |
| | | [Route("WLYayBillController/selectDriver1")] |
| | | [HttpGet] |
| | | public object selectDriver1(string CarHNumber, string CarHName,string DriverHName,string DriverHIDCard, string CurUserName, int HInterID) |
| | | { |
| | | try |
| | | { |
| | | //if (!DBUtility.ClsPub.Security_Log("WLYayBill_SelectDriver1", 1, false, CurUserName)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | |
| | | DataSet ds = oCN.RunProcReturn("select * from WL_YayBillMain where HInterID=" + HInterID, "WL_YayBillMain"); |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "è·ååæ®ä¿¡æ¯å¤±è´¥ï¼åæ®ä¸åå¨ï¼æ æ³è¿è¡åé
车è¾ã叿ºæä½ï¼ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HChecker"]) == "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åæ®æªå®¡æ ¸ï¼æ æ³è¿è¡åé
车è¾ã叿ºæä½ï¼ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (ds.Tables[0].Rows[0]["HDate_CarrierSure"] == null) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åæ®æªè¿è¡ä¾åºå确认ã请å
è¿è¡ä¾åºå确认ï¼ç¶ååè¿è¡åé
车è¾ã叿ºæä½ï¼ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | oCN.BeginTran(); |
| | | oCN.RunProc("update WL_YayBillMain set CarHNumber='" + CarHNumber + "', CarHName='" + CarHName + "', DriverHName='" + DriverHName + "', DriverHIDCard='" + DriverHIDCard + "',HDate_AllocationDriver=getdate() where HInterID=" + HInterID); |
| | | oCN.Commit(); |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "æå"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | |
| | | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (ds.Tables[0].Rows[0]["HDate_AllocationDriver"] == null || ds.Tables[0].Rows[0]["HDriverID"].ToString() == "0" || ds.Tables[0].Rows[0]["HCarID"].ToString() == "0") |
| | | if (ds.Tables[0].Rows[0]["HDate_AllocationDriver"] == null || ds.Tables[0].Rows[0]["CarHName"].ToString() == "0" || ds.Tables[0].Rows[0]["DriverHName"].ToString() == "0") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | |
| | | |
| | | |
| | | |
| | | #region åºè¿å è·ååè¡¨æ°æ® |
| | | [Route("WLYayBillController/GetList")] |
| | | [HttpGet] |
| | | public object GetList(string hmainid_hsubid, string user) |
| | | { |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | if (!DBUtility.ClsPub.Security_Log("WLYayBill_Query", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | |
| | | string sql = $"select * from h_v_Gy_MaterialPackingRelation where hmainid_hsubid in (" + hmainid_hsubid + ")"; |
| | | |
| | | // æ§è¡æ¥è¯¢ |
| | | DataSet ds = oCN.RunProcReturn(sql, "WL_YayBillMain"); |
| | | |
| | | |
| | | //æ·»å åå |
| | | 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 ex) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "没æè¿åä»»ä½è®°å½ï¼" + ex.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |