BKI_DichVuMatDat.US.US_GD_HOP_DONG.LayMaMucLNSCuaHopDong C# (CSharp) Method

LayMaMucLNSCuaHopDong() public method

public LayMaMucLNSCuaHopDong ( decimal ip_dc_id_hop_dong_con_hieu_luc, decimal &op_dc_he_so, string &op_str_ma, string &op_str_muc ) : void
ip_dc_id_hop_dong_con_hieu_luc decimal
op_dc_he_so decimal
op_str_ma string
op_str_muc string
return void
        public void LayMaMucLNSCuaHopDong(decimal ip_dc_id_hop_dong_con_hieu_luc, out decimal op_dc_he_so, out string op_str_ma, out string op_str_muc)
        {
            CStoredProc v_sp = new CStoredProc("pr_HD_ma_muc_lns_Get");
            v_sp.addDecimalInputParam("@ip_dc_id_hop_dong_con_hieu_luc", @ip_dc_id_hop_dong_con_hieu_luc);

            SqlParameter v_p_he_so = v_sp.addDecimalOutputParam("@op_dc_he_so", (decimal)1.123);
            v_p_he_so.Precision = 6;
            v_p_he_so.Scale = 2;
            SqlParameter v_p_muc = v_sp.addNVarcharOutputParam("@op_str_muc_lns", "");
            SqlParameter v_p_ma = v_sp.addNVarcharOutputParam("@op_str_ma_lns", "");

            v_sp.ExecuteCommand(this);
            op_dc_he_so = Convert.ToDecimal(v_p_he_so.Value);
            op_str_ma = v_p_ma.Value.ToString();
            op_str_muc = v_p_muc.Value.ToString();
        }

Usage Example

 //Fill Data TO Control
 private void fill_data_to_control_insert_lns()
 {
     US_GD_HOP_DONG v_us_hd = new US_GD_HOP_DONG();
     decimal op_he_so = 0;
     string op_ma = "";
     string op_muc = "";
     v_us_hd.LayMaMucLNSCuaHopDong(Convert.ToDecimal(m_sle_hop_dong.EditValue), out op_he_so, out op_ma, out op_muc);
     m_txt_ma.Text = op_ma;
     m_txt_muc.Text = op_muc;
     m_txt_gia_tri_ma_muc.EditValue = op_he_so;
 }
All Usage Examples Of BKI_DichVuMatDat.US.US_GD_HOP_DONG::LayMaMucLNSCuaHopDong