Exemplo 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));
        }
Exemplo 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);
        }
Exemplo 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));
        }
Exemplo 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
                }
            });
        }
Exemplo 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))));
        }
Exemplo n.º 6
0
        public string DeleteCustomer(int customerID)
        {
            var pl = BL_Customer.DeleteCustomer(customerID, UserAprosysAccounting.id);

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

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

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

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

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