コード例 #1
0
 private void Load_Data()
 {
     try
     {
         grcKhachHangBaoTruoc.DataSource = Util.ConvertToDataTable(DAL_QLCustomer.Get_List_Customer(Variable.orderByCreatedAt));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #2
0
        private void uc_Add_Customer_Load(object sender, EventArgs e)
        {
            SetDataCbbCategory();
            List <Model.Friend> lst_friend = new List <Model.Friend>();

            grcAddFriend.DataSource = Util.ConvertToDataTable(lst_friend);
        }
コード例 #3
0
        private void uc_thongkedoanhthu_Load(object sender, EventArgs e)
        {
            SplashScreenManager.ShowDefaultWaitForm();
            Load_Data();
            SplashScreenManager.CloseDefaultWaitForm();
            SetDataCbbYear();
            List <Model.Statistic> statistic = DAL_Thongke.Get_List_Customer_By_Month();

            grcStatistic.DataSource = Util.ConvertToDataTable(statistic);
        }
コード例 #4
0
 private void Load_Data()
 {
     try
     {
         grcUser.DataSource = Util.ConvertToDataTable(Dal_User.Get_List_User());
     }
     catch (Exception ex)
     {
         Util.Show_Message_Error(Message.msg_error, ex.Message.ToString());
     }
 }
コード例 #5
0
 private void Load_Data()
 {
     try
     {
         grcHistoryPaid.DataSource = Util.ConvertToDataTable(DAL_Lichsutratien.Get_List_History_Paid());
     }
     catch (Exception ex)
     {
         Util.Show_Message_Error(Message.msg_error, ex.Message.ToString());
     }
 }
コード例 #6
0
ファイル: uc_Category.cs プロジェクト: phamngochai123/QLKH
 private void Load_Data()
 {
     try
     {
         grcCategory.DataSource = Util.ConvertToDataTable(DAL_QLCategory.Get_List_Category());
     }
     catch (Exception ex)
     {
         Util.Show_Message_Error(Message.msg_error, ex.Message.ToString());
     }
 }
コード例 #7
0
ファイル: ucQLLaiSuat.cs プロジェクト: phamngochai123/QLKH_V2
 private void Load_Data()
 {
     try
     {
         grcLaiSuat.DataSource = Util.ConvertToDataTable(DAL_QLLaiSuat.Get_List_InterestRate());
     }
     catch (Exception ex)
     {
         Util.Show_Message_Error(Message.msg_error, ex.Message.ToString());
     }
 }
コード例 #8
0
 private void uc_Lichsuthanhtoan_Load(object sender, EventArgs e)
 {
     try
     {
         grcLichsu.DataSource = Util.ConvertToDataTable(DAL_LichSuTraTien.Get_List_History_Paid(idCustomer));
     }
     catch (Exception)
     {
         Util.Show_Message_Notification(Message.msg_notification, "Không thể kết nối đến cơ sở dữ liệu !!!");
     }
 }
コード例 #9
0
 private void uc_List_Friend_Load(object sender, EventArgs e)
 {
     try
     {
         List <Model.Friend> lst_friend = DAL_QLCustomer.get_list_friend(idCustomer);
         grcFriend.DataSource = Util.ConvertToDataTable(lst_friend);
     }
     catch (Exception)
     {
         Util.Show_Message_Notification(Message.msg_notification, "Không thể kết nối đến cơ sở dữ liệu !!!");
     }
 }
コード例 #10
0
 private void Load_Data()
 {
     try
     {
         txt_total_customer.Text         = Util.formatMoney(DAL_Thongke.Get_Total_Customer());
         txt_total_money.Text            = Util.formatMoney(Convert.ToInt32(DAL_Thongke.Get_Total_Money()));
         txt_tien_thu.Text               = Util.formatMoney(Convert.ToInt32(DAL_Thongke.Get_Total_Money_Paid("0") + DAL_Thongke.Get_Total_Money_Paid("1")));
         grcDanhSachKhachHang.DataSource = Util.ConvertToDataTable(DAL_QLCustomer.Get_List_Customer(Variable.orderByCreatedAt));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #11
0
 private void Load_Data()
 {
     try
     {
         int no = 0;
         var lst_customer_no = DAL_QLCustomer.Get_List_Customer(Variable.orderByAfterDate);
         foreach (var item in lst_customer_no)
         {
             no += Convert.ToInt32(DAL_LichSuTraTien.Get_Tien_Lai(item.id));
         }
         txt_money_day.Text      = Util.formatMoney(no);
         txt_tien_thu_day.Text   = Util.formatMoney(Convert.ToInt32(DAL_Thongke.Get_Money_Thu_Day()));
         grcKhachHang.DataSource = Util.ConvertToDataTable(DAL_QLCustomer.Get_List_Customer(Variable.orderByAfterDate));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }