public static string SaveLevel1(string NewDeptName, string Seq) { OrganizationalProcess op = new OrganizationalProcess(); int ok = op.SaveLevel1(NewDeptName, Seq); if (ok > 0) { return("1"); } return("-1"); }
public static string SaveLevel3(string SubFunName, string FunID, string Seq) { string Fun = FunID.Replace("L2", ""); OrganizationalProcess DBManop = new OrganizationalProcess(); int ok = DBManop.SaveLevel3(SubFunName, Fun, Seq); if (ok > 0) { return("1"); } return("-1"); }
public static string UpdateLevel2(string FunName, string ID, string Seq) { string Function = ID.Replace("L2", ""); OrganizationalProcess DBManop = new OrganizationalProcess(); int ok = DBManop.UpdateLevel2(FunName, Function, Seq); if (ok > 0) { return("1"); } return("-1"); }
public static string SaveLevel2(string FunName, string DepartmentID, string Seq) { string dept = DepartmentID.Replace("L1", ""); OrganizationalProcess DBManop = new OrganizationalProcess(); int ok = DBManop.SaveLevel2(FunName, dept, Seq); if (ok > 0) { return("1"); } return("-1"); }
public static string UpdateLevel1(string NewDeptName, string ID, string Seq) { ID = ID.Replace("L1", ""); OrganizationalProcess op = new OrganizationalProcess(); int ok = op.UpdateLevel1(NewDeptName, ID, Seq); if (ok > 0) { return("1"); } return("-1"); }
public static string UpdateLevel4(string Activity, string ActivityID, string Seq) { string Activity_ID = ActivityID.Replace("L4", ""); OrganizationalProcess DBManop = new OrganizationalProcess(); int ok = DBManop.UpdateLevel4(Activity, Activity_ID, Seq); if (ok > 0) { return("1"); } return("-1"); }
public static string SaveLevel4(string Activity, string sFunID, string Seq) { string sFunId = sFunID.Replace("L3", ""); OrganizationalProcess DBManop = new OrganizationalProcess(); int ok = DBManop.SaveLevel4(Activity, sFunId, Seq); if (ok > 0) { return("1"); } return("-1"); }