Esempio n. 1
0
 public static bool UpdateMaterialType(ATTMaterialType objMT, Previlege pobj)
 {
     try
     {
         DLLMaterialType.UpdateMaterialType(objMT, pobj);
         return(true);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 2
0
        public static List <ATTMaterialType> GetMaterialType()
        {
            List <ATTMaterialType> MaterialTypeLST = new List <ATTMaterialType>();

            foreach (DataRow row in DLLMaterialType.GetMaterialTypeTable().Rows)
            {
                ATTMaterialType MT = new ATTMaterialType(int.Parse(row["MT_ID"].ToString()),
                                                         row["MT_NAME"].ToString(),
                                                         "empty",
                                                         row["DESCRIPTION"].ToString()
                                                         );
                MaterialTypeLST.Add(MT);
            }

            return(MaterialTypeLST);
        }