本文整理汇总了C#中MDataSet.EndEdit方法的典型用法代码示例。如果您正苦于以下问题:C# MDataSet.EndEdit方法的具体用法?C# MDataSet.EndEdit怎么用?C# MDataSet.EndEdit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MDataSet
的用法示例。
在下文中一共展示了MDataSet.EndEdit方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InvoiceDetailRowAdd
public InvoiceDetailRowAdd(MDataSet.InvoiceDetailRow source, MDataSet.RemainsRow remain, MDataSet.ProductRow productRow)
{
InitializeComponent();
_productRow = productRow;
_remainsRow = remain;
_row = source;
if (_productRow.MinDivisor == 1)
{
this.quantityEdit.Properties.DisplayFormat.FormatString = "####";
this.quantityEdit.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.quantityEdit.Properties.EditFormat.FormatString = "###";
this.quantityEdit.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.quantityEdit.Properties.Mask.EditMask = "####";
this.quantityEdit.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.Numeric;
}
this.lnumOst.Text = _remainsRow.QuantityRemains.ToString();
//количество целых упаковок :
if (_productRow.OldKol != 1)
{
int rem = Convert.ToInt32(_remainsRow.QuantityRemains + _row.Quantity);
int q = (int)rem / _productRow.OldKol;
if (q != 0)
{
this.labelOst.Text = q.ToString() + " целых уп.";
}
//количество едениц
int c = (int)(rem - q * _productRow.OldKol);
if (c != 0)
{
if (this.labelOst.Text.Length == 0)
{
this.labelOst.Text = c.ToString() + _productRow.UnitName;
}
else
{
this.labelOst.Text += "+ " + c.ToString() + _productRow.UnitName;
}
}
this.labelOst.Visible = true;
}
else
{
this.lComment.Text = "{в упаковке " + _productRow.MinDivisor.ToString() + " шт}";
this.lComment.Visible = true;
}
this.mDataSet = source.Table.DataSet as MDataSet;
this.invoiceDetailBindingSource.DataSource = source;
this.productBindingSource.DataSource = _productRow;
this.productBindingSource.ResetBindings(false);
if (source.LocalReceiptDetailRef==0 )
source.LocalReceiptDetailRef = remain.ReceiptDetailRef;
this.remainsBindingSource.DataSource = remain;
_quantytiStock = remain.QuantityRemains;
this.invoiceDetailBindingSource.ResetBindings(true);
this.errorProvider1.DataSource = this.invoiceDetailBindingSource;
this.errorProvider1.UpdateBinding();
source.EndEdit();
}