Exemplo n.º 1
0
        public ucSettings(CTechCore.Models.Navigation.MenuItem mnu, object obj)
        {
            InitializeComponent();

            lkpCustomerGrp.Properties.DataSource = Models.AccountsReceivable.Customers.GetCustomerGroups();
            lkpCustomerGrp.ForceInitialize();
            lkpCustomerGrp.Properties.PopulateViewColumns();
            lkpCustomerGrp.Properties.View.Columns["IdCliClass"].Visible = false;
            lkpCustomerGrp.Properties.DisplayMember = "DisplayText";
            lkpCustomerGrp.Properties.KeyMember     = "Code";
            lkpCustomerGrp.Properties.ValueMember   = "Code";

            layoutHeaderKey.Visibility            = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
            layoutHeaderKeyCustomerGrp.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;

            Setting sets = (Setting)obj;

            if (sets.HeaderSection == "Defaults - CreditOverflow")
            {
                layoutHeaderKey.Visibility            = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                layoutHeaderKeyCustomerGrp.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
            }


            settingBindingSource.DataSource = sets;
        }
Exemplo n.º 2
0
 public frmManageUsers(CTechCore.Models.Navigation.MenuItem mnu, object usrobj)
 {
     InitializeComponent();
     CTechCore.Tools.Forms.InitializeControlsFocus(this);
     LoadData();
     vwUsers.FindFilterText = ((User)usrobj).Username;
     if (usrobj != null)
     {
         LoadUser((User)usrobj);
     }
 }
        public frmPurchaseOrdersToGRV(CTechCore.Models.Navigation.MenuItem mnu, object grvobj)
        {
            InitializeComponent();
            InitializeControls();
            LoadData();


            purchaseOrderToGRVBindingSource.DataSource = (PurchaseOrderToGRV)grvobj;
            gcPOHeader.DataSource  = ((PurchaseOrderToGRV)grvobj).HeaderInfo;
            gcPODetails.DataSource = ((PurchaseOrderToGRV)grvobj).DetailInfo;
        }
Exemplo n.º 4
0
        public frmSalesOrders(CTechCore.Models.Navigation.MenuItem mnu, object so)
        {
            InitializeComponent();

            InitializeControls();

            ReloadData();

            salesOrderBindingSource.DataSource = (SalesOrder)so;

            base.Caption = $"ORDER: {((SalesOrder)so).DocumentNumber} ({((SalesOrder)so).ExternalOrderNumber})";
        }
Exemplo n.º 5
0
        public frmSalesOrders(CTechCore.Models.Navigation.MenuItem mnu)
        {
            InitializeComponent();

            InitializeControls();

            ReloadData();

            salesOrderBindingSource.DataSource = new SalesOrder();


            base.Caption = $"NEW ORDER";
        }
Exemplo n.º 6
0
        public frmGRV(CTechCore.Models.Navigation.MenuItem mnu, object grvobj)
        {
            InitializeComponent();

            InitializeControls();

            ReloadData();

            GoodsReceivedVoucher grv = (GoodsReceivedVoucher)grvobj;

            goodsReceivedVoucherBindingSource.DataSource = grv;

            base.Caption = $"ORDER: {grv.DocumentNumber} ({grv.ExternalOrderNumber})";
        }
Exemplo n.º 7
0
 public frmEntityBase(CTechCore.Models.Navigation.MenuItem mnu, object obj) : base(mnu, obj)
 {
     InitializeComponent();
 }
Exemplo n.º 8
0
 public frmSalesOrderToInvoice(CTechCore.Models.Navigation.MenuItem mnu, object grvobj)
 {
     InitializeComponent();
     InitializeControls();
 }
Exemplo n.º 9
0
 public frmPaymentType(CTechCore.Models.Navigation.MenuItem mnu, object obj)
 {
     InitializeComponent();
     paymentTypeBindingSource.DataSource = (PaymentType)obj;
 }