SVN r831
SVN-Revision: r831
This commit is contained in:
@@ -35,6 +35,7 @@ using DevExpress.Utils;
|
|||||||
using System.Data.SqlClient;
|
using System.Data.SqlClient;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using Lskj.PubBillSpecial;
|
||||||
|
|
||||||
namespace Lskj.PubBill
|
namespace Lskj.PubBill
|
||||||
{
|
{
|
||||||
@@ -2285,7 +2286,7 @@ namespace Lskj.PubBill
|
|||||||
}
|
}
|
||||||
if (unionModel.ModelObj.DragAndSave && e.TreeListObj.Selection.Count == i && i != 0)
|
if (unionModel.ModelObj.DragAndSave && e.TreeListObj.Selection.Count == i && i != 0)
|
||||||
{
|
{
|
||||||
this.OnBillSaveClick(null,null);
|
this.OnBillSaveClick(null, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5841,6 +5842,10 @@ namespace Lskj.PubBill
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
gcMain.AddHeadquarters(null);
|
||||||
|
}
|
||||||
gcMain.RefreshHeaderColor();
|
gcMain.RefreshHeaderColor();
|
||||||
this.gcMain.GridControl.DataSource = null;
|
this.gcMain.GridControl.DataSource = null;
|
||||||
this.gcMain.GridControl.DataSource = dataTable;
|
this.gcMain.GridControl.DataSource = dataTable;
|
||||||
@@ -6710,7 +6715,29 @@ namespace Lskj.PubBill
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (this.CanAddDetailRow())
|
bool isAgain = true;
|
||||||
|
if (this.BillModel.isWorkLogin)
|
||||||
|
{
|
||||||
|
if (!this.BillModel.SaveState && this.gcMain.DataRowCount() > 0)
|
||||||
|
{
|
||||||
|
DialogResult result = MessageUtil.Show(("数据未保存,是否确定新建单据?"), MessageBoxButtons.YesNo);
|
||||||
|
if (result == DialogResult.Yes)
|
||||||
|
{
|
||||||
|
this.SetBillStatus(null);
|
||||||
|
this.ControlObj.ResetControlValue(this.BillModel.ManuallyTriggerCorrelation, true);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
isAgain = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.SetBillStatus(null);
|
||||||
|
this.ControlObj.ResetControlValue(this.BillModel.ManuallyTriggerCorrelation, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (this.CanAddDetailRow() && isAgain)
|
||||||
{
|
{
|
||||||
if (this.BillModel.DisableDragPrompt || MessageUtil.Show(ResourceKeys.DragSelectRow, MessageBoxButtons.YesNo) == DialogResult.Yes)
|
if (this.BillModel.DisableDragPrompt || MessageUtil.Show(ResourceKeys.DragSelectRow, MessageBoxButtons.YesNo) == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
@@ -7503,7 +7530,9 @@ namespace Lskj.PubBill
|
|||||||
frmSelect.FpOtherRows = table.Rows.Cast<DataRow>().Where(x => !(rowItem[guidField] + "").Equals(x[guidField] + "") && !string.IsNullOrEmpty(x[mRecordPrimaryField] + "")).ToArray();
|
frmSelect.FpOtherRows = table.Rows.Cast<DataRow>().Where(x => !(rowItem[guidField] + "").Equals(x[guidField] + "") && !string.IsNullOrEmpty(x[mRecordPrimaryField] + "")).ToArray();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (frmSelect.ShowDialog() == DialogResult.OK && frmSelect.SelectedRows != null && frmSelect.SelectedRows.Length > 0)
|
if (frmSelect.ShowDialog() == DialogResult.OK)
|
||||||
|
{
|
||||||
|
if (frmSelect.SelectedRows != null && frmSelect.SelectedRows.Length > 0)
|
||||||
{
|
{
|
||||||
//if (frmSelect.isNextOne)
|
//if (frmSelect.isNextOne)
|
||||||
//{
|
//{
|
||||||
@@ -7576,6 +7605,7 @@ namespace Lskj.PubBill
|
|||||||
this.gcMain.GridView.UpdateCurrentRow();
|
this.gcMain.GridView.UpdateCurrentRow();
|
||||||
this.gcMain.GridView.ShowEditor();
|
this.gcMain.GridView.ShowEditor();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (frmSelect.isNextOne)
|
if (frmSelect.isNextOne)
|
||||||
{
|
{
|
||||||
int SourceRowIndex = this.gcMain.GridView.GetFocusedDataSourceRowIndex();
|
int SourceRowIndex = this.gcMain.GridView.GetFocusedDataSourceRowIndex();
|
||||||
|
|||||||
Reference in New Issue
Block a user