Ejemplo n.º 1
0
        public static string GetOrganizationOnFull(string mSubsidiaryCode, string mBranchCode, string mDepartmentCode, string mGroupCode)
        {
            int    num = 0;
            string str = "";

            if (mBranchCode != "")
            {
                if (!(mDepartmentCode != ""))
                {
                    num = 2;
                    str = mBranchCode;
                }
                else if (!(mGroupCode != ""))
                {
                    num = 3;
                    str = mDepartmentCode;
                }
                else
                {
                    num = 4;
                    str = mGroupCode;
                }
            }
            else if (!(mDepartmentCode != ""))
            {
                num = 1;
                str = mSubsidiaryCode;
            }
            else if (!(mGroupCode != ""))
            {
                num = 3;
                str = mDepartmentCode;
            }
            else
            {
                num = 4;
                str = mGroupCode;
            }
            return(HRM_ORGANIZATION.GetOrganization(num, str, true));
        }
Ejemplo n.º 2
0
 public static string GetOrganizationOnReport(int mLevel, string mCode)
 {
     return(HRM_ORGANIZATION.GetOrganization(mLevel, mCode, false));
 }
Ejemplo n.º 3
0
 public static string GetOrganizationOnFull(int mLevel, string mCode)
 {
     return(HRM_ORGANIZATION.GetOrganization(mLevel, mCode, true));
 }
Ejemplo n.º 4
0
 public static string GetOrganizationByMyLogin()
 {
     return(HRM_ORGANIZATION.GetOrganization(MyLogin.Level, MyLogin.Code, true));
 }