Ejemplo n.º 1
0
        //public JsonResult GetLeatherInfoList(string storeid, string supplierid)
        //{
        //    DalInvLeatherIssueItem dalChallan = new DalInvLeatherIssueItem();
        //    byte storid = Convert.ToByte(storeid);
        //    int suppliid = string.IsNullOrEmpty(supplierid) ? 0 : Convert.ToInt32(supplierid);
        //    var leatherInfoList = dalChallan.GetLeatherInfoList(storid, suppliid);
        //    return Json(leatherInfoList, JsonRequestBehavior.AllowGet);
        //}

        public ActionResult GetLeatherInfoList(string ConcernStore, string SupplierID)
        {
            DalInvLeatherIssueItem dalInvLeatherIssueItem = new DalInvLeatherIssueItem();
            var packItemList = dalInvLeatherIssueItem.GetLeatherInfoList(ConcernStore, SupplierID);

            return(Json(packItemList, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
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.º 3
0
        public JsonResult GetLeatherIssueItemList(string issueId, string IssueFrom)
        {
            DalInvLeatherIssueItem dalChallan = new DalInvLeatherIssueItem();
            long issueid         = string.IsNullOrEmpty(issueId) ? 0 : Convert.ToInt64(issueId);
            byte storeid         = Convert.ToByte(IssueFrom);
            var  leatherInfoList = dalChallan.GetLeatherIssueItemList(issueid, storeid);

            return(Json(leatherInfoList, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 4
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));
        }