private void btnSearchProtocol_Click(object sender, EventArgs e)
        {
            Configuration.frmProtocolManagement frm = new Configuration.frmProtocolManagement("View", int.Parse(ddlServiceTypeId.SelectedValue.ToString()), int.Parse(ddlMasterServiceId.SelectedValue.ToString()));
            frm.ShowDialog();
            _ProtocolId = frm._pstrProtocolId;
            if (_ProtocolId == null)
            {
                return;
            }
            OperationResult objOperationResult = new OperationResult();
            ProtocolBL      _objProtocoltBL    = new ProtocolBL();
            protocolDto     objProtocolDto     = new protocolDto();
            ProtocolList    objProtocol        = new ProtocolList();

            objProtocol = _objProtocoltBL.GetProtocolById(ref objOperationResult, _ProtocolId);

            txtProtocolId.Text                   = objProtocol.v_ProtocolId;
            txtViewProtocol.Text                 = objProtocol.v_Protocol;
            txtViewOrganization.Text             = objProtocol.v_Organization;
            txtViewLocation.Text                 = objProtocol.v_Location;
            txtViewGroupOccupation.Text          = objProtocol.v_GroupOccupation;
            txtViewGes.Text                      = objProtocol.v_Ges;
            txtViewComponentType.Text            = objProtocol.v_EsoType;
            txtViewOccupation.Text               = objProtocol.v_Occupation;
            txtViewIntermediaryOrganization.Text = objProtocol.v_IntermediaryOrganization;
            txtIntermediaryOrganization.Text     = objProtocol.v_OrganizationInvoice;
        }
Beispiel #2
0
        private void btnSearchProtocol_Click(object sender, EventArgs e)
        {
            OperationResult objOperationResult = new OperationResult();
            ProtocolBL      oProtocolBL        = new ProtocolBL();

            //List<ProtocolComponentList> ProtocolComponentList = new List<BE.ProtocolComponentList>();


            Configuration.frmProtocolManagement frm = new Configuration.frmProtocolManagement("View", -1, -1);
            frm.ShowDialog();
            if (frm._pstrProtocolId != null)
            {
                _ProtocolId = frm._pstrProtocolId;
            }

            if (frm.DialogResult == DialogResult.Cancel)
            {
                return;
            }

            if (_ProtocolId == null)
            {
                return;
            }

            ProtocolBL   _objProtocoltBL = new ProtocolBL();
            protocolDto  objProtocolDto  = new protocolDto();
            ProtocolList objProtocol     = new ProtocolList();

            objProtocol = _objProtocoltBL.GetProtocolById(ref objOperationResult, _ProtocolId);

            txtProtocolName.Text = objProtocol.v_Protocol;
            txtOrganitation.Text = objProtocol.v_Organization;
            txtContact.Text      = objProtocol.v_ContacName;
            txtAdress.Text       = objProtocol.v_Address;
            txttypeProtocol.Text = objProtocol.v_EsoType;

            //ProtocolComponentList = oProtocolBL.GetProtocolComponents(ref objOperationResult, _ProtocolId);

            //foreach (var item in ProtocolComponentList)
            //{
            //    CostoTotal += (float)item.r_Price;
            //}

            //grdData.DataSource = ProtocolComponentList;
            //txtTotal.Text = CostoTotal.ToString();
            //Calcular();
            txtNroTrabajadores.Focus();
        }
Beispiel #3
0
        private void btnSearchProtocol_Click(object sender, EventArgs e)
        {
            OperationResult objOperationResult = new OperationResult();

            Configuration.frmProtocolManagement frm = new Configuration.frmProtocolManagement("View", -1, -1);
            frm.ShowDialog();
            _ProtocolId = frm._pstrProtocolId;
            if (_ProtocolId == null)
            {
                return;
            }

            ProtocolBL   _objProtocoltBL = new ProtocolBL();
            protocolDto  objProtocolDto  = new protocolDto();
            ProtocolList objProtocol     = new ProtocolList();

            objProtocol = _objProtocoltBL.GetProtocolById(ref objOperationResult, _ProtocolId);

            txtProtocolName.Text = objProtocol.v_Protocol;

            btnSave.Enabled = (txtProtocolName.TextLength > 0);
        }
 private void administraciónProtocolosToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Configuration.frmProtocolManagement frm = new Configuration.frmProtocolManagement();
     frm.ShowInTaskbar = false;
     frm.ShowDialog(this);
 }