Пример #1
0
        public TemplateEdit()
        {
            InitializeComponent();
            //    Utils.SetTextEditor(this.txtCode);
            v.Add(new ValidateItem(this.txtTemplateName)
            {
                Required = true
            });
            ConfigurationData config = new ConfigurationData();

            this.cboCodeType.DataSource    = config.Get("CodeFileType");
            this.cboCodeType.DisplayMember = "Text";
            this.MaximizeBox = true;
            this.WindowState = FormWindowState.Maximized;
        }
Пример #2
0
        static private async Task <FormerPaymentOrderDTO> GeneratePaymentOrder(IPayable transaction)
        {
            try {
                bool USE_PAYMENT_ORDER_MOCK_SERVICE = ConfigurationData.Get("UsePaymentOrderMockService", false);

                if (USE_PAYMENT_ORDER_MOCK_SERVICE)
                {
                    return(PaymentOrderMockData());
                }

                return(await EPaymentsUseCases.RequestPaymentOrderData(transaction)
                       .ConfigureAwait(false));
            } catch (Exception e) {
                throw new ServiceException("GeneratePaymentOrder.ServiceUnavailable",
                                           "El servicio externo de la Secretaría de Finanzas " +
                                           "que genera las órdenes de pago no está disponible. " +
                                           "Favor de intentar más tarde.", e);
            }
        }
Пример #3
0
        private void ColumnEdit_Load(object sender, EventArgs e)
        {
            this.Table = service.GetTableById(this.TableID);

            colEditorType.DataSource = Enum.GetNames(typeof(WSH.Common.EditorType));

            colDataType.DataSource = Enum.GetNames(typeof(DataType));

            colAlign.DataSource = Enum.GetNames(typeof(WSH.Common.AlignType));

            IList <DataItem> items = config.Get("FormatString");

            items.Insert(0, new Options.Common.DataItem()
            {
                Text = "", Value = ""
            });;
            colFormatString.DataSource    = items;
            colFormatString.DisplayMember = "Text";

            BindGrid();
        }