コード例 #1
0
 public ViewWardLeaveHistoryVM(string studentid, string hosteladmissionid)
 {
     studentids         = studentid;
     hosteladmissionids = hosteladmissionid;
     wardenService      = new WardenService((Iwardenleaveaction)this, (IApproveLeave)this, (IRejectLeave)this);
     wardenService.GetWardLeave(studentid);
 }
コード例 #2
0
 public Assignpersonpopup(string serviceissue, string requesttypeid)
 {
     InitializeComponent();
     requesttypeids   = requesttypeid;
     txtjobtitle.Text = serviceissue;
     wardenService    = new WardenService(this);
 }
コード例 #3
0
 public FeedBackSubmissionVM()
 {
     FeedbackDetailsByStudent.studentId = SecureStorage.GetAsync("userId").GetAwaiter().GetResult();
     warden         = new WardenService(this);
     studentService = new StudentService(this);
     studentService.GetRequestedServiceStatus(App.userid);
 }
コード例 #4
0
 public DisciplinaryActionVM()
 {
     warden  = new WardenService((IDisciplinaryAction)this);
     web     = new MasterServices((ViewIDisciplinary)this);
     student = new StudentService((ViewHostelAdmittedStudent)this);
     web.ViewDisciplinaryType();
     student.GetHostelStudent();
 }
コード例 #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();
 }
コード例 #6
0
 ////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;
     }
 }
コード例 #7
0
        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 = "******";
        }
コード例 #8
0
 public StudentLeaveHistoryVM()
 {
     warden = new WardenService(this);
     warden.GetStudentLeaveHistory();
 }
コード例 #9
0
 public viewrequestedservicebystudentVM()
 {
     wardenService = new WardenService((Iviewrequestedservice)this, (ProfileI)this);
     wardenService.GetWardenprofile(App.userid);
 }
コード例 #10
0
 public StudentParentInfo()
 {
     web = new WardenService((iViewParent)this);
     web.GetParentDetails();
 }
コード例 #11
0
 public ViewDisciplinaryActionVM()
 {
     wardenService = new WardenService((ViewDisciplinaryActionTaken)this, (IDeleteDisciplinary)this);
     wardenService.GetAllDisciplinaryAction();
 }
コード例 #12
0
 public ServiceStatusbypersonVM()
 {
     wardenService = new WardenService((Iviewrequestedservice)this, (ProfileI)this);
     wardenService.GetWardenprofile(App.userid);
 }
コード例 #13
0
 public ServiceCategory()
 {
     warden = new WardenService(this);
     web    = new MasterServices((IDeleteservicecategory)this);
     warden.GetServicelist();
 }
コード例 #14
0
 public HostelDetailMasterViewModel()
 {
     warden = new WardenService(this);
     warden.GetWardenprofile(App.userid);
 }
コード例 #15
0
 public ContactDirectorVM()
 {
     wardenService = new WardenService((IViewDirectorDetail)this);
 }
コード例 #16
0
 public NewAdmittedStudent()
 {
     warden = new WardenService(this);
     warden.Getnewstudentdata();
 }
コード例 #17
0
 public Assignpersonpopup()
 {
     InitializeComponent();
     wardenService = new WardenService(this);
 }
コード例 #18
0
 public ServiceCategory()
 {
     warden = new WardenService(this);
     warden.GetServicelist();
 }
コード例 #19
0
 public LeaveAction()
 {
     warden = new WardenService(this);
     warden.GetParentLeaveApproval();
 }