public ActionResult GetList_Supplier()
        {
            string OrganizationCode = "";

            if (Session["UserDetails"] != null && ((UserInfo)Session["UserDetails"]).UserType.ToString().Trim().ToUpper() == "R" && ((UserInfo)Session["UserDetails"]).OrganizationCode != null)
            {
                OrganizationCode = ((UserInfo)Session["UserDetails"]).OrganizationCode.Trim();
            }

            using (Bill_Svc.BillServiceClient iGstSvc = new Bill_Svc.BillServiceClient())
            {
                return(View("~/Views/MasterPages/SupplierList.cshtml", iGstSvc.GetList_Customer("S", "", "", OrganizationCode, false, "", "")));
            }
        }
Beispiel #2
0
        public ActionResult GetList_CustomerForDropdownlist(string UserType)
        {
            if (Session["CustomerList"] == null)
            {
                string OrganizationCode = "";
                if (Session["UserDetails"] != null && ((UserInfo)Session["UserDetails"]).UserType.ToString().Trim().ToUpper() == "R" && ((UserInfo)Session["UserDetails"]).OrganizationCode != null)
                {
                    OrganizationCode = ((UserInfo)Session["UserDetails"]).OrganizationCode.Trim();
                }

                using (Bill_Svc.BillServiceClient iGstSvc = new Bill_Svc.BillServiceClient())
                {
                    List <CustomerInfo> list = iGstSvc.GetList_Customer(UserType.Trim().ToUpper(), "", "", OrganizationCode, false, "", "");
                    return(Json(list, JsonRequestBehavior.AllowGet));
                }
            }
            else
            {
                return(Json((List <CustomerInfo>)Session["CustomerList"], JsonRequestBehavior.AllowGet));
            }
        }