public ActionResult GetCustomerByID(int customerID) { BO_Customers obj = new BussinessObject.BO_Customers(); obj = BL_Customer.GetCustomerByID(customerID); return(Json(obj, JsonRequestBehavior.AllowGet)); }
public string InsertStockistPoolAllocation(FormCollection col) { string result = string.Empty; BL_Customer objCust = new BL_Customer(); result = objCust.InsertStockistPoolAllocation(_objcurrentInfo.GetCompanyCode(), col["stockist"].ToString(), col["product"].ToString(), col["territory"].ToString(), col["from"].ToString(), col["to"].ToString(), Convert.ToInt16(col["status"]), col["stockID"].ToString(), col["baseRegion"].ToString(), _objcurrentInfo.GetRegionCode()); return(result); }
public JsonResult GetStockistPoolAllocationDetails(FormCollection col) { DataSet ds = new DataSet(); BL_Customer objCust = new BL_Customer(); ds = objCust.GetStockistPoolAllocationDetails(_objcurrentInfo.GetCompanyCode(), col["regionCode"].ToString()); JSONConverter json = new JSONConverter(); return(Json(json.Serialize(ds), JsonRequestBehavior.AllowGet)); }
public LargeJsonResult GetStockistData(FormCollection coll) { BL_Customer objStockist = new BL_Customer(); List <MVCModels.HiDoctor_Master.CustomerModel> lstStockist = new List <MVCModels.HiDoctor_Master.CustomerModel>(); lstStockist = objStockist.GetStockistWithRegion(_objcurrentInfo.GetCompanyCode(), coll["regionCode"].ToString()); return(new LargeJsonResult { MaxJsonLength = Int32.MaxValue, JsonRequestBehavior = JsonRequestBehavior.AllowGet, Data = new { total = lstStockist.Count, data = lstStockist } }); }
public string SaveCustomer(string paramcustomer) { var _customer = BL_Common.Deserialize <BO_Customers>(paramcustomer); return(BL_Common.Serialize((BL_Customer.SaveCustomer(_customer, UserAprosysAccounting.id)))); }
public string DeleteCustomer(int customerID) { var pl = BL_Customer.DeleteCustomer(customerID, UserAprosysAccounting.id); return(BL_Common.Serialize(pl)); }
public ActionResult LoadCustomerTable(JQueryDataTableParamModel Param) { MYJSONTblCustom MYJSON = BL_Customer.LoadCustomerTable(Param, Request); return(Json(MYJSON, JsonRequestBehavior.AllowGet)); }
public string GetCustomerBalance(int custId) { var pl = BL_Customer.GetCustomerBalance(custId); return(BL_Common.Serialize(pl)); }
public JsonResult GetSubCustomerList(int typeID) { var List = BL_Customer.GetSubCustomerList(typeID); return(Json(List, JsonRequestBehavior.AllowGet)); }
public JsonResult GetCustomerListBySalesPersonID(int salesPersonID) { var List = BL_Customer.GetCustomerListBySalesPersonID(salesPersonID); return(Json(List, JsonRequestBehavior.AllowGet)); }
public ActionResult CustomerReports() { ViewBag.Customers = BL_Customer.LoadICustomers(new JQueryDataTableParamModel()); return(View()); }