public string GetEmpName(int aiEmpRefID) { string sEmpName = ""; //using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Suppress)) //{ Dac_ctl_ctl2100_Role dac = new Dac_ctl_ctl2100_Role(); sEmpName = dac.GetEmpName(aiEmpRefID); // scope.Complete(); //} return(sEmpName); }
public int AddRoleInfo(int aiEmpRefID, int aiRoleRefID) { int iRet = 0; //using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Suppress)) //{ Dac_ctl_ctl2100_Role dac = new Dac_ctl_ctl2100_Role(); iRet = dac.AddRoleInfo(aiEmpRefID, aiRoleRefID); // scope.Complete(); //} return(iRet); }
public DataSet GetRoleInfo(int aiEmpRefID) { DataSet lDS = new DataSet(); //using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Suppress)) //{ Dac_ctl_ctl2100_Role dac = new Dac_ctl_ctl2100_Role(); lDS = dac.GetRoleInfo(aiEmpRefID); // scope.Complete(); //} return(lDS); }
public int DelRoleInfo(string[,] saPKs) { int iRet = 0; //using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Suppress)) //{ Dac_ctl_ctl2100_Role dac = new Dac_ctl_ctl2100_Role(); for (int i = 0; i <= saPKs.GetUpperBound(0); i++) { iRet += DelRoleInfo(Convert.ToInt32(saPKs[i, 0]), Convert.ToInt32(saPKs[i, 1])); } // scope.Complete(); //} return(iRet); }