Esempio n. 1
0
 public ActionResult PFPForm()
 {
     ViewBag.ReceivedDevice = new SelectList(dropdown.BindCategory(CurrentUser.CompanyId), "Value", "Text");
     ViewBag.RecvdBrand     = new SelectList(dropdown.BindBrand(CurrentUser.CompanyId), "Value", "Text");
     ViewBag.RecvdModel     = new SelectList(dropdown.BindProduct(CurrentUser.CompanyId), "Value", "Text");
     ViewBag.Engg_Name      = new SelectList(dropdown.BindEngineer(CurrentUser.CompanyId), "Value", "Text");
     ViewBag.SpareType      = new SelectList(dropdown.BindSpareType(CurrentUser.CompanyId), "Value", "Text");
     ViewBag.SpareName      = new SelectList(Enumerable.Empty <SelectListItem>());
     ViewBag.ProblemFound   = new SelectList(dropdown.BindProblemObserved(CurrentUser.CompanyId), "Value", "Text");
     ViewBag.QCPersonName   = ViewBag.Engg_Name;
     ViewBag.QCFailReason   = new SelectList(dropdown.BindQC(CurrentUser.CompanyId), "Value", "Text");
     return(View());
 }
        public ActionResult RCEForm()
        {
            var rpcap = new RPCAPModel();

            rpcap.ReceivedDeviceList = new SelectList(dropdown.BindCategory(CurrentUser.CompanyId), "Value", "Text");
            rpcap.RecvdBrandList     = new SelectList(dropdown.BindBrand(CurrentUser.CompanyId), "Value", "Text");
            rpcap.RecvdModelList     = new SelectList(dropdown.BindProduct(CurrentUser.CompanyId), "Value", "Text");
            rpcap.Engg_NameList      = new SelectList(dropdown.BindEngineer(CurrentUser.CompanyId), "Value", "Text");
            rpcap.SpareTypeList      = new SelectList(dropdown.BindSpareType(CurrentUser.CompanyId), "Value", "Text");
            rpcap.SpareNameList      = new SelectList(Enumerable.Empty <SelectListItem>());
            rpcap.ProblemFoundList   = new SelectList(dropdown.BindProblemObserved(CurrentUser.CompanyId), "Value", "Text");
            return(PartialView(rpcap));
        }
        public ActionResult PRCCForm()
        {
            var ReceiveMaterial = new ReceiveMaterials();

            ReceiveMaterial.ReceivedDeviceList = new SelectList(dropdown.BindCategory(CurrentUser.CompanyId), "Value", "Text");
            ReceiveMaterial.RecvdBrandlList    = new SelectList(dropdown.BindBrand(CurrentUser.CompanyId), "Value", "Text");
            ReceiveMaterial.RecvdModelList     = new SelectList(dropdown.BindProduct(CurrentUser.CompanyId), "Value", "Text");
            ReceiveMaterial.Engg_NameList      = new SelectList(dropdown.BindEngineer(CurrentUser.CompanyId), "Value", "Text");
            ReceiveMaterial.SpareTypeList      = new SelectList(dropdown.BindSpareType(CurrentUser.CompanyId), "Value", "Text");
            ReceiveMaterial.SpareNameList      = new SelectList(Enumerable.Empty <SelectListItem>());
            ReceiveMaterial.ProblemFoundList   = new SelectList(dropdown.BindProblemObserved(CurrentUser.CompanyId), "Value", "Text");



            return(PartialView(ReceiveMaterial));
        }
        public ActionResult PFRMAForm()
        {
            var SessionModel = Session["User"] as SessionModel;

            ViewBag.ReceivedDevice = new SelectList(dropdown.BindCategory(SessionModel.CompanyId), "Value", "Text");
            ViewBag.RecvdBrand     = new SelectList(dropdown.BindBrand(SessionModel.CompanyId), "Value", "Text");
            ViewBag.RecvdModel     = new SelectList(dropdown.BindProduct(SessionModel.CompanyId), "Value", "Text");
            ViewBag.EnggName       = new SelectList(dropdown.BindEngineer(SessionModel.CompanyId), "Value", "Text");
            return(View());
        }
Esempio n. 5
0
        public ActionResult RM()
        {
            var SessionModel     = Session["User"] as SessionModel;
            var receivematerials = new ReceiveMaterials();

            receivematerials.ReceivedDeviceList = new SelectList(dropdown.BindCategory(SessionModel.CompanyId), "Value", "Text");
            receivematerials.RecvdBrandlList    = new SelectList(dropdown.BindBrand(SessionModel.CompanyId), "Value", "Text");
            receivematerials.RecvdModelList     = new SelectList(Enumerable.Empty <SelectListItem>());
            receivematerials.Engg_NameList      = new SelectList(dropdown.BindEngineer(SessionModel.CompanyId), "Value", "Text");
            return(PartialView(receivematerials));
        }
        public ActionResult PFRForm()
        {
            var SessionModel = Session["User"] as SessionModel;

            ViewBag.ReceivedDevice = new SelectList(dropdown.BindCategory(SessionModel.CompanyId), "Value", "Text");
            ViewBag.RecvdBrand     = new SelectList(dropdown.BindBrand(SessionModel.CompanyId), "Value", "Text");
            ViewBag.RecvdModel     = new SelectList(dropdown.BindProduct(SessionModel.CompanyId), "Value", "Text");
            ViewBag.Engg_Name      = new SelectList(dropdown.BindEngineer(SessionModel.CompanyId), "Value", "Text");
            ViewBag.SpareType      = new SelectList(dropdown.BindSpareType(SessionModel.CompanyId), "Value", "Text");
            ViewBag.SpareName      = new SelectList(Enumerable.Empty <SelectListItem>());
            ViewBag.ProblemFound   = new SelectList(dropdown.BindProblemObserved(SessionModel.CompanyId), "Value", "Text");
            ViewBag.QCPersonName   = ViewBag.Engg_Name;
            return(View());
        }
Esempio n. 7
0
 public ActionResult URSSEForm()
 {
     if (TempData["Message"] != null)
     {
         ViewBag.Message = TempData["Message"].ToString();
     }
     ViewBag.CallStatus   = new SelectList(dropdown.BindCall_Status_Master(), "Value", "Text");
     ViewBag.CourierName  = new SelectList(dropdown.BindCourier(CurrentUser.CompanyId), "Value", "Text");
     ViewBag.EngineerName = new SelectList(dropdown.BindEngineer(CurrentUser.CompanyId), "Value", "Text");
     using (var con = new SqlConnection(_connectionString))
     {
         var result  = new URSSEModel();
         var result1 = con.Query <URSSE_Page_Model>("URSSE_Page_Single_Table", null, commandType: CommandType.StoredProcedure).ToList();
         result.URSSE_Table = result1;
         return(View(result));
     }
 }