当前位置: 首页>>代码示例>>C#>>正文


C# MDataSet类代码示例

本文整理汇总了C#中MDataSet的典型用法代码示例。如果您正苦于以下问题:C# MDataSet类的具体用法?C# MDataSet怎么用?C# MDataSet使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


MDataSet类属于命名空间,在下文中一共展示了MDataSet类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ReceiptMasterStock

        public ReceiptMasterStock(MDataSet source)
        {
            InitializeComponent();

            this.mDataSet = source;
            this.receiptMasterBindingSource.DataSource = new DataView(this.mDataSet.ReceiptMaster, "DocumentTypeRef=1", null, DataViewRowState.CurrentRows);
            this.receiptMasterBindingSource.ResetBindings(false);


            this.organizationBindingSource.DataSource = this.mDataSet.Organization;

            this.organizationBindingSource.ResetBindings(false);

            // this.productBindingSource.DataSource = this.mDataSet.Product;
        
           //  заполнить 

            this.btDelete.Visible = false;
           

           this.PariodsComboBox.ComboBox.DataSource = this.mDataSet.Periods;
           this.PariodsComboBox.ComboBox.DisplayMember = "Name";

           this.PariodsComboBox.ComboBox.ValueMember = "ID";

            _changesReceiptMaster = new DataView(this.mDataSet.ReceiptMaster, "DocumentTypeRef=1", null, DataViewRowState.Added | DataViewRowState.Deleted | DataViewRowState.ModifiedCurrent);

            _changesReceiptDetail = new DataView(this.mDataSet.ReceiptDetail, "DocumentTypeRef=1", null, DataViewRowState.Added | DataViewRowState.Deleted | DataViewRowState.ModifiedCurrent);

            _changesReceiptMaster.ListChanged+=new ListChangedEventHandler(_changes_ListChanged);
            _changesReceiptDetail.ListChanged += new ListChangedEventHandler(_changes_ListChanged);


        }
开发者ID:vpjulia,项目名称:Salvia,代码行数:34,代码来源:ReceiptMasterStock.cs

示例2: OrdersAll

        public OrdersAll(MDataSet.OrdersDataTable source)
        {
            InitializeComponent();

            this.mDataSet = source.DataSet as MDataSet;

         this.ordersBindingSource.DataSource = new DataView(source,"Quantity - Reserved- QuantityNow >0 and isClose=0",null,DataViewRowState.CurrentRows);

         this.ordersBindingSource.ResetBindings(false);

         this.ordersOldBindingSource.DataSource = new DataView(source, "Quantity - Reserved - QuantityNow <=0",null,DataViewRowState.CurrentRows);

         this.ordersBindingSourceAll.DataSource = new DataView(source, null, null, DataViewRowState.CurrentRows);


         this.tradePutletBindingSource.DataSource = this.mDataSet.TradePutlet;
         this.tradePutletBindingSource.ResetBindings(false);
         this.productBindingSource.DataSource = this.mDataSet.Product;
         this.productBindingSource.ResetBindings(false);
         this.dateEdit.Value = DateTime.Today;


       //this.TradePutletLookUpEdit.DataSource = 

        }
开发者ID:vpjulia,项目名称:Salvia,代码行数:25,代码来源:OrdersAll.cs

示例3: InvoiceDetailEdit

        public InvoiceDetailEdit(MDataSet.InvoiceMasterRow source,MDataSet.ProductDataTable product,MainForm mainForm)
        {
            InitializeComponent();

            _mainForm = mainForm;

            this.mDataSet = source.Table.DataSet as MDataSet;

            this.productBindingSource.DataSource = product;
            
            this.productBindingSource.ResetBindings(false);



        //    this.RemainsBindingSource.DataSource = new DataView(this.mDataSet.Remains, "MainStockRef=" + source.MainStockRef.ToString(), null, DataViewRowState.CurrentRows);
           
            this.RemainsBindingSource.DataSource = new DataView(this.mDataSet.Remains, "Quantityremains<>0 and MainStockRef=" + source.MainStockRef.ToString(),"ProductName", DataViewRowState.CurrentRows);
            this.RemainsBindingSource.ResetBindings(true);

            this.invoiceMasterBindingSource.DataSource = source;
            this.invoiceMasterBindingSource.ResetBindings(true);


            this.invoiceMasterBindingSourceView.DataSource = source.Table;

            this.invoiceMasterBindingSourceView.ResetBindings(true);
            this.invoiceMasterBindingSourceView.CurrencyManager.Position = this.invoiceMasterBindingSourceView.Find("ID", source.ID);


            this.invoiceDetailBindingSource.DataSource = this.invoiceMasterBindingSourceView;
            this.invoiceDetailBindingSource.DataMember = "FK_InvoiceDetail_InvoiceMaster";
            this.invoiceDetailBindingSource.ResetBindings(true);
        }
开发者ID:vpjulia,项目名称:Salvia,代码行数:33,代码来源:InvoiceDetailEdit.cs

示例4: RemainsLocal

        public RemainsLocal(MDataSet.RemainsDataTable source)
        {
            InitializeComponent();

           
            this.remainsBindingSource.DataSource = new DataView(source,"quantityRemains<>0",null,DataViewRowState.CurrentRows);

        }
开发者ID:vpjulia,项目名称:Salvia,代码行数:8,代码来源:RemainsLocal.cs

示例5: InvoiceRow

        public InvoiceRow(MDataSet.InvoiceMasterRow source)
        {
            InitializeComponent();

            _curentMasterRow = source;

             mainDataset= source.Table.DataSet as MDataSet;
        }
开发者ID:vpjulia,项目名称:Salvia,代码行数:8,代码来源:InvoiceRow.cs

示例6: DialogOfExpend

        public DialogOfExpend(MDataSet.CashRow cashrow)
        {
            InitializeComponent();
            _cash = cashrow;
            this.cashBindingSource.DataSource = _cash;
            this.cashBindingSource.ResetBindings(true);
            this.SummEdit.DataBindings.Add(new Binding("EditValue", this, "SummExpend"));

        }
开发者ID:vpjulia,项目名称:Salvia,代码行数:9,代码来源:DialogOfExpend.cs

示例7: InvoiceMasterNewAll

 public InvoiceMasterNewAll(MDataSet source)
 {
     InitializeComponent();
     this.mDataSet = source;
     this.invoiceMasterBindingSource.DataSource = new DataView(this.mDataSet.InvoiceMaster, "DocumentTypeRef=0", null, DataViewRowState.CurrentRows);
     this.invoiceMasterBindingSource.ResetBindings(false);
    //this.productBindingSource.DataSource = this.mDataSet.Product;
     _changesMaster = new DataView(this.mDataSet.InvoiceMaster, "DocumentTypeRef=0", null, DataViewRowState.Added|DataViewRowState.Deleted|DataViewRowState.ModifiedCurrent);
     _changesDetail = new DataView(this.mDataSet.InvoiceDetail, "DocumentTypeRef=0", null, DataViewRowState.Added | DataViewRowState.Deleted | DataViewRowState.ModifiedCurrent);
 }
开发者ID:vpjulia,项目名称:Salvia,代码行数:10,代码来源:InvoiceMasterNewAll.cs

示例8: Payment

        public Payment(MDataSet.InvoiceMasterRow sourceRow)
        {
            InitializeComponent();
            _sourceRow = sourceRow;
        //    _CashCustomer = 0;
            this.invoiceMasterBindingSource.DataSource = _sourceRow;

            CashEdit.DataBindings.Add(new Binding("Text",this,"CashCustomer"));

            labelCanges.DataBindings.Add(new Binding("Text", this, "Change"));
        }
开发者ID:vpjulia,项目名称:Salvia,代码行数:11,代码来源:Payment.cs

示例9: OrdersAll

        public OrdersAll(MDataSet source)
        {
            InitializeComponent();
            this.mDataSet = source;

            this.ordersBindingSource.DataSource = this.mDataSet.Orders;

            this.productBindingSource.DataSource = this.mDataSet.Product;
            
            this.productBindingSource.ResetBindings(true);

        }
开发者ID:vpjulia,项目名称:Salvia,代码行数:12,代码来源:OrdersAll.cs

示例10: InvoicePrintMar

        public InvoicePrintMar(MainForm mainForm, MDataSet.InvoiceMasterRow source, Maria301Printer printer)
        {
            InitializeComponent();

            this.mDataSet = mainForm.mDataSet;
          
            _mainForm = mainForm;

            _printer = printer;

            this.remainsBindingSource.DataSource = new DataView(this.mDataSet.Remains, "QuantityRemains >0 ", null, DataViewRowState.CurrentRows);

            _invmasterRow = source;
        }
开发者ID:vpjulia,项目名称:Salvia,代码行数:14,代码来源:InvoicePrintMar.cs

示例11: InvoiceClosed

        public InvoiceClosed(MDataSet source)
        {
            InitializeComponent();
            this.mDataSet = source;
            this.invoiceMasterBindingSource.DataSource = new DataView(source.InvoiceMaster,"DocumentTypeRef=1",null,DataViewRowState.CurrentRows);

            this.organizationBindingSource.DataSource = this.mDataSet.Organization;
            this.organizationBindingSource.ResetBindings(false);



            this.PeriodsComboBox.ComboBox.DataSource = this.mDataSet.Periods;
            this.PeriodsComboBox.ComboBox.DisplayMember = "Name";
            this.PeriodsComboBox.ComboBox.ValueMember = "ID";

        }
开发者ID:vpjulia,项目名称:Salvia,代码行数:16,代码来源:InvoiceClosed.cs

示例12: ReceiptDetailRowAdd

        public ReceiptDetailRowAdd(MDataSet.ReceiptDetailRow source,MDataSet.ProductRow product)
        {
            InitializeComponent();
            _receiptDetailRow = source;
            _productRow = product;

            this.mDataSet = (source.Table.DataSet as MDataSet);
            this.receiptDetailBindingSource.DataSource = _receiptDetailRow;
            this.productBindingSource.DataSource = _productRow;

            this.productBindingSource.ResetBindings(false);
            this.receiptDetailBindingSource.ResetBindings(true);

            this.manufacturerBindingSource.DataSource = this.mDataSet.Manufacturer;

            this.errorProvider1.DataSource = this.receiptDetailBindingSource;
            this.errorProvider1.UpdateBinding();
        }
开发者ID:vpjulia,项目名称:Salvia,代码行数:18,代码来源:ReceiptDetailRowAdd.cs

示例13: InvoiceReturn

        public InvoiceReturn(MDataSet mdataset,MainForm mainform)
        {
            InitializeComponent();
            this.mDataSet = mdataset;
            _mainForm = mainform;

            this.linkedInvoiceMasterBindingSource.DataSource = this.mDataSet.LinkedInvoiceMaster;
            this.linkedInvoiceMasterBindingSource.ResetBindings(true);
            this.cbTradePutlet.ComboBox.DataSource = new DataView(this.mDataSet.TradePutlet,"Id> 0","Name",DataViewRowState.CurrentRows);
            this.cbTradePutlet.ComboBox.DisplayMember = "Name";
            this.cbTradePutlet.ComboBox.ValueMember = "ID";

            this.productBindingSource.DataSource = this.mDataSet.Product;
            this.manufacturerBindingSource.DataSource = this.mDataSet.Manufacturer;

            this.productBindingSource.ResetBindings(false);
            this.manufacturerBindingSource.ResetBindings(false);

        }
开发者ID:vpjulia,项目名称:Salvia,代码行数:19,代码来源:InvoiceReturn.cs

示例14: ReceiptMasterStock

        public ReceiptMasterStock(MDataSet source)
        {
            InitializeComponent();

            this.mDataSet = source;
            this.receiptMasterBindingSource.DataSource = new DataView(this.mDataSet.ReceiptMaster,"DocumentTypeRef>0", null, DataViewRowState.CurrentRows);
            this.receiptMasterBindingSource.ResetBindings(false);
            // this.productBindingSource.DataSource = this.mDataSet.Product;
        
           
           
            

           this.PariodsComboBox.ComboBox.DataSource = this.mDataSet.Periods;
           this.PariodsComboBox.ComboBox.DisplayMember = "ClosedDate";

           this.PariodsComboBox.ComboBox.ValueMember = "ID";

            

        }
开发者ID:vpjulia,项目名称:Salvia,代码行数:21,代码来源:ReceiptMasterStock.cs

示例15: InvoiceDetailDatecs

        public InvoiceDetailDatecs(MainForm mainForm, MDataSet.InvoiceMasterRow sourcerow)
        {
            InitializeComponent();

            this.mDataSet = mainForm.mDataSet;

            _mainForm = mainForm;

            _invmasterRow = sourcerow;

            this.CashBindingSource.DataSource = _mainForm.cashBindingSource.Current as MDataSet.CashRow;

            this.remainsBindingSource.DataSource = new DataView(this.mDataSet.Remains, "QuantityRemains >0 ", null, DataViewRowState.CurrentRows);

            if (_mainForm.LocalSettingRow.PrDiscount != 0)
            {
                btPayDiscount.Visible = true;
                cardDiscountButton.Visible = true;
            }

        }
开发者ID:vpjulia,项目名称:Salvia,代码行数:21,代码来源:InvoiceDetailDatecs.cs


注:本文中的MDataSet类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。