コード例 #1
0
        private void VWINV_002_Rpt_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            lbl_fecha.Text   = DateTime.Now.ToString("dd/MM/yyyy hh:mm:ss");
            lbl_empresa.Text = empresa;
            lbl_usuario.Text = usuario;
            int     IdEmpresa         = p_IdEmpresa.Value == null ? 0 : Convert.ToInt32(p_IdEmpresa.Value);
            int     IdSucursal        = p_IdSucursal.Value == null ? 0 : Convert.ToInt32(p_IdSucursal.Value);
            int     IdMovi_inven_tipo = p_IdMovi_inven_tipo.Value == null ? 0 : Convert.ToInt32(p_IdMovi_inven_tipo.Value);
            decimal IdNumMovi         = p_IdNumMovi.Value == null ? 0 : Convert.ToDecimal(p_IdNumMovi.Value);

            INV_002_Bus bus_rpt = new INV_002_Bus();

            lst_rpt         = bus_rpt.get_list(IdEmpresa, IdSucursal, IdMovi_inven_tipo, IdNumMovi);
            this.DataSource = lst_rpt;

            tb_empresa_Bus bus_empresa = new tb_empresa_Bus();
            var            emp         = bus_empresa.get_info(IdEmpresa);

            lbl_empresa.Text = emp.em_nombre;

            if (emp != null && emp.em_logo != null)
            {
                ImageConverter obj = new ImageConverter();
                logo.Image = (Image)obj.ConvertFrom(emp.em_logo);
            }
        }
コード例 #2
0
ファイル: INV_002_Rpt.cs プロジェクト: newlifes01/ERPWEB
        private void VWINV_002_Rpt_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            lbl_fecha.Text   = DateTime.Now.ToString("dd/MM/yyyy hh:mm:ss");
            lbl_empresa.Text = empresa;
            lbl_usuario.Text = usuario;
            int     IdEmpresa         = p_IdEmpresa.Value == null ? 0 : Convert.ToInt32(p_IdEmpresa.Value);
            int     IdSucursal        = p_IdSucursal.Value == null ? 0 : Convert.ToInt32(p_IdSucursal.Value);
            int     IdMovi_inven_tipo = p_IdMovi_inven_tipo.Value == null ? 0 : Convert.ToInt32(p_IdMovi_inven_tipo.Value);
            decimal IdNumMovi         = p_IdNumMovi.Value == null ? 0 : Convert.ToDecimal(p_IdNumMovi.Value);

            INV_002_Bus         bus_rpt = new INV_002_Bus();
            List <INV_002_Info> lst_rpt = bus_rpt.get_list(IdEmpresa, IdSucursal, IdMovi_inven_tipo, IdNumMovi);

            this.DataSource = lst_rpt;
        }