Ejemplo n.º 1
0
    public List <string[]> PropertyLocation(string unit)
    {
        PropertyDataBase pDB      = new PropertyDataBase();
        List <string[]>  Location = pDB.getPropertyLocation(unit);

        return(Location);
    }
Ejemplo n.º 2
0
    public List<string[]> PropertyLocation(string unit)
    {
        PropertyDataBase pDB = new PropertyDataBase();
        List<string[]> Location = pDB.getPropertyLocation(unit);

        return Location;
    }
Ejemplo n.º 3
0
 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 };
     }
 }
Ejemplo n.º 4
0
 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 };
     }
 }
Ejemplo n.º 5
0
 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 };
     }
 }
Ejemplo n.º 6
0
 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 };
     }
 }
Ejemplo n.º 7
0
 public List<SearchPropertyRecordResult> searchPropertyRecordDataBase(int index, SearchPropertyRecord searchRecordData)
 {
     PropertyDataBase pDB = new PropertyDataBase();
     return pDB.SearchPropertyRecordData(index, searchRecordData);
 }
Ejemplo n.º 8
0
 public List<string[]> getPropertyCategoryData()
 {
     PropertyDataBase pDB = new PropertyDataBase();
     return pDB.getPropertyCategory();
 }
Ejemplo n.º 9
0
 public List<string[]> getPropertyCustodyData(string unit)
 {
     PropertyDataBase pDB = new PropertyDataBase();
     return pDB.getPropertyCustody(unit);
 }
Ejemplo n.º 10
0
 public List<SearchApplyPropertyResult> searchApplyPropertyDataBase(int index, SearchApplyProperty searchApplyData)
 {
     PropertyDataBase pDB = new PropertyDataBase();
     return pDB.SearchApplyPropertyData(index, searchApplyData);
 }
Ejemplo n.º 11
0
 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 };
     }
 }
Ejemplo n.º 12
0
 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 };
     }
 }
Ejemplo n.º 13
0
 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;
 }
Ejemplo n.º 14
0
 public List<string[]> getPropertyLocationData(string unit)
 {
     PropertyDataBase pDB = new PropertyDataBase();
     return pDB.getPropertyLocation(unit);
 }
Ejemplo n.º 15
0
 public List<PropertyDetailData> getPropertyDetailDataBase(string ID)
 {
     PropertyDataBase pDB = new PropertyDataBase();
     return pDB.getPropertyDetailDataBase(ID);
 }
Ejemplo n.º 16
0
    public List <string[]> getPropertyCustodyData(string unit)
    {
        PropertyDataBase pDB = new PropertyDataBase();

        return(pDB.getPropertyCustody(unit));
    }
Ejemplo n.º 17
0
 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);
 }
Ejemplo n.º 18
0
 public string[] searchApplyPropertyDataBaseCount2(SearchApplyProperty searchApplyData)
 {
     //SearchApplyProperty searchApplyData = new SearchApplyProperty();
     searchApplyData.txtapplyType = "1";
     searchApplyData.txtapplyStatus = "1";
     PropertyDataBase pDB = new PropertyDataBase();
     return pDB.SearchApplyPropertyDataCount(searchApplyData);
 }
Ejemplo n.º 19
0
 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 };
     }
 }