public void setCab(com_ListadoDiseno_Info InfoLisMat) { prd_OrdenTaller_Info InfoOT = new prd_OrdenTaller_Info(); try { // LLENAR LOS COMBOS DE LOS DATOS DE LA ORDEN InfoLDiseno = InfoLisMat; ucGe_Sucursal_combo1.set_SucursalInfo(InfoLisMat.IdSucursal); Obra.set_item(InfoLisMat.CodObra); dtpFechareg.Value = InfoLisMat.FechaReg; cmbListadoDisenoTipo.EditValue = InfoLisMat.tipo_listado; InfoOT = BUSOT.ObtenerUnaOT(param.IdEmpresa, InfoLisMat.IdSucursal, InfoLisMat.IdOrdenTaller, InfoLisMat.CodObra); txtUsuario.Text = InfoLisMat.Usuario; txtObservacion.Text = InfoLisMat.lm_Observacion; if (InfoLisMat.Estado == "I") { lblAnulado.Visible = true; set_Accion(Cl_Enumeradores.eTipo_action.consultar); } cargagrid(InfoLisMat); } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.Message); } }
public void setCab(com_ListadoMaterialesDisponibles_Info InfoLisMat) { prd_OrdenTaller_Info InfoOT = new prd_OrdenTaller_Info(); try { // LLENAR LOS COMBOS DE LOS DATOS DE LA ORDEN InfoLMat = InfoLisMat; ucGe_Sucursal_combo1.set_SucursalInfo(InfoLisMat.IdSucursal); Obra.set_item(InfoLisMat.CodObra); dtpFechareg.Value = InfoLisMat.FechaReg; txtIdLMat.Text = Convert.ToString(InfoLisMat.IdListadoMaterialesDisponibles); //dTPFecRegOT.Value = InfoOT.FechaReg; txtUsuario.Text = InfoLisMat.Usuario; txtObservacion.Text = InfoLisMat.lm_Observacion; //txtIdOT.Text =Convert.ToString( InfoOT.IdOrdenTaller); if (InfoLisMat.Estado == "I") { lblAnulado.Visible = true; set_Accion(Cl_Enumeradores.eTipo_action.consultar); } cargagrid(InfoLisMat); } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.Message); } }
public void setCab(com_ListadoMateriales_Info InfoLisMat) { prd_OrdenTaller_Info InfoOT = new prd_OrdenTaller_Info(); try { // LLENAR LOS COMBOS DE LOS DATOS DE LA ORDEN InfoLMat = InfoLisMat; ucGe_Sucursal_combo1.set_SucursalInfo(InfoLisMat.IdSucursal); Obra.set_item(InfoLisMat.CodObra); dtpFechareg.Value = InfoLisMat.FechaReg; //UltraCmbOrdenTaller.EditValue = InfoLisMat.IdOrdenTaller; //InfoOT = BUSOT.ObtenerUnaOT(param.IdEmpresa, InfoLisMat.IdSucursal, InfoLisMat.IdOrdenTaller, InfoLisMat.CodObra); //txtCodOT.Text = InfoOT.Codigo; //txtProdTerm.Text = "[" + InfoOT.IdProducto + "][" + InfoOT.NomProducto + "]"; //txtPesoUnit.Text = Convert.ToString(InfoOT.PesoUnitario); //txtUnit.Text = Convert.ToString(InfoOT.CantidadPieza); //txtTtPeso.Text = Convert.ToString(InfoOT.TotalPeso); txtIdLMat.Text = Convert.ToString(InfoLisMat.IdListadoMateriales); //dTPFecRegOT.Value = InfoOT.FechaReg; txtUsuario.Text = InfoLisMat.Usuario; txtObservacion.Text = InfoLisMat.lm_Observacion; //txtIdOT.Text =Convert.ToString( InfoOT.IdOrdenTaller); if (InfoLisMat.Estado == "I") { lblAnulado.Visible = true; set_Accion(Cl_Enumeradores.eTipo_action.consultar); } cargagrid(InfoLisMat); } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.Message); } }