示例#1
0
        private void frmOffice_Load(object sender, EventArgs e)
        {
            OperationResult objOperationResult = new OperationResult();

            Utils.LoadDropDownList(cbOficina, "Value1", "Id", BLL.Utils.GetDataHierarchyForCombo(ref objOperationResult, 116, null), DropDownListAction.Select);

            using (new LoadingClass.PleaseWait(this.Location, "Cargando..."))
            {
                _customizedToolTip = new Sigesoft.Node.WinClient.UI.Utils.CustomizedToolTip(grdDataServiceComponent);
                btnRefresh_Click(sender, e);
            }
        }
示例#2
0
        private void frmCalendar_Load(object sender, EventArgs e)
        {
            #region FormActions

            _formActions = Sigesoft.Node.WinClient.BLL.Utils.SetFormActionsInSession("frmCalendar",
                                                                                     Globals.ClientSession.i_CurrentExecutionNodeId,
                                                                                     Globals.ClientSession.i_RoleId.Value,
                                                                                     Globals.ClientSession.i_SystemUserId);

            _sendEmailEnabled = Sigesoft.Node.WinClient.BLL.Utils.IsActionEnabled("frmCalendar_SENDEMAIL", _formActions);

            #endregion

            _customizedToolTip = new Sigesoft.Node.WinClient.UI.Utils.CustomizedToolTip(grdDataServiceComponent);

            OperationResult objOperationResult = new OperationResult();

            Utils.LoadDropDownList(ddlServiceTypeId, "Value1", "Id", BLL.Utils.GetServiceType(ref objOperationResult, Globals.ClientSession.i_CurrentExecutionNodeId), DropDownListAction.All);
            Utils.LoadDropDownList(ddlMasterServiceId, "Value1", "Id", BLL.Utils.GetMasterService(ref objOperationResult, -1, Globals.ClientSession.i_CurrentExecutionNodeId), DropDownListAction.All);
            Utils.LoadDropDownList(ddlVipId, "Value1", "Id", BLL.Utils.GetSystemParameterForCombo(ref objOperationResult, 111, null), DropDownListAction.All);
            Utils.LoadDropDownList(ddlNewContinuationId, "Value1", "Id", BLL.Utils.GetSystemParameterForCombo(ref objOperationResult, 121, null), DropDownListAction.All);
            Utils.LoadDropDownList(ddlLineStatusId, "Value1", "Id", BLL.Utils.GetSystemParameterForCombo(ref objOperationResult, 120, null), DropDownListAction.All);
            Utils.LoadDropDownList(ddlCalendarStatusId, "Value1", "Id", BLL.Utils.GetSystemParameterForCombo(ref objOperationResult, 122, null), DropDownListAction.All);
            int nodeId = int.Parse(Common.Utils.GetApplicationConfigValue("NodeId"));
            var dataListOrganization1 = BLL.Utils.GetJoinOrganizationAndLocation(ref objOperationResult, nodeId);
            Utils.LoadDropDownList(cbCustomerOrganization,
                                   "Value1",
                                   "Id",
                                   dataListOrganization1,
                                   DropDownListAction.All);
            dtpDateTimeStar.CustomFormat = "dd/MM/yyyy";
            dptDateTimeEnd.CustomFormat  = "dd/MM/yyyy";
            // Establecer el filtro inicial para los datos
            strFilterExpression = null;
            btnFilter_Click(sender, e);
        }