Пример #1
0
        private void Frm_comRequerimiento_Load(object sender, EventArgs e)
        {
            try
            {
                MenuSistema.Cls_Menus menu = new MenuSistema.Cls_Menus();
                menu.ObtenerPermisos(Id_Perfil, Convert.ToInt32(Tag.ToString()), ref lectura, ref escritura, ref elimina);
                this.OperacionesDelUsuario();

                Clases.Empresa.CargarEmpresas(comboBoxEmpresa);
                this.comboBoxEmpresa.SelectedValue = Clases.Usuario.EmpresaLogeada.EmpresaIngresada.ToString();

                // cargo en una coleccion los productos por unica vez
                BLL.Procedures.H_ARTICULOSDEPOSITO _art = new BLL.Procedures.H_ARTICULOSDEPOSITO();
                _articulosItem = _art.ItemList();    //le paso la colección de artículos

                CargarRubros();
                CargarSubRubros();
                CargarLugaresEntrega(Clases.Usuario.EmpresaLogeada.EmpresaIngresada);
                TraerMarcasArticulos();

                //calendar
                CalendarColumn col = new CalendarColumn();

                this.dataGridViewReq.Columns.Add(col);
                this.dataGridViewReq.Columns[(int)Col_Detalle.FENTREGA].HeaderText = "Fecha Necesidad";
                this.dataGridViewReq.Columns[(int)Col_Detalle.FENTREGA].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;

                //calendar
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Пример #2
0
        private void Frm_ModificacionRequerimiento_Load(object sender, EventArgs e)
        {
            //PERMISOS
            MenuSistema.Cls_Menus menu = new MenuSistema.Cls_Menus();
            menu.ObtenerPermisos(Id_Perfil, Convert.ToInt32(Tag.ToString()), ref lectura, ref escritura, ref elimina);
            this.OperacionesDelUsuario();
            this.Text = "Modificación de Requerimientos de la empresa: ";
            //FIN PERMISOS


            //calendar
            CalendarColumn col = new CalendarColumn();

            this.dataGridViewReqItems.Columns.Add(col);
            this.dataGridViewReqItems.Columns[(int)Col_ReqItem.FENTREGA].HeaderText = "Fecha Entrega";
            this.dataGridViewReqItems.Columns[(int)Col_ReqItem.FENTREGA].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.dataGridViewReqItems.AutoGenerateColumns = false;


            // cargo en una coleccion los productos por unica vez
            BLL.Procedures.H_ARTICULOSDEPOSITO _art = new BLL.Procedures.H_ARTICULOSDEPOSITO();
            _articulosItem = _art.ItemList();//le paso la colección de artículos

            this.CargarLugaresEntrega(Clases.Usuario.EmpresaLogeada.EmpresaIngresada.ToString());

            TraeItemsPendientes();
        }
        private void CargarProductosBejerman()
        {
            try
            {
                BLL.Procedures.H_ARTICULOSDEPOSITO      _prod          = new BLL.Procedures.H_ARTICULOSDEPOSITO();
                Entities.Procedures.H_ARTICULOSDEPOSITO _itemSeleccion = new Entities.Procedures.H_ARTICULOSDEPOSITO();


                //Limpia el combo

                this.comboBoxProductos.SuspendLayout();
                this.comboBoxProductos.DataSource = null;
                this.comboBoxProductos.Items.Clear();



                //Carga el item de Seleccion
                _itemSeleccion.art_descgen = "<Seleccione un Artículo>";
                _itemSeleccion.art_codgen  = "0";

                _ItemsArticulos = _prod.ItemList(); //Carga la lista para llenar el combo;
                _ItemsArticulos.Insert(0, _itemSeleccion);

                //Carga el combo
                this.comboBoxProductos.DisplayMember = BLL.Procedures.H_ARTICULOSDEPOSITO.ColumnNames.ART_DESCGEN;
                this.comboBoxProductos.ValueMember   = BLL.Procedures.H_ARTICULOSDEPOSITO.ColumnNames.ART_CODGEN;
                this.comboBoxProductos.DataSource    = _ItemsArticulos;

                this.comboBoxProductos.ResumeLayout();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Пример #4
0
        private void Frm_IngresoStock_Load(object sender, EventArgs e)
        {
            try
            {
                MenuSistema.Cls_Menus menu = new MenuSistema.Cls_Menus();
                menu.ObtenerPermisos(Id_Perfil, Convert.ToInt32(Tag.ToString()), ref lectura, ref escritura, ref elimina);
                this.OperacionesDelUsuario();

                // cargo en una coleccion los productos por unica vez
                BLL.Procedures.H_ARTICULOSDEPOSITO _art = new BLL.Procedures.H_ARTICULOSDEPOSITO();
                _articulosItem = _art.ItemList();    //le paso la colección de artículos

                //también cargo los rubros por única vez
                BLL.Procedures.RUBROARTICULOS _rubro = new BLL.Procedures.RUBROARTICULOS();
                _rubrositem = _rubro.ItemList();    //le paso la colección de rubros

                //carga los depósitos
                CargarDepositos();

                //CREO LA COLUMNA DE TIPO BUTTON
                DataGridViewDisableButtonColumn column = new DataGridViewDisableButtonColumn();
                column.Name         = "Fvto";
                column.HeaderText   = "Fecha Vtos.";
                column.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;

                dataGridViewDetalleIngStock.Columns.Insert((int)Col_Detalle.VTOS, column);

                //FIN CREAR COLUMNA
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Пример #5
0
        private void Frm_comRequerimientoInterno_Load(object sender, EventArgs e)
        {
            try
            {
                MenuSistema.Cls_Menus menu = new MenuSistema.Cls_Menus();
                menu.ObtenerPermisos(Id_Perfil, Convert.ToInt32(Tag.ToString()), ref lectura, ref escritura, ref elimina);
                this.OperacionesDelUsuario();



                // cargo en una coleccion los productos por unica vez
                BLL.Procedures.H_ARTICULOSDEPOSITO _art = new BLL.Procedures.H_ARTICULOSDEPOSITO();
                _articulosItem = _art.ItemList();    //le paso la colección de artículos

                CargarRubros();
                CargarSubRubros();


                CargarDepositosDestino();
                CargarDepositosOrigen();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Пример #6
0
 private void CargarArticulos()
 {
     try
     {
         BLL.Procedures.H_ARTICULOSDEPOSITO _art = new BLL.Procedures.H_ARTICULOSDEPOSITO();
         _articulosItem = _art.Items();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
        private void Frm_HistoricoPrecios_Load(object sender, EventArgs e)
        {
            MenuSistema.Cls_Menus menu = new MenuSistema.Cls_Menus();
            menu.ObtenerPermisos(Id_Perfil, Convert.ToInt32(Tag.ToString()), ref lectura, ref escritura, ref elimina);
            this.OperacionesDelUsuario();

            // cargo en una coleccion los productos por unica vez
            BLL.Procedures.H_ARTICULOSDEPOSITO _art = new BLL.Procedures.H_ARTICULOSDEPOSITO();
            _articulosItem = _art.ItemList();    //le paso la colección de artículos

            //cargo los rubros
            CargarRubros();
        }
        private void Frm_ModificacionRequerimientoInterno_Load(object sender, EventArgs e)
        {
            //PERMISOS
            MenuSistema.Cls_Menus menu = new MenuSistema.Cls_Menus();
            menu.ObtenerPermisos(Id_Perfil, Convert.ToInt32(Tag.ToString()), ref lectura, ref escritura, ref elimina);
            this.OperacionesDelUsuario();
            this.Text = "Modificación de Requerimientos Internos de la empresa: ";
            //FIN PERMISOS


            // cargo en una coleccion los productos por unica vez
            BLL.Procedures.H_ARTICULOSDEPOSITO _art = new BLL.Procedures.H_ARTICULOSDEPOSITO();
            _articulosItem = _art.ItemList();//le paso la colección de artículos

            CargarDepositosDestino();
            CargarDepositosOrigen();

            TraeItemsPendientes();
        }
Пример #9
0
        private void CargarProductos()
        {
            try
            {
                BLL.Procedures.H_ARTICULOSDEPOSITO      _prod          = new BLL.Procedures.H_ARTICULOSDEPOSITO();
                Entities.Procedures.H_ARTICULOSDEPOSITO _itemSeleccion = new Entities.Procedures.H_ARTICULOSDEPOSITO();

                _ItemsArtDep = _prod.ItemList();

                var q = (dynamic)null;

                q = (from item in _ItemsArtDep
                     where item.subrubro.Contains("DE") || item.subrubro.Contains("DM") ||
                     item.subrubro.Contains("DMP") || item.subrubro.Contains("DRH") ||
                     item.subrubro.Contains("MEDI")
                     select item).ToList <Entities.Procedures.H_ARTICULOSDEPOSITO>();


                //Limpia el combo
                this.comboBoxProductos.SuspendLayout();
                this.comboBoxProductos.DataSource = null;
                this.comboBoxProductos.Items.Clear();


                //Carga el item de Seleccion
                _itemSeleccion.art_descgen = "<Seleccione un Artículo>";
                _itemSeleccion.art_codgen  = "0";

                //_ItemsArtDep = _prod.ItemList();
                q.Insert(0, _itemSeleccion);
                //Carga el combo
                this.comboBoxProductos.DisplayMember = BLL.Procedures.H_ARTICULOSDEPOSITO.ColumnNames.ART_DESCGEN;
                this.comboBoxProductos.ValueMember   = BLL.Procedures.H_ARTICULOSDEPOSITO.ColumnNames.ART_CODGEN;
                this.comboBoxProductos.DataSource    = q;

                this.comboBoxProductos.ResumeLayout();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }