• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# MDataSet类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: DialogQuantityOrder

        public DialogQuantityOrder(MDataSet.ProductRow source,MDataSet.OrdersRow newRow)
        {
            InitializeComponent();

            newRow.ProductRef = source.ID;

            this.productBindingSource.DataSource = source;

            if (source.GetRemainsRows().Length != 0)
            {
                foreach (MDataSet.RemainsRow row in source.GetRemainsRows())
                {
                    _QauntityRemains += row.QuantityRemains;
                }
            
            }

            this.ordersBindingSource.DataSource = newRow;

            this.labelRem.DataBindings.Add(new Binding("Text", this, "QauntityRemains"));
        }
开发者ID:vpjulia,项目名称:Salvia,代码行数:21,代码来源:DialogQuantityOrder.cs


示例17: OrderAdd

        public OrderAdd(MDataSet.OrdersRow source, MainForm mainForm)
        {
           
            InitializeComponent();
            _mainForm = mainForm;
            this.mDataSet =source.Table.DataSet as MDataSet;

            this.ordersBindingSource.DataSource = source;
            
            this.errorProvider1.DataSource = this.ordersBindingSource.DataSource;
            
            this.tradePutletBindingSource.DataSource =new DataView( this.mDataSet.TradePutlet, "ID>0",null,DataViewRowState.CurrentRows);
            
            this.tradePutletBindingSource.ResetBindings(false);

            _product = _mainForm.fullDataSet.Product;

            this.productBindingSource.DataSource = _mainForm.fullDataSet.Product;

            this.productBindingSource.ResetBindings(false);

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


示例18: FillNew

 public virtual int FillNew(MDataSet.RemainsDataTable dataTable) {
     this.Adapter.SelectCommand = this.CommandCollection[3];
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
开发者ID:vpjulia,项目名称:Salvia,代码行数:8,代码来源:MDataSet.Designer.cs


示例19: Update

 public virtual int Update(MDataSet dataSet) {
     return this.Adapter.Update(dataSet, "inventoryDetails");
 }
开发者ID:vpjulia,项目名称:Salvia,代码行数:3,代码来源:MDataSet.Designer.cs


示例20: Fill

 public virtual int Fill(MDataSet.inventoryDetailsDataTable dataTable) {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
开发者ID:vpjulia,项目名称:Salvia,代码行数:8,代码来源:MDataSet.Designer.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# MEMORY_BASIC_INFORMATION类代码示例发布时间:2022-05-24
下一篇:
C# MDToken类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap