Пример #1
0
        public static string AutoMaCTBCT()
        {
            string id = ChiTietBaoCaoTonDAL.GetLastID().Trim();

            if (id == "")
            {
                return("G20_CTBCT_00001");
            }
            int nextID = int.Parse(id.Remove(0, "G20_CTBCT_".Length)) + 1;

            id = "0000" + nextID.ToString();
            id = id.Substring(id.Length - 5, 5);
            return("G20_CTBCT_" + id);
        }
Пример #2
0
 public static void capNhatPhatSinh(ChiTietBaoCaoTon chitiet)
 {
     ChiTietBaoCaoTonDAL.CapNhatPhatSinh(chitiet);
 }
Пример #3
0
 public static void themChiTietBaoCao(ChiTietBaoCaoTon chitiet)
 {
     ChiTietBaoCaoTonDAL.themChiTietBCT(chitiet);
 }
Пример #4
0
 public static void capNhatTonCuoi(ChiTietBaoCaoTon chitiet)
 {
     ChiTietBaoCaoTonDAL.CapNhatTonCuoi(chitiet);
 }
Пример #5
0
 public static string getMaCTBCT(string maBCT, string tenPhuTung)
 {
     return(ChiTietBaoCaoTonDAL.getMaChiTietBCT(maBCT, tenPhuTung));
 }