/// <summary> /// inicializa un nuevo registro de recepción a partir de otro /// </summary> /// <param name="pRecep_sample"></param> public FormReception(CRecep_sample pRecep_sample, LoadData generic) { InitializeComponent(); oRecep_sample = pRecep_sample; loadData = generic; // --- crear a un nuevo registro de recepción if (loadData == LoadData.FromRR_ToExtendRR) FlagRegRecepCopy = true; typeModuleOpen = typeModule.RegisterReception; Init(); Recuperar_Registro(); ChangeStatusControls(); statusRegReception = StatusRegRecep.reg_recep_saved; }
void OpenFormMasterSearch(typeModule tm) { if (tm == typeModule.RegisterReception) { ///attributes short? p_year = null; short? p_idcompany = null; DateTime? p_date_begin = null; DateTime? p_date_end = null; FormMasterSearch fmBusqueda = new FormMasterSearch(); fmBusqueda.BindGrid(new ModMasterSearch().GetRegReception(p_year, p_idcompany, p_date_begin, p_date_end)); fmBusqueda.ShowDialog(); Dictionary<string, string> keys = fmBusqueda.getKeyValues(); if (keys != null) { ///get recep sample oRecep_sample = faRecep_sample.GetByPrimaryKey(new CRecep_sampleKeys(Convert.ToInt64(keys["Idrecep_sample"]))); oPrice_version = faPrice_version.GetByPrimaryKey(new CPrice_versionKeys(Convert.ToInt32(keys["Idprice_version"]))); Limpiar_Campos(); Recuperar_Registro(); thePanelTab1.SelectedIndex = 0; statusRegReception = StatusRegRecep.reg_recep_saved; } } }
void InitMod(typeModule p_typeModule) { typeModuleOpen = p_typeModule; // Se apertura el módulo para registrar el ingreso de muestras if (typeModuleOpen == typeModule.RegisterReception) { ucTitleRegisterRecep.Title = "Registro de Recepción"; ucTitleRegisterRecep.SetColor(UcTitle.ColorTitle.BlueSky); paCodRegisterRecep.Visible = true; } }
/// <summary> /// inicializa el módulo según el argumento (recepción ó cotización), desde la lista de módulos /// </summary> /// <param name="p_typeModule"></param> public FormReception(typeModule p_typeModule) { InitializeComponent(); loadData = LoadData.Nothing; typeModuleOpen = p_typeModule; Init(); ChangeStatusControls(); }
private void cbTypeSample_EditValueChanged(object sender, EventArgs e) { gcReception.EmbeddedNavigator.Enabled = true; // --- filtering the list of methods filteringMethods(); Show_exist_files(); if (cbTypeSample.EditValue.ToString() == "AG") typeModuleOpen = typeModule.ReceptionAguas; else typeModuleOpen = typeModule.RegisterReception; InitAppareance(); }