| | |
| | | "0," + dr["HDesignLife"].ToString() + "," + dr["HLeaveLife"].ToString() + "," + dr["HUseLife"].ToString() + "," + dr1["HCorrespondentID"].ToString() + "," + dr["HNowSupID"].ToString() + ",0,0" |
| | | + ",0,0,0," + userID + ",0,100005,'')"); |
| | | //涓昏〃 |
| | | |
| | | oCn.BeginTran(); |
| | | oCn.RunProc(sql); |
| | | oCn.RunProc(sql1); |
| | | oCn.RunProc("update KF_PonderationBillMain_Temp set HCheckStatus=1 where HitemID=" + HItemID); |
| | | oCn.Commit(); |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | oCn.RollBack(); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "鍒濆鍖栧け璐ワ紒"; |
| | | objJsonResult.Message = e.Message; |
| | | objJsonResult.data = null; |
| | | } |
| | | return objJsonResult; |
| | |
| | | HBatchNo,HQtyMust,HQty,HPrice,HMoney,HDesignLife,HLeaveLife,HUseLife,HWHID,HSCWHID,HSPID,HSCSPID,HSPGroupID,HCorrespondentTypeID,HCorrespondentID, |
| | | HStockOrgID,HOWNERID,HOtherOrgID,HOWNERTYPEID) values(" + HInterID + ",1,'',getdate(),0,'',0,0,'',''," + |
| | | "0,0," + dr["HInterID"].ToString() + ",0," + dr["HSecUnitRate"].ToString() + ",0," + dr["HUnitID"].ToString() + ",0," + dr["HProdQty"].ToString() + "," + dr1["HQty"].ToString() + ",0," + |
| | | "0," + dr["HDesignLife"].ToString() + "," + dr["HLeaveLife"].ToString() + "," + dr["HUseLife"].ToString() + "," + dr1["HCorrespondentID"].ToString() + ",0,0,0" |
| | | "0," + dr["HDesignLife"].ToString() + "," + dr["HLeaveLife"].ToString() + "," + dr["HUseLife"].ToString() + "," + dr1["HCorrespondentID"].ToString() + "," + dr["HNowSupID"].ToString() + ",0,0" |
| | | + ",0,0,0," + userID + ",0,100005,'')"); |
| | | //涓昏〃 |
| | | oCn.BeginTran(); |
| | | oCn.RunProc(sql); |
| | | oCn.RunProc(sql1); |
| | | oCn.RunProc("update KF_PonderationBillMain_Temp set HCheckStatus=1 where HitemID=" + HItemID); |
| | | oCn.Commit(); |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | oCn.RollBack(); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "鍒濆鍖栧け璐ワ紒"; |
| | | objJsonResult.Message = e.Message; |
| | | objJsonResult.data = null; |
| | | } |
| | | return objJsonResult; |
| | |
| | | + ",0,0,0," + userID + ",0,100005,'')"); |
| | | |
| | | //涓昏〃 |
| | | oCn.BeginTran(); |
| | | oCn.RunProc(sql); |
| | | oCn.RunProc(sql1); |
| | | oCn.RunProc("update KF_PonderationBillMain_Temp set HCheckStatus=1 where HitemID=" + HItemID); |
| | | oCn.Commit(); |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | oCn.RollBack(); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "鍒濆鍖栧け璐ワ紒"; |
| | | objJsonResult.Message = e.Message; |
| | | objJsonResult.data = null; |
| | | } |
| | | return objJsonResult; |
| | |
| | | "0," + dr["HDesignLife"].ToString() + "," + dr["HLeaveLife"].ToString() + "," + dr["HUseLife"].ToString() + "," + dr1["HCorrespondentID"].ToString() + "," + dr["HNowSupID"].ToString() + ",0,0" |
| | | + ",0,0,0," + userID + ",0,100005,'')"); |
| | | //涓昏〃 |
| | | oCn.BeginTran(); |
| | | oCn.RunProc(sql); |
| | | oCn.RunProc(sql1); |
| | | oCn.RunProc("update KF_PonderationBillMain_Temp set HCheckStatus=1 where HitemID=" + HItemID); |
| | | oCn.Commit(); |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | oCn.RollBack(); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "鍒濆鍖栧け璐ワ紒"; |
| | | objJsonResult.Message = e.Message; |
| | | objJsonResult.data = null; |
| | | } |
| | | return objJsonResult; |
| | |
| | | "0,0," + dr["HInterID"].ToString() + ",0," + dr["HSecUnitRate"].ToString() + ",0," + dr["HUnitID"].ToString() + ",0," + dr["HProdQty"].ToString() + "," + dr1["HQty"].ToString() + ",0," + |
| | | "0," + dr["HDesignLife"].ToString() + "," + dr["HLeaveLife"].ToString() + "," + dr["HUseLife"].ToString() + "," + dr1["HCorrespondentID"].ToString() + "," + dr["HNowSupID"].ToString() + ",0,0" |
| | | + ",0,0,0," + userID + ",0,100005,'')"); |
| | | |
| | | //涓昏〃 |
| | | oCn.BeginTran(); |
| | | oCn.RunProc(sql); |
| | | oCn.RunProc(sql1); |
| | | oCn.RunProc("update KF_PonderationBillMain_Temp set HCheckStatus=1 where HitemID=" + HItemID); |
| | | oCn.Commit(); |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | oCn.RollBack(); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "鍒濆鍖栧け璐ワ紒"; |
| | | objJsonResult.Message = e.Message; |
| | | objJsonResult.data = null; |
| | | } |
| | | return objJsonResult; |
| | |
| | | return objJsonResult; |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #endregion |
| | | } |
| | | } |