diff --git a/北京北汽/Controller/SCP_ASK_CONTROLLER.cs b/北京北汽/Controller/SCP_ASK_CONTROLLER.cs index b5221ed..1698ecd 100644 --- a/北京北汽/Controller/SCP_ASK_CONTROLLER.cs +++ b/北京北汽/Controller/SCP_ASK_CONTROLLER.cs @@ -3605,6 +3605,7 @@ namespace CK.SCP.Controller string Buyer= string.IsNullOrEmpty(p_entity.Buyer) ? "" : p_entity.Buyer; string VendId = string.IsNullOrEmpty(p_entity.VendId) ? "" : p_entity.VendId; + string VendName = string.IsNullOrEmpty(p_entity.VendName) ? "" : p_entity.VendName; string UserInAddress_where = ""; string UserName = p_entity.UserName; if (p_entity.UserInAddress != null) @@ -3613,7 +3614,7 @@ namespace CK.SCP.Controller } - string str = "exec PROC_test " + " @PONum_where = '" + PoBillNum + "' ,@AskBillNum_where = '" + AskBillNum + "' ,@PartCode_where = '" + PartCode + "' ,@Buyer_where = '" + Buyer + "' ,@BeginDate_where = '" + TimeBegin + "' ,@EndDate_where = '" + TimeEnd + "', @VenderID_where = '" + VendId + "'" + ", @UserInAddress_where = " + UserInAddress_where + " ,@UserName = " + UserName; + string str = "exec PROC_test " + " @PONum_where = '" + PoBillNum + "' ,@AskBillNum_where = '" + AskBillNum + "' ,@PartCode_where = '" + PartCode + "' ,@Buyer_where = '" + Buyer + "' ,@BeginDate_where = '" + TimeBegin + "' ,@EndDate_where = '" + TimeEnd + "', @VenderID_where = '" + VendId + "'" + ", @UserInAddress_where = '" + UserInAddress_where + "' ,@UserName = '" + UserName + "',@VendName_where = '"+VendName+"'"; list = db.Database.SqlQuery(str).ToList(); } }