public ViewWardLeaveHistoryVM(string studentid, string hosteladmissionid)
 {
     studentids         = studentid;
     hosteladmissionids = hosteladmissionid;
     wardenService      = new WardenService((Iwardenleaveaction)this, (IApproveLeave)this, (IRejectLeave)this);
     wardenService.GetWardLeave(studentid);
 }
Esempio n. 2
0
 public Assignpersonpopup(string serviceissue, string requesttypeid)
 {
     InitializeComponent();
     requesttypeids   = requesttypeid;
     txtjobtitle.Text = serviceissue;
     wardenService    = new WardenService(this);
 }
 public FeedBackSubmissionVM()
 {
     FeedbackDetailsByStudent.studentId = SecureStorage.GetAsync("userId").GetAwaiter().GetResult();
     warden         = new WardenService(this);
     studentService = new StudentService(this);
     studentService.GetRequestedServiceStatus(App.userid);
 }
 public DisciplinaryActionVM()
 {
     warden  = new WardenService((IDisciplinaryAction)this);
     web     = new MasterServices((ViewIDisciplinary)this);
     student = new StudentService((ViewHostelAdmittedStudent)this);
     web.ViewDisciplinaryType();
     student.GetHostelStudent();
 }
Esempio n. 5
0
 public EditDisciplinaryActionVM(string disciplinaryname, string discpid, string wardendiscipid, string description, string hostelAdmissionId, string date, string time)
 {
     DisciplinaryName = disciplinaryname;
     UpdateDisciplinaryActionbywarden.disciplinaryTypeId   = discpid;
     UpdateDisciplinaryActionbywarden.wardenDisciplinaryId = wardendiscipid;
     UpdateDisciplinaryActionbywarden.description          = description;
     UpdateDisciplinaryActionbywarden.hostelAdmissionId    = hostelAdmissionId;
     UpdateDisciplinaryActionbywarden.date = date;
     UpdateDisciplinaryActionbywarden.time = time;
     WardenService = new WardenService((IEditDisciplinary)this);
     web           = new MasterServices((ViewIDisciplinary)this);
     web.ViewDisciplinaryType();
 }
 ////public string newstitle1;
 ////public string newstitle2;
 ////public string newstitle3;
 ////public string linkurl1;
 ////public string linkurl2;
 ////public string linkurl3;
 ////#region properties
 ////public string NewsTitle1
 ////{
 ////    get
 ////    {
 ////        return newstitle1;
 ////    }
 ////    set
 ////    {
 ////        newstitle1 = value;
 ////        OnPropertyChanged();
 ////    }
 ////}
 ////public string NewsTitle2
 ////{
 ////    get
 ////    {
 ////        return newstitle2;
 ////    }
 ////    set
 ////    {
 ////        newstitle2 = value;
 ////        OnPropertyChanged();
 ////    }
 ////}
 ////public string NewsTitle3
 ////{
 ////    get
 ////    {
 ////        return newstitle3;
 ////    }
 ////    set
 ////    {
 ////        newstitle3 = value;
 ////        OnPropertyChanged();
 ////    }
 ////}
 ////public string Linkurl1
 ////{
 ////    get
 ////    {
 ////        return linkurl1;
 ////    }
 ////    set
 ////    {
 ////        linkurl1 = value;
 ////        OnPropertyChanged();
 ////    }
 ////}
 ////public string Linkurl2
 ////{
 ////    get
 ////    {
 ////        return linkurl2;
 ////    }
 ////    set
 ////    {
 ////        linkurl2 = value;
 ////        OnPropertyChanged();
 ////    }
 ////}
 ////public string Linkurl3
 ////{
 ////    get
 ////    {
 ////        return linkurl3;
 ////    }
 ////    set
 ////    {
 ////        linkurl3 = value;
 ////        OnPropertyChanged();
 ////    }
 ////}
 //#endregion
 public NewsFeedViewModel()
 {
     var profiles = Connectivity.ConnectionProfiles;
     if (profiles.Contains(ConnectionProfile.WiFi) || profiles.Contains(ConnectionProfile.Cellular))
     {
         warden = new WardenService(this);
         warden.GetNewsFeedDatalist();
     }
     else
     {
         IsResponsenotok = true;
     }
 }
        public Wardeninfoupdate()
        {
            wardenservice = new WardenService(this);
            Name          = SecureStorage.GetAsync("firstName").GetAwaiter().GetResult();
            var add1   = SecureStorage.GetAsync("permanent_address_line_1").GetAwaiter().GetResult();
            var add2   = SecureStorage.GetAsync("permanent_address_line_2").GetAwaiter().GetResult();
            var result = add1 + add2;

            Fulladdress = result;
            City        = SecureStorage.GetAsync("permanent_address_city").GetAwaiter().GetResult();
            Mobileno    = SecureStorage.GetAsync("mobile_no").GetAwaiter().GetResult();
            Email       = SecureStorage.GetAsync("email").GetAwaiter().GetResult();
            Role        = SecureStorage.GetAsync("type").GetAwaiter().GetResult();
            Gender      = SecureStorage.GetAsync("gender").GetAwaiter().GetResult();
            // Username = "******";
        }
 public StudentLeaveHistoryVM()
 {
     warden = new WardenService(this);
     warden.GetStudentLeaveHistory();
 }
 public viewrequestedservicebystudentVM()
 {
     wardenService = new WardenService((Iviewrequestedservice)this, (ProfileI)this);
     wardenService.GetWardenprofile(App.userid);
 }
Esempio n. 10
0
 public StudentParentInfo()
 {
     web = new WardenService((iViewParent)this);
     web.GetParentDetails();
 }
Esempio n. 11
0
 public ViewDisciplinaryActionVM()
 {
     wardenService = new WardenService((ViewDisciplinaryActionTaken)this, (IDeleteDisciplinary)this);
     wardenService.GetAllDisciplinaryAction();
 }
 public ServiceStatusbypersonVM()
 {
     wardenService = new WardenService((Iviewrequestedservice)this, (ProfileI)this);
     wardenService.GetWardenprofile(App.userid);
 }
Esempio n. 13
0
 public ServiceCategory()
 {
     warden = new WardenService(this);
     web    = new MasterServices((IDeleteservicecategory)this);
     warden.GetServicelist();
 }
 public HostelDetailMasterViewModel()
 {
     warden = new WardenService(this);
     warden.GetWardenprofile(App.userid);
 }
Esempio n. 15
0
 public ContactDirectorVM()
 {
     wardenService = new WardenService((IViewDirectorDetail)this);
 }
Esempio n. 16
0
 public NewAdmittedStudent()
 {
     warden = new WardenService(this);
     warden.Getnewstudentdata();
 }
Esempio n. 17
0
 public Assignpersonpopup()
 {
     InitializeComponent();
     wardenService = new WardenService(this);
 }
Esempio n. 18
0
 public ServiceCategory()
 {
     warden = new WardenService(this);
     warden.GetServicelist();
 }
Esempio n. 19
0
 public LeaveAction()
 {
     warden = new WardenService(this);
     warden.GetParentLeaveApproval();
 }