public void display_for_detail(BCTKUS.US_RPT_TONG_TIEN_DINH_MUC ip_us, DateTime ip_from_date, DateTime ip_to_date) { decimal don_gia_dinh_muc = 0; decimal so_luong_thong_ke = 0; decimal id_co_so_dinh_muc = -1; DateTime ap_dung_tu_ngay = new DateTime(); string ten_co_so_dinh_muc = ""; m_lbl_ten_trung_tam.Text = ip_us.strTEN_PHONG_BAN + " (" + ip_us.strMA_PHONG_BAN + ")"; //m_lbl.Text = "Tổng tiền định mức " + ip_us.strTEN_NGAN +" tháng " + ip_from_date.Month + "/" + ip_from_date.Year; ip_us.get_don_gia_dinh_muc_and_so_luong_thong_ke(ip_us.dcID_PHONG_BAN, ip_us.dcID_LOAI_DINH_MUC , ip_from_date, ip_to_date , ref don_gia_dinh_muc, ref so_luong_thong_ke); m_lbl_don_gia.Text = CIPConvert.ToStr(don_gia_dinh_muc, "#,###") + " (VNĐ)"; //m_lbl_ngay_ap_dung.Text = so_luong_thong_ke + " (người)"; m_lbl_sltk.Text = so_luong_thong_ke + " (người)"; m_lbl_tong_tien.Text = CIPConvert.ToStr(don_gia_dinh_muc * so_luong_thong_ke, "#,###") + " (VNĐ)"; if(don_gia_dinh_muc*so_luong_thong_ke == 0) { m_lbl_tong_tien.Text = "0" + " (VNĐ)"; } ip_us.get_co_so_dinh_muc_ap_dung_tu_ngay(ip_us.dcID_PHONG_BAN, ip_us.dcID_LOAI_DINH_MUC , ip_from_date, ip_to_date , ref id_co_so_dinh_muc, ref ap_dung_tu_ngay , ref ten_co_so_dinh_muc); m_lbl_co_so_dinh_muc.Text = ten_co_so_dinh_muc; if(ap_dung_tu_ngay.ToShortDateString() != "01/01/0001") { m_lbl_ngay_ap_dung.Text = ap_dung_tu_ngay.ToShortDateString(); } this.ShowDialog(); }
public void display_for_update(BCTKUS.US_V_GD_PHONG_BAN_DINH_MUC ip_v_m_us) { m_e = DataEntryFormMode.UpdateDataState; m_us_v_gd_pbdm = ip_v_m_us; m_us_obj_to_form(); m_id = ip_v_m_us.dcID; this.ShowDialog(); }
public void display(BCTKUS.US_V_DM_PHONG_BAN_PHAP_NHAN ip_v_m_us) { m_e = DataEntryFormMode.UpdateDataState; m_us_v = ip_v_m_us; m_us_obj_to_form(); m_id = ip_v_m_us.dcID; m_cbo_phap_nhan.Enabled = true; this.ShowDialog(); }