本文整理汇总了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);
}
示例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 =
}
示例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);
}
示例4: RemainsLocal
public RemainsLocal(MDataSet.RemainsDataTable source)
{
InitializeComponent();
this.remainsBindingSource.DataSource = new DataView(source,"quantityRemains<>0",null,DataViewRowState.CurrentRows);
}
示例5: InvoiceRow
public InvoiceRow(MDataSet.InvoiceMasterRow source)
{
InitializeComponent();
_curentMasterRow = source;
mainDataset= source.Table.DataSet as MDataSet;
}
示例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"));
}
示例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);
}
示例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"));
}
示例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);
}
示例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;
}
示例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";
}
示例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();
}
示例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);
}
示例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";
}
示例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;
}
}