public List <string[]> PropertyLocation(string unit) { PropertyDataBase pDB = new PropertyDataBase(); List <string[]> Location = pDB.getPropertyLocation(unit); return(Location); }
public List<string[]> PropertyLocation(string unit) { PropertyDataBase pDB = new PropertyDataBase(); List<string[]> Location = pDB.getPropertyLocation(unit); return Location; }
public string[] setPropertyRecordDataBase(CreatePropertyRecord propertyRecordData) { PropertyDataBase pDB = new PropertyDataBase(); pDB.propertyFunction(); if (int.Parse(pDB._StaffhaveRoles[1]) == 1) { return pDB.setPropertyRecordDataBase(propertyRecordData); } else { return new string[2] { _noRole, _errorMsg }; } }
public string[] setPropertyChangesRecord(PropertyChangesExplainData propertyChangesData) { PropertyDataBase pDB = new PropertyDataBase(); pDB.propertyFunction(); if (int.Parse(pDB._StaffhaveRoles[1]) == 1) { return pDB.setPropertyChangesRecord(propertyChangesData); } else { return new string[2] { _noRole, _errorMsg }; } }
public string[] setApplyPropertyDetail(PropertyDetailData PropertyDetail) { PropertyDataBase pDB = new PropertyDataBase(); pDB.applyFunction(); if (int.Parse(pDB._StaffhaveRoles[1]) == 1) { return pDB.setApplyPropertyDetail(PropertyDetail); } else { return new string[2] { _noRole, _errorMsg }; } }
public string[] searchPropertyRecordDataBaseCount(SearchPropertyRecord searchRecordData) { PropertyDataBase pDB = new PropertyDataBase(); pDB.propertyFunction(); if (int.Parse(pDB._StaffhaveRoles[3]) == 1) { return pDB.SearchPropertyRecordDataCount(searchRecordData); } else { return new string[2] { _noRole, _errorMsg }; } }
public List<SearchPropertyRecordResult> searchPropertyRecordDataBase(int index, SearchPropertyRecord searchRecordData) { PropertyDataBase pDB = new PropertyDataBase(); return pDB.SearchPropertyRecordData(index, searchRecordData); }
public List<string[]> getPropertyCategoryData() { PropertyDataBase pDB = new PropertyDataBase(); return pDB.getPropertyCategory(); }
public List<string[]> getPropertyCustodyData(string unit) { PropertyDataBase pDB = new PropertyDataBase(); return pDB.getPropertyCustody(unit); }
public List<SearchApplyPropertyResult> searchApplyPropertyDataBase(int index, SearchApplyProperty searchApplyData) { PropertyDataBase pDB = new PropertyDataBase(); return pDB.SearchApplyPropertyData(index, searchApplyData); }
public string[] printApplyPropertyDataBase(string tID) { PropertyDataBase pDB = new PropertyDataBase(); CreateApplyProperty getData =pDB.getApplyPropertyDataBase(tID); pDB.applyFunction(); if (int.Parse(pDB._StaffhaveRoles[3]) == 1 && getData.applyByID == HttpContext.Current.User.Identity.Name) { return pDB.printApplyPropertyDataBase(tID); } else { return new string[2] { _noRole, _errorMsg }; } }
public string[] OutPropertyRecordDataBase(string rID, string unit) { PropertyDataBase pDB = new PropertyDataBase(); StaffDataBase sDB = new StaffDataBase(); ManageDataBase msg = new ManageDataBase(); string[] MembershipStaffRoles = msg.getMembershipStaffRoles(HttpContext.Current.User.Identity.Name); string StaffRoles = string.Join(",",MembershipStaffRoles); int aa = StaffRoles.IndexOf("15"); int aab = StaffRoles.IndexOf("4"); if (StaffRoles.IndexOf("15") > -1 || StaffRoles.IndexOf("4") > -1) { return pDB.OutPropertyRecordData(rID, unit); } else { return new string[2] { _noRole, _errorMsg }; } }
public CreatePropertyRecord getPropertyRecordDataBase(string ID) { PropertyDataBase pDB = new PropertyDataBase(); CreatePropertyRecord returnValue = new CreatePropertyRecord(); pDB.propertyFunction(); if (int.Parse(pDB._StaffhaveRoles[3]) == 1) { returnValue= pDB.getPropertyRecordDataBase(ID); } else { returnValue.checkNo = _noRole; returnValue.errorMsg = _errorMsg; } StaffDataBase sDB = new StaffDataBase(); List<string> UserFile = sDB.getStaffDataName(HttpContext.Current.User.Identity.Name); if (returnValue.Unit != UserFile[2] && int.Parse(pDB._StaffhaveRoles[4]) == 0 && UserFile[1].Length > 0) { returnValue.checkNo = _getcheckNo; returnValue.errorMsg = _errorMsg; } return returnValue; }
public List<string[]> getPropertyLocationData(string unit) { PropertyDataBase pDB = new PropertyDataBase(); return pDB.getPropertyLocation(unit); }
public List<PropertyDetailData> getPropertyDetailDataBase(string ID) { PropertyDataBase pDB = new PropertyDataBase(); return pDB.getPropertyDetailDataBase(ID); }
public List <string[]> getPropertyCustodyData(string unit) { PropertyDataBase pDB = new PropertyDataBase(); return(pDB.getPropertyCustody(unit)); }
public List<SearchApplyPropertyResult> searchApplyPropertyDataBase2(int index, SearchApplyProperty searchApplyData) { //SearchApplyProperty searchApplyData = new SearchApplyProperty(); searchApplyData.txtapplyType = "1"; searchApplyData.txtapplyStatus = "1"; PropertyDataBase pDB = new PropertyDataBase(); return pDB.SearchApplyPropertyData(index, searchApplyData); }
public string[] searchApplyPropertyDataBaseCount2(SearchApplyProperty searchApplyData) { //SearchApplyProperty searchApplyData = new SearchApplyProperty(); searchApplyData.txtapplyType = "1"; searchApplyData.txtapplyStatus = "1"; PropertyDataBase pDB = new PropertyDataBase(); return pDB.SearchApplyPropertyDataCount(searchApplyData); }
public string[] createApplyPropertyDataBase(CreateApplyProperty applyPropertyData) { PropertyDataBase pDB = new PropertyDataBase(); pDB.applyFunction(); if (int.Parse(pDB._StaffhaveRoles[2]) == 1) { return pDB.createApplyPropertyData(applyPropertyData); } else { return new string[2] { _noRole, _errorMsg }; } }