123
parent
5a2f397a93
commit
1ad9dae18b
Binary file not shown.
BIN
DB/script.sql
BIN
DB/script.sql
Binary file not shown.
|
|
@ -109,6 +109,9 @@ namespace MES
|
|||
public virtual DbSet<saleOutWarehouseInfo> saleOutWarehouseInfo { get; set; }
|
||||
|
||||
public virtual DbSet<saleOutWarehouseDetailInfo> saleOutWarehouseDetailInfo { set; get; }
|
||||
public virtual DbSet<saleInWarehouseInfo> saleInWarehouseInfo { get; set; }
|
||||
|
||||
public virtual DbSet<saleInWarehouseDetailInfo> saleInWarehouseDetailInfo { set; get; }
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
|
||||
using WinformGeneralDeveloperFrame.Commons;
|
||||
|
||||
namespace MES.Entity
|
||||
|
|
|
|||
|
|
@ -37,7 +37,12 @@ namespace MES.Entity
|
|||
public string productcode{set;get;}
|
||||
///库存
|
||||
[ModelBindControl("txtstocknumber")]
|
||||
public decimal stocknumber{set;get;}
|
||||
public decimal stocknumber
|
||||
{
|
||||
// ReSharper disable once ArrangeAccessorOwnerBody
|
||||
set { }
|
||||
get {return productinnumber + customerreturnnumber - saleoutnumber; }
|
||||
}
|
||||
///期初数量
|
||||
[ModelBindControl("txtstartnumber")]
|
||||
public decimal startnumber{set;get;}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,62 @@
|
|||
using WinformGeneralDeveloperFrame.Commons;
|
||||
|
||||
namespace MES.Entity
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.Spatial;
|
||||
|
||||
[Table("saleInWarehouseDetail")]
|
||||
public partial class saleInWarehouseDetailInfo
|
||||
{
|
||||
///id
|
||||
[ModelBindControl("txtid")]
|
||||
public int id{set;get;}
|
||||
|
||||
///id
|
||||
[ModelBindControl("txtmasterid")]
|
||||
public int masterid { set; get; }
|
||||
///销售出库单号
|
||||
[ModelBindControl("txtreturnsalecode")]
|
||||
public string returnsalecode{set;get;}
|
||||
///销售出库明细单号
|
||||
[ModelBindControl("txtreturnsaledetailcode")]
|
||||
public string returnsaledetailcode{set;get;}
|
||||
///销售退货入库单号
|
||||
[ModelBindControl("txtmastercode")]
|
||||
public string mastercode{set;get;}
|
||||
///销售退货入库明细单号
|
||||
[ModelBindControl("txtdetailcode")]
|
||||
public string detailcode{set;get;}
|
||||
///销售单号
|
||||
[ModelBindControl("txtsalecode")]
|
||||
public string salecode{set;get;}
|
||||
///销售明细单号
|
||||
[ModelBindControl("txtsaledetailcode")]
|
||||
public string saledetailcode{set;get;}
|
||||
///产品
|
||||
[ModelBindControl("txtproductID")]
|
||||
public int productID{set;get;}
|
||||
///产品编号
|
||||
[ModelBindControl("txtproductcode")]
|
||||
public string productcode{set;get;}
|
||||
///规格型号
|
||||
[ModelBindControl("txtspec")]
|
||||
public string spec{set;get;}
|
||||
///入库数量
|
||||
[ModelBindControl("txtnumber")]
|
||||
public decimal number{set;get;}
|
||||
///计量单位
|
||||
[ModelBindControl("txtunit")]
|
||||
public int unit{set;get;}
|
||||
///warehouse
|
||||
[ModelBindControl("txtwarehouse")]
|
||||
public int warehouse{set;get;}
|
||||
///备注
|
||||
[ModelBindControl("txtremark")]
|
||||
public string remark{set;get;}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
using WinformGeneralDeveloperFrame.Commons;
|
||||
|
||||
namespace MES.Entity
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.Spatial;
|
||||
|
||||
[Table("saleInWarehouse")]
|
||||
public partial class saleInWarehouseInfo
|
||||
{
|
||||
///id
|
||||
[ModelBindControl("txtid")]
|
||||
public int id{set;get;}
|
||||
///入库日期
|
||||
[ModelBindControl("txtinTime")]
|
||||
public DateTime inTime{set;get;}=DateTime.Now;
|
||||
///入库单位
|
||||
[ModelBindControl("txtdept")]
|
||||
public int dept{set;get;}
|
||||
///制单人
|
||||
[ModelBindControl("txtcreatorId")]
|
||||
public int creatorId{set;get;}
|
||||
///制单日期
|
||||
[ModelBindControl("txtcreateTime")]
|
||||
public DateTime createTime{set;get;}=DateTime.Now;
|
||||
///入库单号
|
||||
[ModelBindControl("txtcode")]
|
||||
public string code{set;get;}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -12,6 +12,8 @@ using DevExpress.XtraLayout;
|
|||
using MES.Entity;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity;
|
||||
using CCWin.SkinClass;
|
||||
|
||||
namespace MES.Form
|
||||
{
|
||||
public partial class FrmfinishProductInInWarehouse : FrmBaseForm
|
||||
|
|
@ -169,6 +171,9 @@ namespace MES.Form
|
|||
a.masterid = info.id;
|
||||
a.mastercode = info.code;
|
||||
a.detailcode = codedetail;
|
||||
//更新产品入库数量
|
||||
productInfo product = db.productInfo.Find(a.productid);
|
||||
product.productinnumber += a.number;
|
||||
});
|
||||
db.finishProductInInWarehouseDetailInfo.AddRange(detaiListAdd);
|
||||
db.SaveChanges();
|
||||
|
|
@ -190,6 +195,8 @@ namespace MES.Form
|
|||
num++;
|
||||
string codedetail = code + num;
|
||||
a.detailcode = codedetail;
|
||||
productInfo product = db.productInfo.Find(a.productid);
|
||||
product.productinnumber += a.number;
|
||||
});
|
||||
db.finishProductInInWarehouseDetailInfo.AddRange(detaiListAdd);
|
||||
|
||||
|
|
@ -198,13 +205,28 @@ namespace MES.Form
|
|||
|
||||
detaiListEdit.ForEach((a) =>
|
||||
{
|
||||
//a.buyercode = info.buyercode;
|
||||
decimal oldnumber =
|
||||
GetDataTableUtils
|
||||
.SqlTableBySql(
|
||||
$"select number from finishProductInInWarehouseDetail where id={a.id}")
|
||||
.Rows[0]["number"].ToDecimal(0);
|
||||
//a.buyercode = info.buyercode;
|
||||
productInfo product = db.productInfo.Find(a.productid);
|
||||
product.productinnumber += a.number;
|
||||
product.productinnumber -= oldnumber;
|
||||
|
||||
db.Entry(a).State = EntityState.Modified;
|
||||
|
||||
});
|
||||
|
||||
List<finishProductInInWarehouseDetailInfo> detaiListDel =
|
||||
dic["Del"];
|
||||
detaiListDel.ForEach((a) => { db.Entry(a).State = EntityState.Deleted; });
|
||||
detaiListDel.ForEach((a) =>
|
||||
{
|
||||
productInfo product = db.productInfo.Find(a.productid);
|
||||
product.productinnumber -= a.number;
|
||||
db.Entry(a).State = EntityState.Deleted;
|
||||
});
|
||||
db.SaveChanges();
|
||||
}
|
||||
}
|
||||
|
|
@ -247,6 +269,11 @@ namespace MES.Form
|
|||
db.Entry(info).State=EntityState.Deleted;
|
||||
List<finishProductInInWarehouseDetailInfo> list = db.finishProductInInWarehouseDetailInfo
|
||||
.Where(p => p.masterid == info.id).ToList();
|
||||
foreach (var item in list)
|
||||
{
|
||||
productInfo product = db.productInfo.Find(item.productid);
|
||||
product.productinnumber -= item.number;
|
||||
}
|
||||
db.finishProductInInWarehouseDetailInfo.RemoveRange(list);
|
||||
gridControl1.DataSource = null;
|
||||
db.SaveChanges();
|
||||
|
|
|
|||
|
|
@ -251,6 +251,7 @@ namespace MES.Form
|
|||
this.grdListView.Name = "grdListView";
|
||||
this.grdListView.OptionsBehavior.Editable = false;
|
||||
this.grdListView.OptionsView.ColumnAutoWidth = false;
|
||||
this.grdListView.OptionsView.ShowGroupPanel = false;
|
||||
//
|
||||
// tabDataDetail
|
||||
//
|
||||
|
|
|
|||
|
|
@ -37,25 +37,36 @@ namespace ERP.Form
|
|||
{
|
||||
|
||||
|
||||
txtcreatorId.Properties.DataSource = GetDataTableUtils.SqlTable("用户");
|
||||
repositoryItemtxtcreatorId.DataSource = GetDataTableUtils.SqlTable("用户");
|
||||
txteditorId.Properties.DataSource = GetDataTableUtils.SqlTable("用户");
|
||||
repositoryItemtxteditorId.DataSource = GetDataTableUtils.SqlTable("用户");
|
||||
txtunit.Properties.DataSource = GetDataTableUtils.SqlTable("计量单位");
|
||||
repositoryItemtxtunit.DataSource= GetDataTableUtils.SqlTable("计量单位");
|
||||
txtwarehouse.Properties.DataSource = GetDataTableUtils.SqlTable("仓库");
|
||||
repositoryItemtxtwarehouse.DataSource= GetDataTableUtils.SqlTable("仓库");
|
||||
txtproducttype.Properties.DataSource = GetDataTableUtils.SqlTable("产品类别");
|
||||
repositoryItemtxtproducttype.DataSource= GetDataTableUtils.SqlTable("产品类别");
|
||||
|
||||
txtcreatorId.Properties.DataSource = GetDataTableUtils.SqlTable("用户");
|
||||
repositoryItemtxtcreatorId.DataSource = GetDataTableUtils.SqlTable("用户");
|
||||
txteditorId.Properties.DataSource = GetDataTableUtils.SqlTable("用户");
|
||||
repositoryItemtxteditorId.DataSource = GetDataTableUtils.SqlTable("用户");
|
||||
txtunit.Properties.DataSource = GetDataTableUtils.SqlTable("计量单位");
|
||||
repositoryItemtxtunit.DataSource= GetDataTableUtils.SqlTable("计量单位");
|
||||
txtwarehouse.Properties.DataSource = GetDataTableUtils.SqlTable("仓库");
|
||||
repositoryItemtxtwarehouse.DataSource= GetDataTableUtils.SqlTable("仓库");
|
||||
txtproducttype.Properties.DataSource = GetDataTableUtils.SqlTable("产品类别");
|
||||
repositoryItemtxtproducttype.DataSource= GetDataTableUtils.SqlTable("产品类别");
|
||||
repositoryItemLookUpEditproductid.DataSource = GetDataTableUtils.SqlTable("产品");
|
||||
repositoryItemLookUpEditwarehouse.DataSource = GetDataTableUtils.SqlTable("仓库");
|
||||
gridColumn45.ColumnEdit = repositoryItemLookUpEditproductid;
|
||||
gridColumn34.ColumnEdit = repositoryItemtxtunit;
|
||||
gridColumn35.ColumnEdit = repositoryItemtxtwarehouse;
|
||||
gridColumn59.ColumnEdit = repositoryItemLookUpEditproductid;
|
||||
|
||||
gridColumn49.ColumnEdit = repositoryItemtxtunit;
|
||||
gridColumn50.ColumnEdit = repositoryItemtxtwarehouse;
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
gridColumn63.ColumnEdit = repositoryItemtxtunit;
|
||||
gridColumn64.ColumnEdit = repositoryItemtxtwarehouse;
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 搜索字段
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private void InitSearchDicData()
|
||||
private void InitSearchDicData()
|
||||
{
|
||||
fieldDictionary.Add("产品名称","productname");
|
||||
fieldDictionary.Add("仓库","warehouse");
|
||||
|
|
@ -254,5 +265,17 @@ namespace ERP.Form
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void gridControlMouseDoubleClickFunction(object sender, EventArgs e)
|
||||
{
|
||||
productInfo info = grdListView.GetFocusedRow() as productInfo;
|
||||
using (var db=new MESDB())
|
||||
{
|
||||
gridControl1.DataSource =
|
||||
db.finishProductInInWarehouseDetailInfo.Where(p => p.productid == info.id).ToList();
|
||||
gridControl2.DataSource= db.saleOutWarehouseDetailInfo.Where(p => p.productid == info.id).ToList();
|
||||
gridControl3.DataSource=db.saleInWarehouseDetailInfo.Where(p => p.productID == info.id).ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,333 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using WinformGeneralDeveloperFrame;
|
||||
using WinformGeneralDeveloperFrame.Commons;
|
||||
using DevExpress.XtraLayout;
|
||||
using MES.Entity;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity;
|
||||
using CCWin.SkinClass;
|
||||
using DevExpress.DataProcessing;
|
||||
|
||||
namespace MES.Form
|
||||
{
|
||||
public partial class FrmsaleInWarehouse : FrmBaseForm
|
||||
{
|
||||
private Dictionary<string, string> fieldDictionary = new Dictionary<string, string>();
|
||||
public FrmsaleInWarehouse()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
private void FrmsaleInWarehouse_Load(object sender, EventArgs e)
|
||||
{
|
||||
InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new saleInWarehouseInfo(),gridControl1,new []{"txtcode"});
|
||||
InitSearchDicData();
|
||||
repositoryItemTextEditreturnsaledetailcode.KeyDown += RepositoryItemTextEditreturnsaledetailcode_KeyDown;
|
||||
}
|
||||
|
||||
private void RepositoryItemTextEditreturnsaledetailcode_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Tab)
|
||||
{
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
string code = gridView1.EditingValue.ToString();
|
||||
if (!string.IsNullOrEmpty(code))
|
||||
{
|
||||
returnsaledetailInfo buyerdetailInfo = db.returnsaledetailInfo
|
||||
.Where(p => p.returnsaledetailcode == code).FirstOrDefault();
|
||||
if (buyerdetailInfo == null)
|
||||
{
|
||||
"单号不存在".ShowWarning();
|
||||
}
|
||||
else
|
||||
{
|
||||
gridView1.GetFocusedDataRow()["returnsalecode"] = buyerdetailInfo.returnsalecode;
|
||||
gridView1.GetFocusedDataRow()["returnsaledetailcode"] = buyerdetailInfo.returnsaledetailcode;
|
||||
gridView1.GetFocusedDataRow()["salecode"] = buyerdetailInfo.salecode;
|
||||
gridView1.GetFocusedDataRow()["productid"] = db.productInfo.Where(p => p.productcode == buyerdetailInfo.productcode).FirstOrDefault().id;
|
||||
gridView1.GetFocusedDataRow()["productcode"] = buyerdetailInfo.productcode;
|
||||
gridView1.GetFocusedDataRow()["spec"] = buyerdetailInfo.productspec;
|
||||
gridView1.GetFocusedDataRow()["unit"] = buyerdetailInfo.unit;
|
||||
gridView1.GetFocusedDataRow()["warehouse"] = buyerdetailInfo.warehouse;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 数据源初始化
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private void Init()
|
||||
{
|
||||
txtdept.Properties.DataSource = GetDataTableUtils.SqlTable("部门");
|
||||
repositoryItemTreeListtxtdept.DataSource= GetDataTableUtils.SqlTable("部门");
|
||||
txtcreatorId.Properties.DataSource = GetDataTableUtils.SqlTable("用户");
|
||||
repositoryItemtxtcreatorId.DataSource= GetDataTableUtils.SqlTable("用户");
|
||||
repositoryItemLookUpEditwarehouse.DataSource = GetDataTableUtils.SqlTable("仓库");
|
||||
repositoryItemLookUpEditunit.DataSource = GetDataTableUtils.SqlTable("计量单位");
|
||||
repositoryItemLookUpEditproductID.DataSource = GetDataTableUtils.SqlTable("产品");
|
||||
}
|
||||
/// <summary>
|
||||
/// 搜索字段
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private void InitSearchDicData()
|
||||
{
|
||||
fieldDictionary.Add("入库单号","code");
|
||||
}
|
||||
|
||||
public override void InitgrdListDataSource()
|
||||
{
|
||||
using (var con=new MESDB())///
|
||||
{
|
||||
grdList.DataSource=con.saleInWarehouseInfo.ToList();
|
||||
}
|
||||
Init();
|
||||
}
|
||||
/// <summary>
|
||||
/// 字段为空校验
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool CheckInput()
|
||||
{
|
||||
if(string.IsNullOrEmpty(txtinTime.Text))
|
||||
{
|
||||
"入库日期不能为空".ShowWarning();
|
||||
txtinTime.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtdept.EditValue.ToString()))
|
||||
{
|
||||
"入库单位不能为空".ShowWarning();
|
||||
txtdept.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtcreatorId.EditValue.ToString()))
|
||||
{
|
||||
"制单人不能为空".ShowWarning();
|
||||
txtcreatorId.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtcreateTime.Text))
|
||||
{
|
||||
"制单日期不能为空".ShowWarning();
|
||||
txtcreateTime.Focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
/// <summary>
|
||||
/// 保存
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool SaveFunction()
|
||||
{
|
||||
string code = "SOR" + DateTime.Now.GetDateTimeCode();
|
||||
|
||||
DataTable dt = gridControl1.DataSource as DataTable;
|
||||
try
|
||||
{
|
||||
saleInWarehouseInfo info = (saleInWarehouseInfo)this.ControlDataToModel(new saleInWarehouseInfo());
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
using (var tran = db.Database.BeginTransaction())
|
||||
{
|
||||
try
|
||||
{
|
||||
Dictionary<string, List<saleInWarehouseDetailInfo>> dic =
|
||||
dt.GetDataTableData<saleInWarehouseDetailInfo>();
|
||||
if (info.id == 0) //新增
|
||||
{
|
||||
info.code = code;
|
||||
db.saleInWarehouseInfo.Add(info);
|
||||
db.SaveChanges();
|
||||
txtid.Text = info.id.ToString();
|
||||
txtcode.Text = code;
|
||||
if (dt != null)
|
||||
{
|
||||
List<saleInWarehouseDetailInfo> detaiListAdd =
|
||||
dic["Add"];
|
||||
int num = 0;
|
||||
detaiListAdd.ForEach(a =>
|
||||
{
|
||||
num++;
|
||||
string codedetail = code + num;
|
||||
a.masterid = info.id;
|
||||
a.mastercode = info.code;
|
||||
a.detailcode = codedetail;
|
||||
//更新产品入库数量
|
||||
productInfo product = db.productInfo.Find(a.productID);
|
||||
product.customerreturnnumber += a.number;
|
||||
});
|
||||
db.saleInWarehouseDetailInfo.AddRange(detaiListAdd);
|
||||
db.SaveChanges();
|
||||
}
|
||||
}
|
||||
else //更新
|
||||
{
|
||||
db.Entry(info).State = EntityState.Modified;
|
||||
db.SaveChanges();
|
||||
if (dt != null)
|
||||
{
|
||||
List<saleInWarehouseDetailInfo> detaiListAdd =
|
||||
dic["Add"];
|
||||
int num = 0;
|
||||
detaiListAdd.ForEach(a =>
|
||||
{
|
||||
a.masterid = info.id;
|
||||
a.mastercode = info.code;
|
||||
num++;
|
||||
string codedetail = code + num;
|
||||
a.detailcode = codedetail;
|
||||
//更新产品入库数量
|
||||
productInfo product = db.productInfo.Find(a.productID);
|
||||
product.customerreturnnumber += a.number;
|
||||
});
|
||||
db.saleInWarehouseDetailInfo.AddRange(detaiListAdd);
|
||||
|
||||
List<saleInWarehouseDetailInfo> detaiListEdit =
|
||||
dic["Edit"];
|
||||
|
||||
detaiListEdit.ForEach((a) =>
|
||||
{
|
||||
decimal oldnumber =
|
||||
GetDataTableUtils
|
||||
.SqlTableBySql(
|
||||
$"select number from saleInWarehouseDetail where id={a.id}")
|
||||
.Rows[0]["number"].ToDecimal(0);
|
||||
//a.buyercode = info.buyercode;
|
||||
productInfo product = db.productInfo.Find(a.productID);
|
||||
product.customerreturnnumber += a.number;
|
||||
product.customerreturnnumber -= oldnumber;
|
||||
db.Entry(a).State = EntityState.Modified;
|
||||
});
|
||||
|
||||
List<saleInWarehouseDetailInfo> detaiListDel =
|
||||
dic["Del"];
|
||||
detaiListDel.ForEach((a) =>
|
||||
{
|
||||
productInfo product = db.productInfo.Find(a.productID);
|
||||
product.customerreturnnumber -= a.number;
|
||||
db.Entry(a).State = EntityState.Deleted;
|
||||
});
|
||||
db.SaveChanges();
|
||||
}
|
||||
}
|
||||
|
||||
tran.Commit();
|
||||
gridControl1.DataSource = db.saleInWarehouseDetailInfo.Where(p => p.masterid == info.id).ToList().ToDataTable(); ; ;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
tran.Rollback();
|
||||
ex.Message.ShowError();
|
||||
return false;
|
||||
}
|
||||
finally
|
||||
{
|
||||
tran.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.Message.ShowError();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
/// <summary>
|
||||
/// 删除
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool DelFunction()
|
||||
{
|
||||
try
|
||||
{
|
||||
saleInWarehouseInfo info = (saleInWarehouseInfo)this.ControlDataToModel(new saleInWarehouseInfo());
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
db.Entry(info).State=EntityState.Deleted;
|
||||
List<saleInWarehouseDetailInfo> list = db.saleInWarehouseDetailInfo
|
||||
.Where(p => p.masterid == info.id).ToList();
|
||||
foreach (var item in list)
|
||||
{
|
||||
productInfo product = db.productInfo.Find(item.productID);
|
||||
product.customerreturnnumber -= item.number;
|
||||
}
|
||||
db.saleInWarehouseDetailInfo.RemoveRange(list);
|
||||
gridControl1.DataSource = null;
|
||||
db.SaveChanges();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.Message.ShowError();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
/// <summary>
|
||||
/// 搜索
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override void SearchFunction()
|
||||
{
|
||||
FrmSearch frm = new FrmSearch(fieldDictionary);
|
||||
if (frm.ShowDialog()==DialogResult.OK)
|
||||
{
|
||||
string sql = frm.sql;
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
if (string.IsNullOrEmpty(sql))
|
||||
{
|
||||
grdList.DataSource = db.saleInWarehouseInfo.SqlQuery("select * from saleInWarehouse").ToList();
|
||||
}
|
||||
else
|
||||
{
|
||||
grdList.DataSource = db.saleInWarehouseInfo.SqlQuery($"select * from saleInWarehouse where {sql}").ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void AddFunction()
|
||||
{
|
||||
gridControl1.DataSource = new List<saleInWarehouseDetailInfo>().ToDataTable();
|
||||
}
|
||||
|
||||
public override void gridControlMouseDoubleClickFunction(object sender, EventArgs e)
|
||||
{
|
||||
saleInWarehouseInfo info = grdListView.GetFocusedRow() as saleInWarehouseInfo;
|
||||
if (info != null)
|
||||
{
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
gridControl1.DataSource = db.saleInWarehouseDetailInfo.Where(p => p.masterid == info.id).ToList().ToDataTable();
|
||||
gridView1.BestFitColumns();
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
private void toolStripMenuItemAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
gridView1.AddNewRow();
|
||||
}
|
||||
|
||||
private void toolStripMenuItemDel_Click(object sender, EventArgs e)
|
||||
{
|
||||
gridView1.DeleteRow(gridView1.FocusedRowHandle);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,831 @@
|
|||
|
||||
using DevExpress.XtraEditors;
|
||||
using DevExpress.XtraLayout;
|
||||
using DevExpress.XtraTab;
|
||||
|
||||
namespace MES.Form
|
||||
{
|
||||
partial class FrmsaleInWarehouse
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemTreeListtxtdept = new DevExpress.XtraEditors.Repository.RepositoryItemTreeListLookUpEdit();
|
||||
this.repositoryItemTreeListtxtdeptTreeList = new DevExpress.XtraTreeList.TreeList();
|
||||
this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemtxtcreatorId = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl();
|
||||
this.tabDataList = new DevExpress.XtraTab.XtraTabPage();
|
||||
this.grdList = new DevExpress.XtraGrid.GridControl();
|
||||
this.grdListView = new DevExpress.XtraGrid.Views.Grid.GridView();
|
||||
this.tabDataDetail = new DevExpress.XtraTab.XtraTabPage();
|
||||
this.panelControl2 = new DevExpress.XtraEditors.PanelControl();
|
||||
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
|
||||
this.xtraTabControl2 = new DevExpress.XtraTab.XtraTabControl();
|
||||
this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage();
|
||||
this.gridControl1 = new DevExpress.XtraGrid.GridControl();
|
||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.toolStripMenuItemAdd = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItemDel = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
|
||||
this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn9 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemTextEditreturnsaledetailcode = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit();
|
||||
this.gridColumn10 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn11 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn12 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn13 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn14 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemLookUpEditproductID = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.gridColumn15 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn16 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn17 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn18 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemLookUpEditunit = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.gridColumn19 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemLookUpEditwarehouse = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.gridColumn20 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.txtid = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtinTime = new DevExpress.XtraEditors.DateEdit();
|
||||
this.txtdept = new DevExpress.XtraEditors.TreeListLookUpEdit();
|
||||
this.txtdeptTreeList = new DevExpress.XtraTreeList.TreeList();
|
||||
this.txtcreatorId = new DevExpress.XtraEditors.LookUpEdit();
|
||||
this.txtcreateTime = new DevExpress.XtraEditors.DateEdit();
|
||||
this.txtcode = new DevExpress.XtraEditors.TextEdit();
|
||||
this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
|
||||
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtdept)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtdeptTreeList)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcreatorId)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit();
|
||||
this.xtraTabControl1.SuspendLayout();
|
||||
this.tabDataList.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.grdList)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.grdListView)).BeginInit();
|
||||
this.tabDataDetail.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit();
|
||||
this.panelControl2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
|
||||
this.layoutControl1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl2)).BeginInit();
|
||||
this.xtraTabControl2.SuspendLayout();
|
||||
this.xtraTabPage1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEditreturnsaledetailcode)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditproductID)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditunit)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditwarehouse)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtinTime.Properties.CalendarTimeProperties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtinTime.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtdept.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtdeptTreeList)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtcreatorId.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtcreateTime.Properties.CalendarTimeProperties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtcreateTime.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtcode.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// gridColumn1
|
||||
//
|
||||
this.gridColumn1.Caption = "id";
|
||||
this.gridColumn1.FieldName = "id";
|
||||
this.gridColumn1.Name = "gridColumn1";
|
||||
//
|
||||
// gridColumn2
|
||||
//
|
||||
this.gridColumn2.Caption = "入库日期";
|
||||
this.gridColumn2.DisplayFormat.FormatString = "G";
|
||||
this.gridColumn2.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
|
||||
this.gridColumn2.FieldName = "inTime";
|
||||
this.gridColumn2.Name = "gridColumn2";
|
||||
this.gridColumn2.Visible = true;
|
||||
this.gridColumn2.VisibleIndex = 0;
|
||||
this.gridColumn2.Width = 201;
|
||||
//
|
||||
// gridColumn3
|
||||
//
|
||||
this.gridColumn3.Caption = "入库单位";
|
||||
this.gridColumn3.ColumnEdit = this.repositoryItemTreeListtxtdept;
|
||||
this.gridColumn3.FieldName = "dept";
|
||||
this.gridColumn3.Name = "gridColumn3";
|
||||
this.gridColumn3.Visible = true;
|
||||
this.gridColumn3.VisibleIndex = 1;
|
||||
this.gridColumn3.Width = 201;
|
||||
//
|
||||
// repositoryItemTreeListtxtdept
|
||||
//
|
||||
this.repositoryItemTreeListtxtdept.AutoHeight = false;
|
||||
this.repositoryItemTreeListtxtdept.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.repositoryItemTreeListtxtdept.DisplayMember = "Name";
|
||||
this.repositoryItemTreeListtxtdept.Name = "repositoryItemTreeListtxtdept";
|
||||
this.repositoryItemTreeListtxtdept.TreeList = this.repositoryItemTreeListtxtdeptTreeList;
|
||||
this.repositoryItemTreeListtxtdept.ValueMember = "ID";
|
||||
//
|
||||
// repositoryItemTreeListtxtdeptTreeList
|
||||
//
|
||||
this.repositoryItemTreeListtxtdeptTreeList.Location = new System.Drawing.Point(0, 0);
|
||||
this.repositoryItemTreeListtxtdeptTreeList.Name = "repositoryItemTreeListtxtdeptTreeList";
|
||||
this.repositoryItemTreeListtxtdeptTreeList.OptionsView.ShowIndentAsRowStyle = true;
|
||||
this.repositoryItemTreeListtxtdeptTreeList.ParentFieldName = "PID";
|
||||
this.repositoryItemTreeListtxtdeptTreeList.Size = new System.Drawing.Size(400, 200);
|
||||
this.repositoryItemTreeListtxtdeptTreeList.TabIndex = 0;
|
||||
//
|
||||
// gridColumn4
|
||||
//
|
||||
this.gridColumn4.Caption = "制单人";
|
||||
this.gridColumn4.ColumnEdit = this.repositoryItemtxtcreatorId;
|
||||
this.gridColumn4.FieldName = "creatorId";
|
||||
this.gridColumn4.Name = "gridColumn4";
|
||||
this.gridColumn4.Visible = true;
|
||||
this.gridColumn4.VisibleIndex = 2;
|
||||
this.gridColumn4.Width = 201;
|
||||
//
|
||||
// repositoryItemtxtcreatorId
|
||||
//
|
||||
this.repositoryItemtxtcreatorId.AutoHeight = false;
|
||||
this.repositoryItemtxtcreatorId.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.repositoryItemtxtcreatorId.DisplayMember = "Name";
|
||||
this.repositoryItemtxtcreatorId.Name = "repositoryItemtxtcreatorId";
|
||||
this.repositoryItemtxtcreatorId.ValueMember = "ID";
|
||||
//
|
||||
// gridColumn5
|
||||
//
|
||||
this.gridColumn5.Caption = "制单日期";
|
||||
this.gridColumn5.DisplayFormat.FormatString = "G";
|
||||
this.gridColumn5.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
|
||||
this.gridColumn5.FieldName = "createTime";
|
||||
this.gridColumn5.Name = "gridColumn5";
|
||||
this.gridColumn5.Visible = true;
|
||||
this.gridColumn5.VisibleIndex = 3;
|
||||
this.gridColumn5.Width = 201;
|
||||
//
|
||||
// gridColumn6
|
||||
//
|
||||
this.gridColumn6.Caption = "入库单号";
|
||||
this.gridColumn6.FieldName = "code";
|
||||
this.gridColumn6.Name = "gridColumn6";
|
||||
this.gridColumn6.Visible = true;
|
||||
this.gridColumn6.VisibleIndex = 4;
|
||||
this.gridColumn6.Width = 201;
|
||||
//
|
||||
// xtraTabControl1
|
||||
//
|
||||
this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.xtraTabControl1.Location = new System.Drawing.Point(0, 34);
|
||||
this.xtraTabControl1.Name = "xtraTabControl1";
|
||||
this.xtraTabControl1.SelectedTabPage = this.tabDataList;
|
||||
this.xtraTabControl1.Size = new System.Drawing.Size(1300, 766);
|
||||
this.xtraTabControl1.TabIndex = 1;
|
||||
this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
|
||||
this.tabDataList,
|
||||
this.tabDataDetail});
|
||||
//
|
||||
// tabDataList
|
||||
//
|
||||
this.tabDataList.Controls.Add(this.grdList);
|
||||
this.tabDataList.Name = "tabDataList";
|
||||
this.tabDataList.Size = new System.Drawing.Size(1294, 737);
|
||||
this.tabDataList.Text = "数据列表";
|
||||
//
|
||||
// grdList
|
||||
//
|
||||
this.grdList.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.grdList.Location = new System.Drawing.Point(0, 0);
|
||||
this.grdList.MainView = this.grdListView;
|
||||
this.grdList.Name = "grdList";
|
||||
this.grdList.Size = new System.Drawing.Size(1294, 737);
|
||||
this.grdList.TabIndex = 0;
|
||||
this.grdList.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
||||
this.grdListView});
|
||||
//
|
||||
// grdListView
|
||||
//
|
||||
this.grdListView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
|
||||
this.gridColumn1,
|
||||
this.gridColumn2,
|
||||
this.gridColumn3,
|
||||
this.gridColumn4,
|
||||
this.gridColumn5,
|
||||
this.gridColumn6});
|
||||
this.grdListView.GridControl = this.grdList;
|
||||
this.grdListView.Name = "grdListView";
|
||||
this.grdListView.OptionsBehavior.Editable = false;
|
||||
this.grdListView.OptionsView.ColumnAutoWidth = false;
|
||||
//
|
||||
// tabDataDetail
|
||||
//
|
||||
this.tabDataDetail.Controls.Add(this.panelControl2);
|
||||
this.tabDataDetail.Name = "tabDataDetail";
|
||||
this.tabDataDetail.Size = new System.Drawing.Size(1294, 737);
|
||||
this.tabDataDetail.Text = "数据编辑";
|
||||
//
|
||||
// panelControl2
|
||||
//
|
||||
this.panelControl2.Controls.Add(this.layoutControl1);
|
||||
this.panelControl2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panelControl2.Location = new System.Drawing.Point(0, 0);
|
||||
this.panelControl2.Name = "panelControl2";
|
||||
this.panelControl2.Size = new System.Drawing.Size(1294, 737);
|
||||
this.panelControl2.TabIndex = 0;
|
||||
//
|
||||
// layoutControl1
|
||||
//
|
||||
this.layoutControl1.Controls.Add(this.xtraTabControl2);
|
||||
this.layoutControl1.Controls.Add(this.txtid);
|
||||
this.layoutControl1.Controls.Add(this.txtinTime);
|
||||
this.layoutControl1.Controls.Add(this.txtdept);
|
||||
this.layoutControl1.Controls.Add(this.txtcreatorId);
|
||||
this.layoutControl1.Controls.Add(this.txtcreateTime);
|
||||
this.layoutControl1.Controls.Add(this.txtcode);
|
||||
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.layoutControl1.Location = new System.Drawing.Point(2, 2);
|
||||
this.layoutControl1.Name = "layoutControl1";
|
||||
this.layoutControl1.Root = this.layoutControlGroup1;
|
||||
this.layoutControl1.Size = new System.Drawing.Size(1290, 733);
|
||||
this.layoutControl1.TabIndex = 6;
|
||||
this.layoutControl1.Text = "layoutControl1";
|
||||
//
|
||||
// xtraTabControl2
|
||||
//
|
||||
this.xtraTabControl2.Location = new System.Drawing.Point(12, 84);
|
||||
this.xtraTabControl2.Name = "xtraTabControl2";
|
||||
this.xtraTabControl2.SelectedTabPage = this.xtraTabPage1;
|
||||
this.xtraTabControl2.Size = new System.Drawing.Size(1266, 637);
|
||||
this.xtraTabControl2.TabIndex = 0;
|
||||
this.xtraTabControl2.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
|
||||
this.xtraTabPage1});
|
||||
//
|
||||
// xtraTabPage1
|
||||
//
|
||||
this.xtraTabPage1.Controls.Add(this.gridControl1);
|
||||
this.xtraTabPage1.Name = "xtraTabPage1";
|
||||
this.xtraTabPage1.Size = new System.Drawing.Size(1260, 608);
|
||||
this.xtraTabPage1.Text = "入库明细";
|
||||
//
|
||||
// gridControl1
|
||||
//
|
||||
this.gridControl1.ContextMenuStrip = this.contextMenuStrip1;
|
||||
this.gridControl1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.gridControl1.Location = new System.Drawing.Point(0, 0);
|
||||
this.gridControl1.MainView = this.gridView1;
|
||||
this.gridControl1.Name = "gridControl1";
|
||||
this.gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
|
||||
this.repositoryItemLookUpEditproductID,
|
||||
this.repositoryItemLookUpEditunit,
|
||||
this.repositoryItemLookUpEditwarehouse,
|
||||
this.repositoryItemTextEditreturnsaledetailcode});
|
||||
this.gridControl1.Size = new System.Drawing.Size(1260, 608);
|
||||
this.gridControl1.TabIndex = 1;
|
||||
this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
||||
this.gridView1});
|
||||
//
|
||||
// contextMenuStrip1
|
||||
//
|
||||
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.toolStripMenuItemAdd,
|
||||
this.toolStripMenuItemDel});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(113, 48);
|
||||
//
|
||||
// toolStripMenuItemAdd
|
||||
//
|
||||
this.toolStripMenuItemAdd.Name = "toolStripMenuItemAdd";
|
||||
this.toolStripMenuItemAdd.Size = new System.Drawing.Size(112, 22);
|
||||
this.toolStripMenuItemAdd.Text = "新增行";
|
||||
this.toolStripMenuItemAdd.Click += new System.EventHandler(this.toolStripMenuItemAdd_Click);
|
||||
//
|
||||
// toolStripMenuItemDel
|
||||
//
|
||||
this.toolStripMenuItemDel.Name = "toolStripMenuItemDel";
|
||||
this.toolStripMenuItemDel.Size = new System.Drawing.Size(112, 22);
|
||||
this.toolStripMenuItemDel.Text = "删除行";
|
||||
this.toolStripMenuItemDel.Click += new System.EventHandler(this.toolStripMenuItemDel_Click);
|
||||
//
|
||||
// gridView1
|
||||
//
|
||||
this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
|
||||
this.gridColumn7,
|
||||
this.gridColumn8,
|
||||
this.gridColumn9,
|
||||
this.gridColumn10,
|
||||
this.gridColumn11,
|
||||
this.gridColumn12,
|
||||
this.gridColumn13,
|
||||
this.gridColumn14,
|
||||
this.gridColumn15,
|
||||
this.gridColumn16,
|
||||
this.gridColumn17,
|
||||
this.gridColumn18,
|
||||
this.gridColumn19,
|
||||
this.gridColumn20});
|
||||
this.gridView1.GridControl = this.gridControl1;
|
||||
this.gridView1.Name = "gridView1";
|
||||
this.gridView1.OptionsBehavior.Editable = false;
|
||||
this.gridView1.OptionsView.ColumnAutoWidth = false;
|
||||
this.gridView1.OptionsView.ShowGroupPanel = false;
|
||||
//
|
||||
// gridColumn7
|
||||
//
|
||||
this.gridColumn7.Caption = "id";
|
||||
this.gridColumn7.FieldName = "id";
|
||||
this.gridColumn7.Name = "gridColumn7";
|
||||
this.gridColumn7.Width = 201;
|
||||
//
|
||||
// gridColumn8
|
||||
//
|
||||
this.gridColumn8.Caption = "销售退货单号";
|
||||
this.gridColumn8.FieldName = "returnsalecode";
|
||||
this.gridColumn8.Name = "gridColumn8";
|
||||
this.gridColumn8.Visible = true;
|
||||
this.gridColumn8.VisibleIndex = 1;
|
||||
this.gridColumn8.Width = 201;
|
||||
//
|
||||
// gridColumn9
|
||||
//
|
||||
this.gridColumn9.Caption = "销售退货明细单号";
|
||||
this.gridColumn9.ColumnEdit = this.repositoryItemTextEditreturnsaledetailcode;
|
||||
this.gridColumn9.FieldName = "returnsaledetailcode";
|
||||
this.gridColumn9.Name = "gridColumn9";
|
||||
this.gridColumn9.Visible = true;
|
||||
this.gridColumn9.VisibleIndex = 0;
|
||||
this.gridColumn9.Width = 201;
|
||||
//
|
||||
// repositoryItemTextEditreturnsaledetailcode
|
||||
//
|
||||
this.repositoryItemTextEditreturnsaledetailcode.AutoHeight = false;
|
||||
this.repositoryItemTextEditreturnsaledetailcode.Name = "repositoryItemTextEditreturnsaledetailcode";
|
||||
//
|
||||
// gridColumn10
|
||||
//
|
||||
this.gridColumn10.Caption = "销售退货入库单号";
|
||||
this.gridColumn10.FieldName = "mastercode";
|
||||
this.gridColumn10.Name = "gridColumn10";
|
||||
this.gridColumn10.Visible = true;
|
||||
this.gridColumn10.VisibleIndex = 12;
|
||||
this.gridColumn10.Width = 201;
|
||||
//
|
||||
// gridColumn11
|
||||
//
|
||||
this.gridColumn11.Caption = "销售退货入库明细单号";
|
||||
this.gridColumn11.FieldName = "detailcode";
|
||||
this.gridColumn11.Name = "gridColumn11";
|
||||
this.gridColumn11.Visible = true;
|
||||
this.gridColumn11.VisibleIndex = 9;
|
||||
this.gridColumn11.Width = 201;
|
||||
//
|
||||
// gridColumn12
|
||||
//
|
||||
this.gridColumn12.Caption = "销售单号";
|
||||
this.gridColumn12.FieldName = "salecode";
|
||||
this.gridColumn12.Name = "gridColumn12";
|
||||
this.gridColumn12.Visible = true;
|
||||
this.gridColumn12.VisibleIndex = 10;
|
||||
this.gridColumn12.Width = 201;
|
||||
//
|
||||
// gridColumn13
|
||||
//
|
||||
this.gridColumn13.Caption = "销售明细单号";
|
||||
this.gridColumn13.FieldName = "saledetailcode";
|
||||
this.gridColumn13.Name = "gridColumn13";
|
||||
this.gridColumn13.Visible = true;
|
||||
this.gridColumn13.VisibleIndex = 11;
|
||||
this.gridColumn13.Width = 201;
|
||||
//
|
||||
// gridColumn14
|
||||
//
|
||||
this.gridColumn14.Caption = "产品";
|
||||
this.gridColumn14.ColumnEdit = this.repositoryItemLookUpEditproductID;
|
||||
this.gridColumn14.FieldName = "productID";
|
||||
this.gridColumn14.Name = "gridColumn14";
|
||||
this.gridColumn14.Visible = true;
|
||||
this.gridColumn14.VisibleIndex = 2;
|
||||
this.gridColumn14.Width = 201;
|
||||
//
|
||||
// repositoryItemLookUpEditproductID
|
||||
//
|
||||
this.repositoryItemLookUpEditproductID.AutoHeight = false;
|
||||
this.repositoryItemLookUpEditproductID.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.repositoryItemLookUpEditproductID.DisplayMember = "Name";
|
||||
this.repositoryItemLookUpEditproductID.Name = "repositoryItemLookUpEditproductID";
|
||||
this.repositoryItemLookUpEditproductID.NullText = "";
|
||||
this.repositoryItemLookUpEditproductID.ValueMember = "ID";
|
||||
//
|
||||
// gridColumn15
|
||||
//
|
||||
this.gridColumn15.Caption = "产品编号";
|
||||
this.gridColumn15.FieldName = "productcode";
|
||||
this.gridColumn15.Name = "gridColumn15";
|
||||
this.gridColumn15.Visible = true;
|
||||
this.gridColumn15.VisibleIndex = 3;
|
||||
this.gridColumn15.Width = 201;
|
||||
//
|
||||
// gridColumn16
|
||||
//
|
||||
this.gridColumn16.Caption = "规格型号";
|
||||
this.gridColumn16.FieldName = "spec";
|
||||
this.gridColumn16.Name = "gridColumn16";
|
||||
this.gridColumn16.Visible = true;
|
||||
this.gridColumn16.VisibleIndex = 4;
|
||||
this.gridColumn16.Width = 201;
|
||||
//
|
||||
// gridColumn17
|
||||
//
|
||||
this.gridColumn17.Caption = "入库数量";
|
||||
this.gridColumn17.FieldName = "number";
|
||||
this.gridColumn17.Name = "gridColumn17";
|
||||
this.gridColumn17.Visible = true;
|
||||
this.gridColumn17.VisibleIndex = 5;
|
||||
this.gridColumn17.Width = 201;
|
||||
//
|
||||
// gridColumn18
|
||||
//
|
||||
this.gridColumn18.Caption = "计量单位";
|
||||
this.gridColumn18.ColumnEdit = this.repositoryItemLookUpEditunit;
|
||||
this.gridColumn18.FieldName = "unit";
|
||||
this.gridColumn18.Name = "gridColumn18";
|
||||
this.gridColumn18.Visible = true;
|
||||
this.gridColumn18.VisibleIndex = 6;
|
||||
this.gridColumn18.Width = 201;
|
||||
//
|
||||
// repositoryItemLookUpEditunit
|
||||
//
|
||||
this.repositoryItemLookUpEditunit.AutoHeight = false;
|
||||
this.repositoryItemLookUpEditunit.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.repositoryItemLookUpEditunit.DisplayMember = "Name";
|
||||
this.repositoryItemLookUpEditunit.Name = "repositoryItemLookUpEditunit";
|
||||
this.repositoryItemLookUpEditunit.NullText = "";
|
||||
this.repositoryItemLookUpEditunit.ValueMember = "ID";
|
||||
//
|
||||
// gridColumn19
|
||||
//
|
||||
this.gridColumn19.Caption = "仓库";
|
||||
this.gridColumn19.ColumnEdit = this.repositoryItemLookUpEditwarehouse;
|
||||
this.gridColumn19.FieldName = "warehouse";
|
||||
this.gridColumn19.Name = "gridColumn19";
|
||||
this.gridColumn19.Visible = true;
|
||||
this.gridColumn19.VisibleIndex = 7;
|
||||
this.gridColumn19.Width = 201;
|
||||
//
|
||||
// repositoryItemLookUpEditwarehouse
|
||||
//
|
||||
this.repositoryItemLookUpEditwarehouse.AutoHeight = false;
|
||||
this.repositoryItemLookUpEditwarehouse.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.repositoryItemLookUpEditwarehouse.DisplayMember = "Name";
|
||||
this.repositoryItemLookUpEditwarehouse.Name = "repositoryItemLookUpEditwarehouse";
|
||||
this.repositoryItemLookUpEditwarehouse.NullText = "";
|
||||
this.repositoryItemLookUpEditwarehouse.ValueMember = "ID";
|
||||
//
|
||||
// gridColumn20
|
||||
//
|
||||
this.gridColumn20.Caption = "备注";
|
||||
this.gridColumn20.FieldName = "remark";
|
||||
this.gridColumn20.Name = "gridColumn20";
|
||||
this.gridColumn20.Visible = true;
|
||||
this.gridColumn20.VisibleIndex = 8;
|
||||
this.gridColumn20.Width = 201;
|
||||
//
|
||||
// txtid
|
||||
//
|
||||
this.txtid.Location = new System.Drawing.Point(63, 12);
|
||||
this.txtid.Name = "txtid";
|
||||
this.txtid.Size = new System.Drawing.Size(580, 20);
|
||||
this.txtid.StyleController = this.layoutControl1;
|
||||
this.txtid.TabIndex = 1;
|
||||
//
|
||||
// txtinTime
|
||||
//
|
||||
this.txtinTime.EditValue = null;
|
||||
this.txtinTime.ImeMode = System.Windows.Forms.ImeMode.Off;
|
||||
this.txtinTime.Location = new System.Drawing.Point(698, 36);
|
||||
this.txtinTime.Name = "txtinTime";
|
||||
this.txtinTime.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.txtinTime.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton()});
|
||||
this.txtinTime.Properties.DisplayFormat.FormatString = "G";
|
||||
this.txtinTime.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
|
||||
this.txtinTime.Size = new System.Drawing.Size(580, 20);
|
||||
this.txtinTime.StyleController = this.layoutControl1;
|
||||
this.txtinTime.TabIndex = 2;
|
||||
//
|
||||
// txtdept
|
||||
//
|
||||
this.txtdept.EditValue = "";
|
||||
this.txtdept.Location = new System.Drawing.Point(63, 36);
|
||||
this.txtdept.Name = "txtdept";
|
||||
this.txtdept.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.txtdept.Properties.DisplayMember = "Name";
|
||||
this.txtdept.Properties.TreeList = this.txtdeptTreeList;
|
||||
this.txtdept.Properties.ValueMember = "ID";
|
||||
this.txtdept.Size = new System.Drawing.Size(580, 20);
|
||||
this.txtdept.StyleController = this.layoutControl1;
|
||||
this.txtdept.TabIndex = 3;
|
||||
//
|
||||
// txtdeptTreeList
|
||||
//
|
||||
this.txtdeptTreeList.Location = new System.Drawing.Point(0, 0);
|
||||
this.txtdeptTreeList.Name = "txtdeptTreeList";
|
||||
this.txtdeptTreeList.OptionsView.ShowIndentAsRowStyle = true;
|
||||
this.txtdeptTreeList.ParentFieldName = "PID";
|
||||
this.txtdeptTreeList.Size = new System.Drawing.Size(400, 200);
|
||||
this.txtdeptTreeList.TabIndex = 0;
|
||||
//
|
||||
// txtcreatorId
|
||||
//
|
||||
this.txtcreatorId.EditValue = "";
|
||||
this.txtcreatorId.Location = new System.Drawing.Point(63, 60);
|
||||
this.txtcreatorId.Name = "txtcreatorId";
|
||||
this.txtcreatorId.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.txtcreatorId.Properties.DisplayMember = "Name";
|
||||
this.txtcreatorId.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains;
|
||||
this.txtcreatorId.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;
|
||||
this.txtcreatorId.Properties.ValueMember = "ID";
|
||||
this.txtcreatorId.Size = new System.Drawing.Size(580, 20);
|
||||
this.txtcreatorId.StyleController = this.layoutControl1;
|
||||
this.txtcreatorId.TabIndex = 4;
|
||||
//
|
||||
// txtcreateTime
|
||||
//
|
||||
this.txtcreateTime.EditValue = null;
|
||||
this.txtcreateTime.ImeMode = System.Windows.Forms.ImeMode.Off;
|
||||
this.txtcreateTime.Location = new System.Drawing.Point(698, 60);
|
||||
this.txtcreateTime.Name = "txtcreateTime";
|
||||
this.txtcreateTime.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.txtcreateTime.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton()});
|
||||
this.txtcreateTime.Properties.DisplayFormat.FormatString = "G";
|
||||
this.txtcreateTime.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
|
||||
this.txtcreateTime.Size = new System.Drawing.Size(580, 20);
|
||||
this.txtcreateTime.StyleController = this.layoutControl1;
|
||||
this.txtcreateTime.TabIndex = 5;
|
||||
//
|
||||
// txtcode
|
||||
//
|
||||
this.txtcode.Location = new System.Drawing.Point(698, 12);
|
||||
this.txtcode.Name = "txtcode";
|
||||
this.txtcode.Size = new System.Drawing.Size(580, 20);
|
||||
this.txtcode.StyleController = this.layoutControl1;
|
||||
this.txtcode.TabIndex = 6;
|
||||
//
|
||||
// layoutControlGroup1
|
||||
//
|
||||
this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1";
|
||||
this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
|
||||
this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
|
||||
this.layoutControlItem1,
|
||||
this.layoutControlItem3,
|
||||
this.layoutControlItem4,
|
||||
this.layoutControlItem6,
|
||||
this.layoutControlItem2,
|
||||
this.layoutControlItem5,
|
||||
this.layoutControlItem8});
|
||||
this.layoutControlGroup1.Name = "layoutControlGroup1";
|
||||
this.layoutControlGroup1.Size = new System.Drawing.Size(1290, 733);
|
||||
this.layoutControlGroup1.TextVisible = false;
|
||||
//
|
||||
// layoutControlItem1
|
||||
//
|
||||
this.layoutControlItem1.Control = this.txtid;
|
||||
this.layoutControlItem1.CustomizationFormText = "id";
|
||||
this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
|
||||
this.layoutControlItem1.Name = "layoutControlItem1";
|
||||
this.layoutControlItem1.Size = new System.Drawing.Size(635, 24);
|
||||
this.layoutControlItem1.Text = "id";
|
||||
this.layoutControlItem1.TextSize = new System.Drawing.Size(48, 14);
|
||||
//
|
||||
// layoutControlItem3
|
||||
//
|
||||
this.layoutControlItem3.Control = this.txtdept;
|
||||
this.layoutControlItem3.CustomizationFormText = "入库单位";
|
||||
this.layoutControlItem3.Location = new System.Drawing.Point(0, 24);
|
||||
this.layoutControlItem3.Name = "layoutControlItem3";
|
||||
this.layoutControlItem3.Size = new System.Drawing.Size(635, 24);
|
||||
this.layoutControlItem3.Text = "入库单位";
|
||||
this.layoutControlItem3.TextSize = new System.Drawing.Size(48, 14);
|
||||
//
|
||||
// layoutControlItem4
|
||||
//
|
||||
this.layoutControlItem4.Control = this.txtcreatorId;
|
||||
this.layoutControlItem4.CustomizationFormText = "制单人";
|
||||
this.layoutControlItem4.Location = new System.Drawing.Point(0, 48);
|
||||
this.layoutControlItem4.Name = "layoutControlItem4";
|
||||
this.layoutControlItem4.Size = new System.Drawing.Size(635, 24);
|
||||
this.layoutControlItem4.Text = "制单人";
|
||||
this.layoutControlItem4.TextSize = new System.Drawing.Size(48, 14);
|
||||
//
|
||||
// layoutControlItem6
|
||||
//
|
||||
this.layoutControlItem6.Control = this.txtcode;
|
||||
this.layoutControlItem6.CustomizationFormText = "入库单号";
|
||||
this.layoutControlItem6.Location = new System.Drawing.Point(635, 0);
|
||||
this.layoutControlItem6.Name = "layoutControlItem6";
|
||||
this.layoutControlItem6.Size = new System.Drawing.Size(635, 24);
|
||||
this.layoutControlItem6.Text = "入库单号";
|
||||
this.layoutControlItem6.TextSize = new System.Drawing.Size(48, 14);
|
||||
//
|
||||
// layoutControlItem2
|
||||
//
|
||||
this.layoutControlItem2.Control = this.txtinTime;
|
||||
this.layoutControlItem2.CustomizationFormText = "入库日期";
|
||||
this.layoutControlItem2.Location = new System.Drawing.Point(635, 24);
|
||||
this.layoutControlItem2.Name = "layoutControlItem2";
|
||||
this.layoutControlItem2.Size = new System.Drawing.Size(635, 24);
|
||||
this.layoutControlItem2.Text = "入库日期";
|
||||
this.layoutControlItem2.TextSize = new System.Drawing.Size(48, 14);
|
||||
//
|
||||
// layoutControlItem5
|
||||
//
|
||||
this.layoutControlItem5.Control = this.txtcreateTime;
|
||||
this.layoutControlItem5.CustomizationFormText = "制单日期";
|
||||
this.layoutControlItem5.Location = new System.Drawing.Point(635, 48);
|
||||
this.layoutControlItem5.Name = "layoutControlItem5";
|
||||
this.layoutControlItem5.Size = new System.Drawing.Size(635, 24);
|
||||
this.layoutControlItem5.Text = "制单日期";
|
||||
this.layoutControlItem5.TextSize = new System.Drawing.Size(48, 14);
|
||||
//
|
||||
// layoutControlItem8
|
||||
//
|
||||
this.layoutControlItem8.Control = this.xtraTabControl2;
|
||||
this.layoutControlItem8.Location = new System.Drawing.Point(0, 72);
|
||||
this.layoutControlItem8.Name = "layoutControlItem8";
|
||||
this.layoutControlItem8.Size = new System.Drawing.Size(1270, 641);
|
||||
this.layoutControlItem8.TextSize = new System.Drawing.Size(0, 0);
|
||||
this.layoutControlItem8.TextVisible = false;
|
||||
//
|
||||
// FrmsaleInWarehouse
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1300, 800);
|
||||
this.Controls.Add(this.xtraTabControl1);
|
||||
this.Name = "FrmsaleInWarehouse";
|
||||
this.Text = "销售退货入库单";
|
||||
this.Load += new System.EventHandler(this.FrmsaleInWarehouse_Load);
|
||||
this.Controls.SetChildIndex(this.xtraTabControl1, 0);
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtdept)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtdeptTreeList)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcreatorId)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit();
|
||||
this.xtraTabControl1.ResumeLayout(false);
|
||||
this.tabDataList.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.grdList)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.grdListView)).EndInit();
|
||||
this.tabDataDetail.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit();
|
||||
this.panelControl2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
|
||||
this.layoutControl1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl2)).EndInit();
|
||||
this.xtraTabControl2.ResumeLayout(false);
|
||||
this.xtraTabPage1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEditreturnsaledetailcode)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditproductID)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditunit)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditwarehouse)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtinTime.Properties.CalendarTimeProperties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtinTime.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtdept.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtdeptTreeList)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtcreatorId.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtcreateTime.Properties.CalendarTimeProperties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtcreateTime.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtcode.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private XtraTabControl xtraTabControl1;
|
||||
private XtraTabPage tabDataList;
|
||||
private XtraTabPage tabDataDetail;
|
||||
private DevExpress.XtraGrid.GridControl grdList;
|
||||
private DevExpress.XtraGrid.Views.Grid.GridView grdListView;
|
||||
private PanelControl panelControl2;
|
||||
private DevExpress.XtraLayout.LayoutControl layoutControl1;
|
||||
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1;
|
||||
|
||||
private DevExpress.XtraGrid.Columns.GridColumn gridColumn1;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn gridColumn2;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn gridColumn3;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn gridColumn4;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn gridColumn5;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn gridColumn6;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtid;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.DateEdit txtinTime;
|
||||
private DevExpress.XtraTreeList.TreeList txtdeptTreeList;
|
||||
private DevExpress.XtraEditors.Repository.RepositoryItemTreeListLookUpEdit repositoryItemTreeListtxtdept;
|
||||
private DevExpress.XtraTreeList.TreeList repositoryItemTreeListtxtdeptTreeList;
|
||||
|
||||
private DevExpress.XtraEditors.TreeListLookUpEdit txtdept;
|
||||
private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtcreatorId;
|
||||
|
||||
private DevExpress.XtraEditors.LookUpEdit txtcreatorId;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.DateEdit txtcreateTime;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtcode;
|
||||
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6;
|
||||
private XtraTabControl xtraTabControl2;
|
||||
private XtraTabPage xtraTabPage1;
|
||||
private LayoutControlItem layoutControlItem8;
|
||||
private DevExpress.XtraGrid.GridControl gridControl1;
|
||||
private DevExpress.XtraGrid.Views.Grid.GridView gridView1;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn gridColumn7;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn gridColumn8;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn gridColumn9;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn gridColumn10;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn gridColumn11;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn gridColumn12;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn gridColumn13;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn gridColumn14;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn gridColumn15;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn gridColumn16;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn gridColumn17;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn gridColumn18;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn gridColumn19;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn gridColumn20;
|
||||
private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemLookUpEditproductID;
|
||||
private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemLookUpEditunit;
|
||||
private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemLookUpEditwarehouse;
|
||||
private DevExpress.XtraEditors.Repository.RepositoryItemTextEdit repositoryItemTextEditreturnsaledetailcode;
|
||||
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
|
||||
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemAdd;
|
||||
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemDel;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,123 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
|
|
@ -12,6 +12,8 @@ using DevExpress.XtraLayout;
|
|||
using MES.Entity;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity;
|
||||
using CCWin.SkinClass;
|
||||
|
||||
namespace MES.Form
|
||||
{
|
||||
public partial class FrmsaleOutWarehouse : FrmBaseForm
|
||||
|
|
@ -161,6 +163,9 @@ namespace MES.Form
|
|||
a.masterid = info.id;
|
||||
a.mastercode = info.code;
|
||||
a.detailcode = codedetail;
|
||||
//更新产品入库数量
|
||||
productInfo product = db.productInfo.Find(a.productid);
|
||||
product.saleoutnumber += a.number;
|
||||
});
|
||||
db.saleOutWarehouseDetailInfo.AddRange(detaiListAdd);
|
||||
db.SaveChanges();
|
||||
|
|
@ -182,6 +187,9 @@ namespace MES.Form
|
|||
num++;
|
||||
string codedetail = code + num;
|
||||
a.detailcode = codedetail;
|
||||
//更新产品入库数量
|
||||
productInfo product = db.productInfo.Find(a.productid);
|
||||
product.saleoutnumber += a.number;
|
||||
});
|
||||
db.saleOutWarehouseDetailInfo.AddRange(detaiListAdd);
|
||||
|
||||
|
|
@ -190,13 +198,26 @@ namespace MES.Form
|
|||
|
||||
detaiListEdit.ForEach((a) =>
|
||||
{
|
||||
|
||||
decimal oldnumber =
|
||||
GetDataTableUtils
|
||||
.SqlTableBySql(
|
||||
$"select number from saleOutWarehouseDetail where id={a.id}")
|
||||
.Rows[0]["number"].ToDecimal(0);
|
||||
//a.buyercode = info.buyercode;
|
||||
productInfo product = db.productInfo.Find(a.productid);
|
||||
product.saleoutnumber += a.number;
|
||||
product.saleoutnumber -= oldnumber;
|
||||
db.Entry(a).State = EntityState.Modified;
|
||||
});
|
||||
|
||||
List<saleOutWarehouseDetailInfo> detaiListDel =
|
||||
dic["Del"];
|
||||
detaiListDel.ForEach((a) => { db.Entry(a).State = EntityState.Deleted; });
|
||||
detaiListDel.ForEach((a) =>
|
||||
{
|
||||
productInfo product = db.productInfo.Find(a.productid);
|
||||
product.saleoutnumber -= a.number;
|
||||
db.Entry(a).State = EntityState.Deleted;
|
||||
});
|
||||
db.SaveChanges();
|
||||
}
|
||||
}
|
||||
|
|
@ -239,6 +260,11 @@ namespace MES.Form
|
|||
db.Entry(info).State=EntityState.Deleted;
|
||||
List<saleOutWarehouseDetailInfo> list = db.saleOutWarehouseDetailInfo
|
||||
.Where(p => p.masterid == info.id).ToList();
|
||||
foreach (var item in list)
|
||||
{
|
||||
productInfo product = db.productInfo.Find(item.productid);
|
||||
product.productinnumber -= item.number;
|
||||
}
|
||||
db.saleOutWarehouseDetailInfo.RemoveRange(list);
|
||||
gridControl1.DataSource = null;
|
||||
db.SaveChanges();
|
||||
|
|
|
|||
|
|
@ -54,6 +54,9 @@ namespace MES.Form
|
|||
this.xtraTabControl2 = new DevExpress.XtraTab.XtraTabControl();
|
||||
this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage();
|
||||
this.gridControl1 = new DevExpress.XtraGrid.GridControl();
|
||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.toolStripMenuItemAdd = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItemDel = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
|
||||
this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn9 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
|
|
@ -61,14 +64,18 @@ namespace MES.Form
|
|||
this.gridColumn11 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn12 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn13 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemTextEditsaledeliverdetailcode = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit();
|
||||
this.gridColumn14 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn15 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn16 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemLookUpEditproductid = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.gridColumn17 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn18 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn19 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn20 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemLookUpEditunit = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.gridColumn21 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemLookUpEditwarehouse = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.gridColumn22 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.txtid = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtcode = new DevExpress.XtraEditors.TextEdit();
|
||||
|
|
@ -87,13 +94,6 @@ namespace MES.Form
|
|||
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.repositoryItemLookUpEditproductid = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.repositoryItemLookUpEditunit = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.repositoryItemLookUpEditwarehouse = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.repositoryItemTextEditsaledeliverdetailcode = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit();
|
||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.toolStripMenuItemAdd = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItemDel = new System.Windows.Forms.ToolStripMenuItem();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtdept)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtdeptTreeList)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcreatorId)).BeginInit();
|
||||
|
|
@ -111,7 +111,12 @@ namespace MES.Form
|
|||
this.xtraTabControl2.SuspendLayout();
|
||||
this.xtraTabPage1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEditsaledeliverdetailcode)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditproductid)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditunit)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditwarehouse)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtcode.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtouttime.Properties.CalendarTimeProperties)).BeginInit();
|
||||
|
|
@ -131,11 +136,6 @@ namespace MES.Form
|
|||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditproductid)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditunit)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditwarehouse)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEditsaledeliverdetailcode)).BeginInit();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// gridColumn1
|
||||
|
|
@ -345,6 +345,28 @@ namespace MES.Form
|
|||
this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
||||
this.gridView1});
|
||||
//
|
||||
// contextMenuStrip1
|
||||
//
|
||||
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.toolStripMenuItemAdd,
|
||||
this.toolStripMenuItemDel});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(181, 70);
|
||||
//
|
||||
// toolStripMenuItemAdd
|
||||
//
|
||||
this.toolStripMenuItemAdd.Name = "toolStripMenuItemAdd";
|
||||
this.toolStripMenuItemAdd.Size = new System.Drawing.Size(180, 22);
|
||||
this.toolStripMenuItemAdd.Text = "新增行";
|
||||
this.toolStripMenuItemAdd.Click += new System.EventHandler(this.toolStripMenuItemAdd_Click);
|
||||
//
|
||||
// toolStripMenuItemDel
|
||||
//
|
||||
this.toolStripMenuItemDel.Name = "toolStripMenuItemDel";
|
||||
this.toolStripMenuItemDel.Size = new System.Drawing.Size(180, 22);
|
||||
this.toolStripMenuItemDel.Text = "删除行";
|
||||
this.toolStripMenuItemDel.Click += new System.EventHandler(this.toolStripMenuItemDel_Click);
|
||||
//
|
||||
// gridView1
|
||||
//
|
||||
this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
|
||||
|
|
@ -420,6 +442,11 @@ namespace MES.Form
|
|||
this.gridColumn13.VisibleIndex = 0;
|
||||
this.gridColumn13.Width = 201;
|
||||
//
|
||||
// repositoryItemTextEditsaledeliverdetailcode
|
||||
//
|
||||
this.repositoryItemTextEditsaledeliverdetailcode.AutoHeight = false;
|
||||
this.repositoryItemTextEditsaledeliverdetailcode.Name = "repositoryItemTextEditsaledeliverdetailcode";
|
||||
//
|
||||
// gridColumn14
|
||||
//
|
||||
this.gridColumn14.Caption = "销售单号";
|
||||
|
|
@ -448,6 +475,16 @@ namespace MES.Form
|
|||
this.gridColumn16.VisibleIndex = 4;
|
||||
this.gridColumn16.Width = 201;
|
||||
//
|
||||
// repositoryItemLookUpEditproductid
|
||||
//
|
||||
this.repositoryItemLookUpEditproductid.AutoHeight = false;
|
||||
this.repositoryItemLookUpEditproductid.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.repositoryItemLookUpEditproductid.DisplayMember = "Name";
|
||||
this.repositoryItemLookUpEditproductid.Name = "repositoryItemLookUpEditproductid";
|
||||
this.repositoryItemLookUpEditproductid.NullText = "";
|
||||
this.repositoryItemLookUpEditproductid.ValueMember = "ID";
|
||||
//
|
||||
// gridColumn17
|
||||
//
|
||||
this.gridColumn17.Caption = "产品编号";
|
||||
|
|
@ -485,6 +522,16 @@ namespace MES.Form
|
|||
this.gridColumn20.VisibleIndex = 8;
|
||||
this.gridColumn20.Width = 201;
|
||||
//
|
||||
// repositoryItemLookUpEditunit
|
||||
//
|
||||
this.repositoryItemLookUpEditunit.AutoHeight = false;
|
||||
this.repositoryItemLookUpEditunit.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.repositoryItemLookUpEditunit.DisplayMember = "Name";
|
||||
this.repositoryItemLookUpEditunit.Name = "repositoryItemLookUpEditunit";
|
||||
this.repositoryItemLookUpEditunit.NullText = "";
|
||||
this.repositoryItemLookUpEditunit.ValueMember = "ID";
|
||||
//
|
||||
// gridColumn21
|
||||
//
|
||||
this.gridColumn21.Caption = "仓库";
|
||||
|
|
@ -495,6 +542,16 @@ namespace MES.Form
|
|||
this.gridColumn21.VisibleIndex = 9;
|
||||
this.gridColumn21.Width = 201;
|
||||
//
|
||||
// repositoryItemLookUpEditwarehouse
|
||||
//
|
||||
this.repositoryItemLookUpEditwarehouse.AutoHeight = false;
|
||||
this.repositoryItemLookUpEditwarehouse.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.repositoryItemLookUpEditwarehouse.DisplayMember = "Name";
|
||||
this.repositoryItemLookUpEditwarehouse.Name = "repositoryItemLookUpEditwarehouse";
|
||||
this.repositoryItemLookUpEditwarehouse.NullText = "";
|
||||
this.repositoryItemLookUpEditwarehouse.ValueMember = "ID";
|
||||
//
|
||||
// gridColumn22
|
||||
//
|
||||
this.gridColumn22.Caption = "备注";
|
||||
|
|
@ -694,63 +751,6 @@ namespace MES.Form
|
|||
this.layoutControlItem8.TextSize = new System.Drawing.Size(0, 0);
|
||||
this.layoutControlItem8.TextVisible = false;
|
||||
//
|
||||
// repositoryItemLookUpEditproductid
|
||||
//
|
||||
this.repositoryItemLookUpEditproductid.AutoHeight = false;
|
||||
this.repositoryItemLookUpEditproductid.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.repositoryItemLookUpEditproductid.DisplayMember = "Name";
|
||||
this.repositoryItemLookUpEditproductid.Name = "repositoryItemLookUpEditproductid";
|
||||
this.repositoryItemLookUpEditproductid.NullText = "";
|
||||
this.repositoryItemLookUpEditproductid.ValueMember = "ID";
|
||||
//
|
||||
// repositoryItemLookUpEditunit
|
||||
//
|
||||
this.repositoryItemLookUpEditunit.AutoHeight = false;
|
||||
this.repositoryItemLookUpEditunit.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.repositoryItemLookUpEditunit.DisplayMember = "Name";
|
||||
this.repositoryItemLookUpEditunit.Name = "repositoryItemLookUpEditunit";
|
||||
this.repositoryItemLookUpEditunit.NullText = "";
|
||||
this.repositoryItemLookUpEditunit.ValueMember = "ID";
|
||||
//
|
||||
// repositoryItemLookUpEditwarehouse
|
||||
//
|
||||
this.repositoryItemLookUpEditwarehouse.AutoHeight = false;
|
||||
this.repositoryItemLookUpEditwarehouse.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.repositoryItemLookUpEditwarehouse.DisplayMember = "Name";
|
||||
this.repositoryItemLookUpEditwarehouse.Name = "repositoryItemLookUpEditwarehouse";
|
||||
this.repositoryItemLookUpEditwarehouse.NullText = "";
|
||||
this.repositoryItemLookUpEditwarehouse.ValueMember = "ID";
|
||||
//
|
||||
// repositoryItemTextEditsaledeliverdetailcode
|
||||
//
|
||||
this.repositoryItemTextEditsaledeliverdetailcode.AutoHeight = false;
|
||||
this.repositoryItemTextEditsaledeliverdetailcode.Name = "repositoryItemTextEditsaledeliverdetailcode";
|
||||
//
|
||||
// contextMenuStrip1
|
||||
//
|
||||
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.toolStripMenuItemAdd,
|
||||
this.toolStripMenuItemDel});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(181, 70);
|
||||
//
|
||||
// toolStripMenuItemAdd
|
||||
//
|
||||
this.toolStripMenuItemAdd.Name = "toolStripMenuItemAdd";
|
||||
this.toolStripMenuItemAdd.Size = new System.Drawing.Size(180, 22);
|
||||
this.toolStripMenuItemAdd.Text = "新增行";
|
||||
this.toolStripMenuItemAdd.Click += new System.EventHandler(this.toolStripMenuItemAdd_Click);
|
||||
//
|
||||
// toolStripMenuItemDel
|
||||
//
|
||||
this.toolStripMenuItemDel.Name = "toolStripMenuItemDel";
|
||||
this.toolStripMenuItemDel.Size = new System.Drawing.Size(180, 22);
|
||||
this.toolStripMenuItemDel.Text = "删除行";
|
||||
this.toolStripMenuItemDel.Click += new System.EventHandler(this.toolStripMenuItemDel_Click);
|
||||
//
|
||||
// FrmsaleOutWarehouse
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
|
||||
|
|
@ -778,7 +778,12 @@ namespace MES.Form
|
|||
this.xtraTabControl2.ResumeLayout(false);
|
||||
this.xtraTabPage1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEditsaledeliverdetailcode)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditproductid)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditunit)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditwarehouse)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtcode.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtouttime.Properties.CalendarTimeProperties)).EndInit();
|
||||
|
|
@ -798,11 +803,6 @@ namespace MES.Form
|
|||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditproductid)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditunit)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditwarehouse)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEditsaledeliverdetailcode)).EndInit();
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -174,6 +174,8 @@
|
|||
<Compile Include="Entity\returnsaleInfo.cs" />
|
||||
<Compile Include="Entity\saledetailInfo.cs" />
|
||||
<Compile Include="Entity\saleInfo.cs" />
|
||||
<Compile Include="Entity\saleInWarehouseDetailInfo.cs" />
|
||||
<Compile Include="Entity\saleInWarehouseInfo.cs" />
|
||||
<Compile Include="Entity\saleOutWarehouseDetailInfo.cs" />
|
||||
<Compile Include="Entity\saleOutWarehouseInfo.cs" />
|
||||
<Compile Include="Entity\stockDataInfo.cs" />
|
||||
|
|
@ -314,6 +316,12 @@
|
|||
<Compile Include="Form\Frmsale.designer.cs">
|
||||
<DependentUpon>Frmsale.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Form\FrmsaleInWarehouse.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form\FrmsaleInWarehouse.designer.cs">
|
||||
<DependentUpon>FrmsaleInWarehouse.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Form\FrmsaleOutWarehouse.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
|
|
@ -563,6 +571,9 @@
|
|||
<EmbeddedResource Include="Form\Frmsale.resx">
|
||||
<DependentUpon>Frmsale.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Form\FrmsaleInWarehouse.resx">
|
||||
<DependentUpon>FrmsaleInWarehouse.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Form\FrmsaleOutWarehouse.resx">
|
||||
<DependentUpon>FrmsaleOutWarehouse.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
|
|
|||
Loading…
Reference in New Issue