Ejemplo n.º 1
0
        public ActionResult GetSupplierList(string StoreID)
        {
            DalInvLeatherIssueItem dalLeatherIssueItem = new DalInvLeatherIssueItem();
            int storeid        = string.IsNullOrEmpty(StoreID) ? 0 : Convert.ToInt16(StoreID);
            var supplierIDList = dalLeatherIssueItem.GetSupplierList(storeid);

            return(Json(supplierIDList, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
        public ActionResult GetBillPaymentListForSearch(string storeId, string supplier)
        {
            DalInvLeatherIssueItem dalChallan = new DalInvLeatherIssueItem();
            SysSupplier            model      = new SysSupplier();
            int storeid = string.IsNullOrEmpty(storeId) ? 0 : Convert.ToInt16(storeId);

            model.SupplierList = dalChallan.GetSupplierList(storeid).Where(m => m.SupplierName.StartsWith(supplier)).ToList();
            model.Count        = model.SupplierList.Count > 1 ? model.Count = 0 : model.Count = 1;
            return(Json(model, JsonRequestBehavior.AllowGet));
        }