Esempio n. 1
0
        public ActionResult GetCustomerByID(int customerID)
        {
            BO_Customers obj = new BussinessObject.BO_Customers();

            obj = BL_Customer.GetCustomerByID(customerID);
            return(Json(obj, JsonRequestBehavior.AllowGet));
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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));
        }
Esempio n. 4
0
        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
                }
            });
        }
Esempio n. 5
0
        public string SaveCustomer(string paramcustomer)
        {
            var _customer = BL_Common.Deserialize <BO_Customers>(paramcustomer);

            return(BL_Common.Serialize((BL_Customer.SaveCustomer(_customer, UserAprosysAccounting.id))));
        }
Esempio n. 6
0
        public string DeleteCustomer(int customerID)
        {
            var pl = BL_Customer.DeleteCustomer(customerID, UserAprosysAccounting.id);

            return(BL_Common.Serialize(pl));
        }
Esempio n. 7
0
        public ActionResult LoadCustomerTable(JQueryDataTableParamModel Param)
        {
            MYJSONTblCustom MYJSON = BL_Customer.LoadCustomerTable(Param, Request);

            return(Json(MYJSON, JsonRequestBehavior.AllowGet));
        }
Esempio n. 8
0
        public string GetCustomerBalance(int custId)
        {
            var pl = BL_Customer.GetCustomerBalance(custId);

            return(BL_Common.Serialize(pl));
        }
Esempio n. 9
0
        public JsonResult GetSubCustomerList(int typeID)
        {
            var List = BL_Customer.GetSubCustomerList(typeID);

            return(Json(List, JsonRequestBehavior.AllowGet));
        }
Esempio n. 10
0
        public JsonResult GetCustomerListBySalesPersonID(int salesPersonID)
        {
            var List = BL_Customer.GetCustomerListBySalesPersonID(salesPersonID);

            return(Json(List, JsonRequestBehavior.AllowGet));
        }
Esempio n. 11
0
 public ActionResult CustomerReports()
 {
     ViewBag.Customers = BL_Customer.LoadICustomers(new JQueryDataTableParamModel());
     return(View());
 }