Exemplo n.º 1
0
        public static List <ATTDesignation> GetDesignation(int?DesgId, string desType)
        {
            List <ATTDesignation> LstDesg = new List <ATTDesignation>();

            try
            {
                foreach (DataRow row in DLLDesignation.GetDesignation(DesgId, desType).Rows)
                {
                    ATTDesignation ObjAtt = new ATTDesignation
                                            (
                        int.Parse(row["DES_ID"].ToString()),
                        row["DES_NAME"].ToString(),
                        row["DES_TYPE"].ToString(),
                        int.Parse(row["SERVICE_PERIOD"].ToString()),
                        int.Parse(row["AGE_LIMIT"].ToString())
                                            );
                    LstDesg.Add(ObjAtt);
                }
                return(LstDesg);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 2
0
 public static bool DeleteDesignation(int DesgID)
 {
     try
     {
         return(DLLDesignation.DeleteDesignation(DesgID));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 3
0
 public static bool SaveDesignation(ATTDesignation ObjAtt)
 {
     try
     {
         return(DLLDesignation.SaveDesignation(ObjAtt));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }