Beispiel #1
0
        public ActionResult EmployeeById(int Id)
        {
            MastersModel MM = new MastersModel();
            List <SP_GetAllEmployees_Result> EmployeeList = new List <SP_GetAllEmployees_Result>();

            EmployeeList = MM.GetEmployeeById(Id);
            return(Json(EmployeeList, JsonRequestBehavior.AllowGet));
        }
Beispiel #2
0
        public ActionResult CurrencyById(int Id)
        {
            MastersModel MM = new MastersModel();
            List <SP_GetCurrency_Result> CurrencyList = new List <SP_GetCurrency_Result>();

            CurrencyList = MM.GetCurrencyById(Id);
            return(Json(CurrencyList, JsonRequestBehavior.AllowGet));
        }
Beispiel #3
0
        public ActionResult SupplierById(int Id)
        {
            MastersModel MM = new MastersModel();
            List <SP_GetAllSupplier_Result> Supplier = new List <SP_GetAllSupplier_Result>();

            Supplier = MM.GetSupplierById(Id);
            return(Json(Supplier, JsonRequestBehavior.AllowGet));
        }
Beispiel #4
0
        public ActionResult ProductById(int Id)
        {
            MastersModel MM = new MastersModel();
            List <SP_GetAllProductServices_Result> ProductList = new List <SP_GetAllProductServices_Result>();

            ProductList = MM.ProductById(Id);
            return(Json(ProductList, JsonRequestBehavior.AllowGet));
        }
Beispiel #5
0
        public ActionResult JobById(int Id)
        {
            MastersModel MM = new MastersModel();
            List <SP_GetAllJobsDetails_Result> JobList = new List <SP_GetAllJobsDetails_Result>();

            JobList = MM.JobById(Id);
            return(Json(JobList, JsonRequestBehavior.AllowGet));
        }
Beispiel #6
0
        public ActionResult AcHeadById(int Id)
        {
            MastersModel MM = new MastersModel();
            List <AcHeadSelectAll_Result> AccountHeadList = new List <AcHeadSelectAll_Result>();

            AccountHeadList = MM.AcHeadById(Common.ParseInt(Session["branchid"].ToString()), Id);
            return(Json(AccountHeadList, JsonRequestBehavior.AllowGet));
        }
Beispiel #7
0
        public ActionResult PortById(int Id)
        {
            MastersModel MM = new MastersModel();
            List <SP_GetAllPorts_Result> PortList = new List <SP_GetAllPorts_Result>();

            PortList = MM.GetPortById(Id);
            return(Json(PortList, JsonRequestBehavior.AllowGet));
        }
Beispiel #8
0
        public ActionResult Employee(string term)
        {
            MastersModel MM = new MastersModel();

            if (!String.IsNullOrEmpty(term))
            {
                List <SP_GetAllEmployees_Result> EmployeeList = new List <SP_GetAllEmployees_Result>();
                EmployeeList = MM.GetAllEmployees(term);
                return(Json(EmployeeList, JsonRequestBehavior.AllowGet));
            }
            else
            {
                List <SP_GetAllEmployees_Result> EmployeeList = new List <SP_GetAllEmployees_Result>();
                EmployeeList = MM.GetAllEmployees();
                return(Json(EmployeeList, JsonRequestBehavior.AllowGet));
            }
        }
Beispiel #9
0
        public ActionResult Currency(string term)
        {
            MastersModel MM = new MastersModel();

            if (!String.IsNullOrEmpty(term))
            {
                List <SP_GetCurrency_Result> CurrencyList = new List <SP_GetCurrency_Result>();
                CurrencyList = MM.GetCurrency(term);
                return(Json(CurrencyList, JsonRequestBehavior.AllowGet));
            }
            else
            {
                List <SP_GetCurrency_Result> CurrencyList = new List <SP_GetCurrency_Result>();
                CurrencyList = MM.GetCurrency();
                return(Json(CurrencyList, JsonRequestBehavior.AllowGet));
            }
        }
Beispiel #10
0
        public ActionResult AnalysisHeadSelectAll(string term)
        {
            MastersModel MM = new MastersModel();

            if (!String.IsNullOrEmpty(term))
            {
                List <AnalysisHeadSelectAll_Result> AnalysisHeadSelectList = new List <AnalysisHeadSelectAll_Result>();
                AnalysisHeadSelectList = MM.GetAnalysisHeadSelectList(Common.ParseInt(Session["AcCompanyID"].ToString()), term);
                return(Json(AnalysisHeadSelectList, JsonRequestBehavior.AllowGet));
            }
            else
            {
                List <AnalysisHeadSelectAll_Result> AnalysisHeadSelectList = new List <AnalysisHeadSelectAll_Result>();
                AnalysisHeadSelectList = MM.GetAnalysisHeadSelectList(Common.ParseInt(Session["AcCompanyID"].ToString()), "");
                return(Json(AnalysisHeadSelectList, JsonRequestBehavior.AllowGet));
            }
        }
Beispiel #11
0
        public ActionResult Products(string term)
        {
            MastersModel MM = new MastersModel();

            if (!String.IsNullOrEmpty(term))
            {
                List <SP_GetAllProductServices_Result> ProductList = new List <SP_GetAllProductServices_Result>();
                ProductList = MM.GetAllProductServices(term);
                return(Json(ProductList, JsonRequestBehavior.AllowGet));
            }
            else
            {
                List <SP_GetAllProductServices_Result> ProductList = new List <SP_GetAllProductServices_Result>();
                ProductList = MM.GetAllProductServices();
                return(Json(ProductList, JsonRequestBehavior.AllowGet));
            }
        }
Beispiel #12
0
        public ActionResult Supplier(string term)
        {
            MastersModel MM = new MastersModel();

            if (!String.IsNullOrEmpty(term))
            {
                List <SP_GetAllSupplier_Result> Supplier = new List <SP_GetAllSupplier_Result>();
                Supplier = MM.GetAllSupplier(term);
                return(Json(Supplier, JsonRequestBehavior.AllowGet));
            }
            else
            {
                List <SP_GetAllSupplier_Result> Supplier = new List <SP_GetAllSupplier_Result>();
                Supplier = MM.GetAllSupplier();
                return(Json(Supplier, JsonRequestBehavior.AllowGet));
            }
        }
Beispiel #13
0
        public ActionResult Job(string term)
        {
            MastersModel MM = new MastersModel();

            if (!String.IsNullOrEmpty(term))
            {
                List <SP_GetAllJobsDetails_Result> JobList = new List <SP_GetAllJobsDetails_Result>();
                JobList = DAL.GetAllJobsDetails(term);
                return(Json(JobList, JsonRequestBehavior.AllowGet));
            }
            else
            {
                List <SP_GetAllJobsDetails_Result> JobList = new List <SP_GetAllJobsDetails_Result>();
                JobList = MM.GetAllJobsDetails();
                return(Json(JobList, JsonRequestBehavior.AllowGet));
            }
        }
Beispiel #14
0
        public ActionResult AccountHead(string term)
        {
            MastersModel MM = new MastersModel();

            if (!String.IsNullOrEmpty(term))
            {
                List <AcHeadSelectAll_Result> AccountHeadList = new List <AcHeadSelectAll_Result>();
                AccountHeadList = MM.AcHeadSelectAll(Common.ParseInt(Session["branchid"].ToString()), term);
                return(Json(AccountHeadList, JsonRequestBehavior.AllowGet));
            }
            else
            {
                List <AcHeadSelectAll_Result> AccountHeadList = new List <AcHeadSelectAll_Result>();
                AccountHeadList = MM.AcHeadSelectAll(Common.ParseInt(Session["branchid"].ToString()));
                return(Json(AccountHeadList, JsonRequestBehavior.AllowGet));
            }
        }