|
|
@@ -68,7 +68,6 @@ namespace Dongke.IBOSS.PRD.Client.SystemModule
|
|
|
ds.Tables.Add(tb);
|
|
|
cre.Data = ds;
|
|
|
|
|
|
-
|
|
|
// 调用服务器端获取数据集
|
|
|
ServiceResultEntity sre = SystemModuleProxy.Service.DoRequest(cre);
|
|
|
if (sre != null && sre.Data != null && sre.Data.Tables.Count > 0)
|
|
|
@@ -86,7 +85,8 @@ namespace Dongke.IBOSS.PRD.Client.SystemModule
|
|
|
//保存事件
|
|
|
private void btnSave_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
- if (this.GOODSCODE.SelectedValue.ToString() == string.Empty)
|
|
|
+ ((DataTable)this.dgvDataAccess.DataSource).AcceptChanges();
|
|
|
+ if (this.GOODSCODE.SelectedValue.ToString() == string.Empty)
|
|
|
{
|
|
|
this.GOODSCODE.Focus();
|
|
|
MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "产品编码"),
|
|
|
@@ -111,7 +111,7 @@ namespace Dongke.IBOSS.PRD.Client.SystemModule
|
|
|
this.Text,
|
|
|
MessageBoxButtons.OK,
|
|
|
MessageBoxIcon.Information,
|
|
|
- MessageBoxDefaultButton.Button1);
|
|
|
+ MessageBoxDefaultButton.Button1);
|
|
|
return;
|
|
|
}
|
|
|
if (gvrAcc.Cells["ACCESSORIESCODE"].Value == null || gvrAcc.Cells["ACCESSORIESCODE"].Value == DBNull.Value)
|
|
|
@@ -127,7 +127,8 @@ namespace Dongke.IBOSS.PRD.Client.SystemModule
|
|
|
}
|
|
|
if (this._formStatus == Constant.FormMode.Edit)
|
|
|
{
|
|
|
- DataTable dtAcc = this.dgvDataAccess.CurrentDataTable.DataSet.Tables[0];
|
|
|
+ this.dgvDataAccess.CurrentRow.ErrorText = string.Empty;
|
|
|
+ DataTable dtAcc = (DataTable)this.dgvDataAccess.DataSource;
|
|
|
|
|
|
ClientRequestEntity cre = new ClientRequestEntity();
|
|
|
cre.NameSpace = "EditGoods";
|