public void display_for_update(US_V_GD_THONG_KE ip_us_v) { m_e_form_mode = DataEntryFormMode.UpdateDataState; us_obj_2_form(ip_us_v); m_cbo_co_so_dm.Enabled = false; this.ShowDialog(); }
public void display_for_update(US_V_GD_THONG_KE ip_us_v) { m_e_form_mode = DataEntryFormMode.UpdateDataState; us_obj_2_form(ip_us_v); this.ShowDialog(); }
private void us_obj_2_form(US_V_GD_THONG_KE ip_us_v) { m_us_tk.dcID = ip_us_v.dcID; m_cbo_trung_tam.SelectedValue = ip_us_v.dcID_DM_CO_SO; m_cbo_co_so_dm.SelectedValue = ip_us_v.dcID_CO_SO_DINH_MUC; m_txt_ten_thong_ke.Text = ip_us_v.strTEN_THONG_KE; m_txt_so_luong.Text = ip_us_v.dcGIA_TRI_THONG_KE.ToString(); m_dtp_ngay.Value = ip_us_v.datDEN_NGAY.Date; m_txt_ghi_chu.Text = ip_us_v.strGHI_CHU_1; }
private void us_obj_2_form(US_V_GD_THONG_KE ip_us_v) { m_us_tk.dcID = ip_us_v.dcID; m_cbo_truong.SelectedValue = ip_us_v.dcID_DM_CO_SO; m_txt_ten_thong_ke.Text = ip_us_v.strTEN_THONG_KE; m_txt_so_luong.Text = ip_us_v.dcGIA_TRI_THONG_KE.ToString(); m_dtp_ngay.Value = ip_us_v.datDEN_NGAY.Date; m_txt_ghi_chu.Text = ip_us_v.strGHI_CHU_1; if (ip_us_v.dcID_CO_SO_DINH_MUC == CONST_ID_CO_SO_DINH_MUC.DANGHOC_TRUONG || ip_us_v.dcID_CO_SO_DINH_MUC == CONST_ID_CO_SO_DINH_MUC.DANGHOC_ALL) { m_cbo_loai_hv.SelectedIndex = 0; } else m_cbo_loai_hv.SelectedIndex = 1; m_cbo_co_so_dm.SelectedValue = ip_us_v.dcID_CO_SO_DINH_MUC; }
private void set_search_format_before() { if (m_txt_tu_khoa.Text == "") { m_txt_tu_khoa.Text = m_str_goi_y_tim_kiem; m_txt_tu_khoa.ForeColor = Color.Gray;
} private ITransferDataRow get_trans_object(C1.Win.C1FlexGrid.C1FlexGrid i_fg) { Hashtable v_htb = new Hashtable(); v_htb.Add(V_GD_THONG_KE.MA, e_col_Number.MA); v_htb.Add(V_GD_THONG_KE.TEN_CO_SO_DINH_MUC, e_col_Number.TEN_CO_SO_DINH_MUC); v_htb.Add(V_GD_THONG_KE.GHI_CHU_3, e_col_Number.GHI_CHU_3);
private void load_so_luong_nhan_su() { decimal v_tong_dinh_muc; US_V_GD_THONG_KE v_us = new US_V_GD_THONG_KE(); DS_V_GD_THONG_KE v_ds = new DS_V_GD_THONG_KE(); US_DM_CO_SO_DINH_MUC v_us_cs_dm = new US_DM_CO_SO_DINH_MUC(); DS_DM_CO_SO_DINH_MUC v_ds_cs_dm = new DS_DM_CO_SO_DINH_MUC(); v_us.FillDataset(v_ds,CIPConvert.ToDecimal(m_hdf_id_trung_tam.Value)); if (v_ds.Tables[0].Rows.Count > 0) { m_lbl_tong_nhan_su.Text = v_ds.Tables[0].Rows[0]["GIA_TRI_THONG_KE"].ToString() +" ("+ v_ds.Tables[0].Rows[0]["TEN"].ToString() + ")"; v_us_cs_dm.FillDataset(v_ds_cs_dm, "where ID =" + CIPConvert.ToDecimal(v_ds.Tables[0].Rows[0]["ID_CO_SO_DINH_MUC"])); m_lbl_dinh_muc_dau_nguoi.Text = CIPConvert.ToStr(v_ds_cs_dm.Tables[0].Rows[0]["DON_GIA_DINH_MUC"], "#,##0") +" (VNĐ)" + "/" + v_ds.Tables[0].Rows[0]["TEN"].ToString(); v_tong_dinh_muc = (CIPConvert.ToDecimal(v_ds_cs_dm.Tables[0].Rows[0]["DON_GIA_DINH_MUC"])) * (CIPConvert.ToDecimal(v_ds.Tables[0].Rows[0]["GIA_TRI_THONG_KE"])); m_lbl_tong_dinh_muc.Text = v_tong_dinh_muc.ToString("#,##0") + " (VNĐ)"; } else { m_lbl_tong_nhan_su.Text = "?"; m_lbl_dinh_muc_dau_nguoi.Text = "?"; m_lbl_tong_dinh_muc.Text = "?"; } }