コード例 #1
0
        public CommonDbResponse ExtendCreditLimit(SubDistributorCreditLimitCommon acc)
        {
            string sql = "sproc_agent_Detail_v3 ";

            sql += " @flag='exc'";
            sql += ",@agent_id=" + dao.FilterString(acc.AgentId);
            sql += ",@action_user="******",@agent_credit_limit=" + dao.FilterString(acc.AgentCreditLimit);

            return(dao.ParseCommonDbResponse(sql));
        }
コード例 #2
0
 public void ExtendCreditLimit(SubDistributorCreditLimitModel model)
 {
     if (ModelState.IsValid)
     {
         SubDistributorCreditLimitCommon clc = new SubDistributorCreditLimitCommon();
         clc            = model.MapObject <SubDistributorCreditLimitCommon>();
         clc.AgentId    = clc.AgentId.DecryptParameter();
         clc.ActionUser = ApplicationUtilities.GetSessionValue("UserName").ToString();
         clc.IpAddress  = ApplicationUtilities.GetIP();
         CommonDbResponse dbresp = buss.ExtendCreditLimit(clc);
         if (dbresp.Code == 0)
         {
             this.ShowPopup(0, dbresp.Message);
             return;
         }
         this.ShowPopup(1, dbresp.Message);
         return;
     }
     this.ShowPopup(1, "Credit Limit Not Changed");
     return;
 }
コード例 #3
0
 public CommonDbResponse ExtendCreditLimit(SubDistributorCreditLimitCommon acc)
 {
     return(repo.ExtendCreditLimit(acc));
 }