示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
        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);
        }