Example #1
0
 public FileUploadController()
 {
     _flowJs       = new FlowJsRepo();
     _db           = new TExpEntities();
     _uploadFolder = ConfigurationManager.AppSettings["UploadFolder"];
     //  _uploadFolder = @"C:\Temp\PicUpload\";
 }
Example #2
0
 public DecisionMessage(int EquipmentID)
 {
     db           = new TExpEntities();
     Equipment    = db.t_Equipment.Find(EquipmentID);
     Message      = db.t_Message.FirstOrDefault();
     CostOfRepair = db.t_CostOfRepair.Find(EquipmentID);
 }
        public WizardStepFourController()
        {
            db           = new TExpEntities();
            _userManager = System.Web.HttpContext.Current.GetOwinContext().GetUserManager <MyUserManager>();
            _userName    = User.Identity.Name;
#if DEBUG
            Debug.WriteLine("~~~~~~~~ user name ->" + User.Identity.Name);
#endif
        }
Example #4
0
 public UserListController()
 {
     _db = new TExpEntities();
 }
        private TExpEntities db; // = new TExpEntities();

        public TypeOfEquipmentMalfunctionController()
        {
            db = new TExpEntities();
            //db.Configuration.ProxyCreationEnabled = false;
        }
Example #6
0
 public DocumentClass(TExpEntities db)
 {
     _db = db;
 }
Example #7
0
 public ExpertiseListController()
 {
     _db = new TExpEntities();
 }
Example #8
0
 public ActOfExpertiseController()
 {
     db = new TExpEntities();
 }
Example #9
0
 public DocumentController()
 {
     _db       = new TExpEntities();
     _document = new DocumentClass(_db);
 }
 public WizardStepTwoController()
 {
     db = new TExpEntities();
 }
 public EquipmentMalfunctionOps(int EquipmentID)
 {
     db        = new TExpEntities();
     Equipment = db.t_Equipment.Find(EquipmentID);
 }
Example #12
0
 public PDFDocumentController()
 {
     _db = new TExpEntities();
 }
Example #13
0
 public EquipmentController()
 {
     db = new TExpEntities();
 }
 public TypeOfEquipmentMalfunctionOps(int TypeID)
 {
     db = new TExpEntities();
     typeOfEquipment = db.t_TypeOfEquipment.Find(TypeID);
 }
Example #15
0
 public DecommissionController()
 {
     db = new TExpEntities();
 }
Example #16
0
 public CountOfItemsController()
 {
     db = new TExpEntities();
 }
Example #17
0
 public ExpertiseUser()
 {
     _db = new TExpEntities();
 }
Example #18
0
 public MessageTwoController()
 {
     db = new TExpEntities();
 }
Example #19
0
 public ResetPasswordController()
 {
     _db          = new TExpEntities();
     _userManager = System.Web.HttpContext.Current.GetOwinContext().GetUserManager <MyUserManager>();
 }