增加 产品信息 物料信息 客户信息 供应商信息 仓库信息
parent
b3f20fe2a6
commit
ecbbebe347
Binary file not shown.
|
|
@ -2,6 +2,7 @@ using System;
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity;
|
||||
using System.Linq;
|
||||
using ERP.Entity;
|
||||
using MES.Entity;
|
||||
|
||||
namespace MES
|
||||
|
|
@ -23,6 +24,14 @@ namespace MES
|
|||
public virtual DbSet<sysRoleInfo> sysRoleInfo { get; set; }
|
||||
public virtual DbSet<lotteryInfo> lotteryInfo { get; set; }
|
||||
public virtual DbSet<sysToolButtonInfo> sysToolButtonInfo { get; set; }
|
||||
public virtual DbSet<productInfo> productInfo { get; set; }
|
||||
|
||||
public virtual DbSet<materialInfo> materialInfo { get; set; }
|
||||
|
||||
public virtual DbSet<customerInfo> customerInfo { get; set; }
|
||||
|
||||
|
||||
public virtual DbSet<supplierInfo> supplierInfo { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,38 @@
|
|||
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("customer")]
|
||||
public partial class customerInfo
|
||||
{
|
||||
[ModelBindControl("txtid")]
|
||||
public int id{set;get;}
|
||||
[ModelBindControl("txtcustomername")]
|
||||
public string customername{set;get;}
|
||||
[ModelBindControl("txtcustomertype")]
|
||||
public int customertype{set;get;}
|
||||
[ModelBindControl("txtcontactuser")]
|
||||
public int contactuser{set;get;}
|
||||
[ModelBindControl("txtaddress")]
|
||||
public string address{set;get;}
|
||||
[ModelBindControl("txtstartreceipt")]
|
||||
public decimal startreceipt{set;get;}
|
||||
[ModelBindControl("txtcustomercode")]
|
||||
public string customercode{set;get;}
|
||||
[ModelBindControl("txttotalreceivables")]
|
||||
public decimal totalreceivables{set;get;}
|
||||
[ModelBindControl("txttotalamountsettled")]
|
||||
public decimal totalamountsettled{set;get;}
|
||||
[ModelBindControl("txttotaloutstandingamount")]
|
||||
public decimal totaloutstandingamount{set;get;}
|
||||
[ModelBindControl("txtremark")]
|
||||
public string remark{set;get;}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
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("material")]
|
||||
public partial class materialInfo
|
||||
{
|
||||
[ModelBindControl("txtid")]
|
||||
public int id{set;get;}
|
||||
[ModelBindControl("txtname")]
|
||||
public string name{set;get;}
|
||||
[ModelBindControl("txtcode")]
|
||||
public string code{set;get;}
|
||||
[ModelBindControl("txtspec")]
|
||||
public string spec{set;get;}
|
||||
[ModelBindControl("txtunit")]
|
||||
public int unit{set;get;}
|
||||
[ModelBindControl("txtreferprice")]
|
||||
public decimal referprice{set;get;}
|
||||
[ModelBindControl("txtmaterialtype")]
|
||||
public int materialtype{set;get;}
|
||||
[ModelBindControl("txtwarehouse")]
|
||||
public int warehouse{set;get;}
|
||||
[ModelBindControl("txtPOinnumber")]
|
||||
public decimal POinnumber{set;get;}
|
||||
[ModelBindControl("txtsalereturnnumber")]
|
||||
public decimal salereturnnumber{set;get;}
|
||||
[ModelBindControl("txtYDProductConsume")]
|
||||
public decimal YDProductConsume{set;get;}
|
||||
[ModelBindControl("txtproductmaterialreturn")]
|
||||
public decimal productmaterialreturn{set;get;}
|
||||
[ModelBindControl("txtstocknumber")]
|
||||
public decimal stocknumber{set;get;}
|
||||
[ModelBindControl("txtstockwarnnumber")]
|
||||
public decimal stockwarnnumber{set;get;}
|
||||
[ModelBindControl("txtremark")]
|
||||
public string remark{set;get;}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
using WinformGeneralDeveloperFrame.Commons;
|
||||
|
||||
namespace ERP.Entity
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.Spatial;
|
||||
|
||||
[Table("product")]
|
||||
public partial class productInfo
|
||||
{
|
||||
[ModelBindControl("txtid")]
|
||||
public int id{set;get;}
|
||||
[ModelBindControl("txtproductname")]
|
||||
public string productname{set;get;}
|
||||
[ModelBindControl("txtspec")]
|
||||
public string spec{set;get;}
|
||||
[ModelBindControl("txtdefaultprice")]
|
||||
public decimal defaultprice{set;get;}
|
||||
[ModelBindControl("txtunit")]
|
||||
public string unit{set;get;}
|
||||
[ModelBindControl("txtwarehouse")]
|
||||
public int warehouse{set;get;}
|
||||
[ModelBindControl("txtproducttype")]
|
||||
public string producttype{set;get;}
|
||||
[ModelBindControl("txtproductcode")]
|
||||
public string productcode{set;get;}
|
||||
[ModelBindControl("txtstocknumber")]
|
||||
public decimal stocknumber{set;get;}
|
||||
[ModelBindControl("txtstartnumber")]
|
||||
public decimal startnumber{set;get;}
|
||||
[ModelBindControl("txtstartprice")]
|
||||
public decimal startprice{set;get;}
|
||||
[ModelBindControl("txtproductinnumber")]
|
||||
public decimal productinnumber{set;get;}
|
||||
[ModelBindControl("txtsaleoutnumber")]
|
||||
public decimal saleoutnumber{set;get;}
|
||||
[ModelBindControl("txtcustomerreturnnumber")]
|
||||
public decimal customerreturnnumber{set;get;}
|
||||
[ModelBindControl("txtstockwarnnumber")]
|
||||
public decimal stockwarnnumber{set;get;}
|
||||
[ModelBindControl("txtcreatorId")]
|
||||
public int creatorId{set;get;}
|
||||
[ModelBindControl("txtcreateTime")]
|
||||
public DateTime? createTime{set;get;}=DateTime.Now;
|
||||
[ModelBindControl("txteditorId")]
|
||||
public int editorId{set;get;}
|
||||
[ModelBindControl("txteditTime")]
|
||||
public DateTime? editTime{set;get;}=DateTime.Now;
|
||||
[ModelBindControl("txtremark")]
|
||||
public string remark{set;get;}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using WinformGeneralDeveloperFrame.Commons;
|
||||
|
||||
namespace MES.Entity
|
||||
namespace ERP.Entity
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
|
@ -11,72 +11,14 @@ namespace MES.Entity
|
|||
[Table("stock")]
|
||||
public partial class stockInfo
|
||||
{
|
||||
[ModelBindControl("txtcode")]
|
||||
public string code{set;get;}
|
||||
[ModelBindControl("txtname")]
|
||||
public string name{set;get;}
|
||||
[ModelBindControl("txtstartPrice")]
|
||||
public decimal startPrice{set;get;}
|
||||
[ModelBindControl("txtolePrice")]
|
||||
public decimal olePrice{set;get;}
|
||||
[ModelBindControl("txtnowPrice")]
|
||||
public decimal nowPrice{set;get;}
|
||||
[ModelBindControl("txtmaxPrice")]
|
||||
public decimal maxPrice{set;get;}
|
||||
[ModelBindControl("txtminPrice")]
|
||||
public decimal minPrice{set;get;}
|
||||
[ModelBindControl("txtbidderPrice")]
|
||||
public decimal bidderPrice{set;get;}
|
||||
[ModelBindControl("txtauctionPrice")]
|
||||
public decimal auctionPrice{set;get;}
|
||||
[ModelBindControl("txtturnover")]
|
||||
public int turnover{set;get;}
|
||||
[ModelBindControl("txtturnoverPrice")]
|
||||
public decimal turnoverPrice{set;get;}
|
||||
[ModelBindControl("txtbuyOneNum")]
|
||||
public int buyOneNum{set;get;}
|
||||
[ModelBindControl("txtbuyOnePrice")]
|
||||
public decimal buyOnePrice{set;get;}
|
||||
[ModelBindControl("txtbuyTwoNum")]
|
||||
public int buyTwoNum{set;get;}
|
||||
[ModelBindControl("txtbuyTwoPrice")]
|
||||
public decimal buyTwoPrice{set;get;}
|
||||
[ModelBindControl("txtbuyThreeNum")]
|
||||
public int buyThreeNum{set;get;}
|
||||
[ModelBindControl("txtbuyThreePrice")]
|
||||
public decimal buyThreePrice{set;get;}
|
||||
[ModelBindControl("txtbuyFourNum")]
|
||||
public int buyFourNum{set;get;}
|
||||
[ModelBindControl("txtbuyFourPrice")]
|
||||
public decimal buyFourPrice{set;get;}
|
||||
[ModelBindControl("txtbuyFiveNum")]
|
||||
public int buyFiveNum{set;get;}
|
||||
[ModelBindControl("txtbuyFivePrice")]
|
||||
public decimal buyFivePrice{set;get;}
|
||||
[ModelBindControl("txtsellOneNum")]
|
||||
public int sellOneNum{set;get;}
|
||||
[ModelBindControl("txtsellOnePrice")]
|
||||
public decimal sellOnePrice{set;get;}
|
||||
[ModelBindControl("txtsellTwoNum")]
|
||||
public int sellTwoNum{set;get;}
|
||||
[ModelBindControl("txtsellTwoPrice")]
|
||||
public decimal sellTwoPrice{set;get;}
|
||||
[ModelBindControl("txtsellThreeNum")]
|
||||
public int sellThreeNum{set;get;}
|
||||
[ModelBindControl("txtsellThreePrice")]
|
||||
public decimal sellThreePrice{set;get;}
|
||||
[ModelBindControl("txtsellFourNum")]
|
||||
public int sellFourNum{set;get;}
|
||||
[ModelBindControl("txtsellFourPrice")]
|
||||
public decimal sellFourPrice{set;get;}
|
||||
[ModelBindControl("txtsellFiveNum")]
|
||||
public int sellFiveNum{set;get;}
|
||||
[ModelBindControl("txtsellFivePrice")]
|
||||
public decimal sellFivePrice{set;get;}
|
||||
[ModelBindControl("txttimeStr")]
|
||||
public DateTime? timeStr{set;get;}=DateTime.Now;
|
||||
[ModelBindControl("txtid")]
|
||||
public int id{set;get;}
|
||||
[ModelBindControl("txtname")]
|
||||
public string name{set;get;}
|
||||
[ModelBindControl("txtaddress")]
|
||||
public string address{set;get;}
|
||||
[ModelBindControl("txtremark")]
|
||||
public string remark{set;get;}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
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("supplier")]
|
||||
public partial class supplierInfo
|
||||
{
|
||||
[ModelBindControl("txtid")]
|
||||
public int id{set;get;}
|
||||
[ModelBindControl("txtsuppliername")]
|
||||
public string suppliername{set;get;}
|
||||
[ModelBindControl("txtmanufacturertype")]
|
||||
public int manufacturertype{set;get;}
|
||||
[ModelBindControl("txtcontacts")]
|
||||
public int contacts{set;get;}
|
||||
[ModelBindControl("txtaddress")]
|
||||
public string address{set;get;}
|
||||
[ModelBindControl("txtvatrate")]
|
||||
public decimal vatrate{set;get;}
|
||||
[ModelBindControl("txttaxpayeridentity")]
|
||||
public string taxpayeridentity{set;get;}
|
||||
[ModelBindControl("txtbankaccount")]
|
||||
public string bankaccount{set;get;}
|
||||
[ModelBindControl("txtsuppliercode")]
|
||||
public string suppliercode{set;get;}
|
||||
[ModelBindControl("txtpayments")]
|
||||
public decimal payments{set;get;}
|
||||
[ModelBindControl("txttotalamountsettled")]
|
||||
public decimal totalamountsettled{set;get;}
|
||||
[ModelBindControl("txttotaloutstandingamount")]
|
||||
public decimal totaloutstandingamount{set;get;}
|
||||
[ModelBindControl("txtremark")]
|
||||
public string remark{set;get;}
|
||||
[ModelBindControl("txtcreatorId")]
|
||||
public int creatorId{set;get;}
|
||||
[ModelBindControl("txtcreateTime")]
|
||||
public DateTime? createTime{set;get;}=DateTime.Now;
|
||||
[ModelBindControl("txteditorId")]
|
||||
public int editorId{set;get;}
|
||||
[ModelBindControl("txteditTime")]
|
||||
public DateTime? editTime{set;get;}=DateTime.Now;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,209 @@
|
|||
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;
|
||||
namespace MES.Form
|
||||
{
|
||||
public partial class Frmcustomer : FrmBaseForm
|
||||
{
|
||||
private Dictionary<string, string> fieldDictionary = new Dictionary<string, string>();
|
||||
public Frmcustomer()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
private void Frmcustomer_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new customerInfo());
|
||||
InitSearchDicData();
|
||||
}
|
||||
/// <summary>
|
||||
/// 数据源初始化
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private void Init()
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
txtcustomertype.Properties.DataSource = GetDataTableUtils.SqlTable("客户类别");
|
||||
repositoryItemtxtcustomertype.DataSource= GetDataTableUtils.SqlTable("客户类别");
|
||||
txtcontactuser.Properties.DataSource = GetDataTableUtils.SqlTable("用户");
|
||||
repositoryItemtxtcontactuser.DataSource= GetDataTableUtils.SqlTable("用户");
|
||||
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 搜索字段
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private void InitSearchDicData()
|
||||
{
|
||||
fieldDictionary.Add("id","id");
|
||||
fieldDictionary.Add("客户名称","customername");
|
||||
fieldDictionary.Add("客户类别","customertype");
|
||||
fieldDictionary.Add("联系人","contactuser");
|
||||
fieldDictionary.Add("客户地址","address");
|
||||
fieldDictionary.Add("期初应收款","startreceipt");
|
||||
fieldDictionary.Add("客户编号","customercode");
|
||||
fieldDictionary.Add("应收款总额","totalreceivables");
|
||||
fieldDictionary.Add("已结款总额","totalamountsettled");
|
||||
fieldDictionary.Add("未结款总额","totaloutstandingamount");
|
||||
fieldDictionary.Add("备注","remark");
|
||||
}
|
||||
/// <summary>
|
||||
/// 保存
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool SaveFunction()
|
||||
{
|
||||
try
|
||||
{
|
||||
customerInfo info= (customerInfo)this.ControlDataToModel(new customerInfo());
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
db.customerInfo.AddOrUpdate(info);
|
||||
db.SaveChanges();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.Message.ShowError();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public override void InitgrdListDataSource()
|
||||
{
|
||||
using (var con=new MESDB())///
|
||||
{
|
||||
grdList.DataSource=con.customerInfo.ToList();
|
||||
}
|
||||
Init();
|
||||
}
|
||||
/// <summary>
|
||||
/// 字段为空校验
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool CheckInput()
|
||||
{
|
||||
if(string.IsNullOrEmpty(txtcustomername.EditValue.ToString()))
|
||||
{
|
||||
"客户名称不能为空".ShowWarning();
|
||||
txtcustomername.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtcustomertype.EditValue.ToString()))
|
||||
{
|
||||
"客户类别不能为空".ShowWarning();
|
||||
txtcustomertype.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtcontactuser.EditValue.ToString()))
|
||||
{
|
||||
"联系人不能为空".ShowWarning();
|
||||
txtcontactuser.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtaddress.EditValue.ToString()))
|
||||
{
|
||||
"客户地址不能为空".ShowWarning();
|
||||
txtaddress.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtstartreceipt.EditValue.ToString()))
|
||||
{
|
||||
"期初应收款不能为空".ShowWarning();
|
||||
txtstartreceipt.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtcustomercode.EditValue.ToString()))
|
||||
{
|
||||
"客户编号不能为空".ShowWarning();
|
||||
txtcustomercode.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txttotalreceivables.EditValue.ToString()))
|
||||
{
|
||||
"应收款总额不能为空".ShowWarning();
|
||||
txttotalreceivables.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txttotalamountsettled.EditValue.ToString()))
|
||||
{
|
||||
"已结款总额不能为空".ShowWarning();
|
||||
txttotalamountsettled.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txttotaloutstandingamount.EditValue.ToString()))
|
||||
{
|
||||
"未结款总额不能为空".ShowWarning();
|
||||
txttotaloutstandingamount.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtremark.EditValue.ToString()))
|
||||
{
|
||||
"备注不能为空".ShowWarning();
|
||||
txtremark.Focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
/// <summary>
|
||||
/// 删除
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool DelFunction()
|
||||
{
|
||||
try
|
||||
{
|
||||
customerInfo info = (customerInfo)this.ControlDataToModel(new customerInfo());
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
db.Entry(info).State=EntityState.Deleted;
|
||||
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.customerInfo.SqlQuery("select * from customer").ToList();
|
||||
}
|
||||
else
|
||||
{
|
||||
grdList.DataSource = db.customerInfo.SqlQuery($"select * from customer where {sql}").ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,658 @@
|
|||
|
||||
using DevExpress.XtraEditors;
|
||||
using DevExpress.XtraLayout;
|
||||
using DevExpress.XtraTab;
|
||||
|
||||
namespace MES.Form
|
||||
{
|
||||
partial class Frmcustomer
|
||||
{
|
||||
/// <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.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemtxtcustomertype = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemtxtcontactuser = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn9 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn10 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn11 = 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.txtid = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtcustomername = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtcustomertype = new DevExpress.XtraEditors.LookUpEdit();
|
||||
this.txtcontactuser = new DevExpress.XtraEditors.LookUpEdit();
|
||||
this.txtaddress = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtstartreceipt = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtcustomercode = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txttotalreceivables = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txttotalamountsettled = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txttotaloutstandingamount = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtremark = new DevExpress.XtraEditors.TextEdit();
|
||||
this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
|
||||
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomertype)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcontactuser)).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.txtid.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtcustomername.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtcustomertype.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtcontactuser.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtaddress.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtstartreceipt.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtcustomercode.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txttotalreceivables.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txttotalamountsettled.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txttotaloutstandingamount.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// gridColumn1
|
||||
//
|
||||
this.gridColumn1.Caption = "id";
|
||||
this.gridColumn1.FieldName = "id";
|
||||
this.gridColumn1.Name = "gridColumn1";
|
||||
//
|
||||
// gridColumn2
|
||||
//
|
||||
this.gridColumn2.Caption = "客户名称";
|
||||
this.gridColumn2.FieldName = "customername";
|
||||
this.gridColumn2.Name = "gridColumn2";
|
||||
this.gridColumn2.Visible = true;
|
||||
this.gridColumn2.VisibleIndex = 0;
|
||||
this.gridColumn2.Width = 201;
|
||||
//
|
||||
// gridColumn3
|
||||
//
|
||||
this.gridColumn3.Caption = "客户类别";
|
||||
this.gridColumn3.ColumnEdit = this.repositoryItemtxtcustomertype;
|
||||
this.gridColumn3.FieldName = "customertype";
|
||||
this.gridColumn3.Name = "gridColumn3";
|
||||
this.gridColumn3.Visible = true;
|
||||
this.gridColumn3.VisibleIndex = 1;
|
||||
this.gridColumn3.Width = 201;
|
||||
//
|
||||
// repositoryItemtxtcustomertype
|
||||
//
|
||||
this.repositoryItemtxtcustomertype.AutoHeight = false;
|
||||
this.repositoryItemtxtcustomertype.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.repositoryItemtxtcustomertype.DisplayMember = "Name";
|
||||
this.repositoryItemtxtcustomertype.Name = "repositoryItemtxtcustomertype";
|
||||
this.repositoryItemtxtcustomertype.ValueMember = "ID";
|
||||
//
|
||||
// gridColumn4
|
||||
//
|
||||
this.gridColumn4.Caption = "联系人";
|
||||
this.gridColumn4.ColumnEdit = this.repositoryItemtxtcontactuser;
|
||||
this.gridColumn4.FieldName = "contactuser";
|
||||
this.gridColumn4.Name = "gridColumn4";
|
||||
this.gridColumn4.Visible = true;
|
||||
this.gridColumn4.VisibleIndex = 2;
|
||||
this.gridColumn4.Width = 201;
|
||||
//
|
||||
// repositoryItemtxtcontactuser
|
||||
//
|
||||
this.repositoryItemtxtcontactuser.AutoHeight = false;
|
||||
this.repositoryItemtxtcontactuser.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.repositoryItemtxtcontactuser.DisplayMember = "Name";
|
||||
this.repositoryItemtxtcontactuser.Name = "repositoryItemtxtcontactuser";
|
||||
this.repositoryItemtxtcontactuser.ValueMember = "ID";
|
||||
//
|
||||
// gridColumn5
|
||||
//
|
||||
this.gridColumn5.Caption = "客户地址";
|
||||
this.gridColumn5.FieldName = "address";
|
||||
this.gridColumn5.Name = "gridColumn5";
|
||||
this.gridColumn5.Visible = true;
|
||||
this.gridColumn5.VisibleIndex = 3;
|
||||
this.gridColumn5.Width = 201;
|
||||
//
|
||||
// gridColumn6
|
||||
//
|
||||
this.gridColumn6.Caption = "期初应收款";
|
||||
this.gridColumn6.FieldName = "startreceipt";
|
||||
this.gridColumn6.Name = "gridColumn6";
|
||||
this.gridColumn6.Visible = true;
|
||||
this.gridColumn6.VisibleIndex = 4;
|
||||
this.gridColumn6.Width = 201;
|
||||
//
|
||||
// gridColumn7
|
||||
//
|
||||
this.gridColumn7.Caption = "客户编号";
|
||||
this.gridColumn7.FieldName = "customercode";
|
||||
this.gridColumn7.Name = "gridColumn7";
|
||||
this.gridColumn7.Visible = true;
|
||||
this.gridColumn7.VisibleIndex = 5;
|
||||
this.gridColumn7.Width = 201;
|
||||
//
|
||||
// gridColumn8
|
||||
//
|
||||
this.gridColumn8.Caption = "应收款总额";
|
||||
this.gridColumn8.FieldName = "totalreceivables";
|
||||
this.gridColumn8.Name = "gridColumn8";
|
||||
this.gridColumn8.Visible = true;
|
||||
this.gridColumn8.VisibleIndex = 6;
|
||||
this.gridColumn8.Width = 201;
|
||||
//
|
||||
// gridColumn9
|
||||
//
|
||||
this.gridColumn9.Caption = "已结款总额";
|
||||
this.gridColumn9.FieldName = "totalamountsettled";
|
||||
this.gridColumn9.Name = "gridColumn9";
|
||||
this.gridColumn9.Visible = true;
|
||||
this.gridColumn9.VisibleIndex = 7;
|
||||
this.gridColumn9.Width = 201;
|
||||
//
|
||||
// gridColumn10
|
||||
//
|
||||
this.gridColumn10.Caption = "未结款总额";
|
||||
this.gridColumn10.FieldName = "totaloutstandingamount";
|
||||
this.gridColumn10.Name = "gridColumn10";
|
||||
this.gridColumn10.Visible = true;
|
||||
this.gridColumn10.VisibleIndex = 8;
|
||||
this.gridColumn10.Width = 201;
|
||||
//
|
||||
// gridColumn11
|
||||
//
|
||||
this.gridColumn11.Caption = "备注";
|
||||
this.gridColumn11.FieldName = "remark";
|
||||
this.gridColumn11.Name = "gridColumn11";
|
||||
this.gridColumn11.Visible = true;
|
||||
this.gridColumn11.VisibleIndex = 9;
|
||||
this.gridColumn11.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(884, 561);
|
||||
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.gridColumn7,
|
||||
this.gridColumn8,
|
||||
this.gridColumn9,
|
||||
this.gridColumn10,
|
||||
this.gridColumn11});
|
||||
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(878, 532);
|
||||
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(878, 532);
|
||||
this.panelControl2.TabIndex = 0;
|
||||
//
|
||||
// layoutControl1
|
||||
//
|
||||
this.layoutControl1.Controls.Add(this.txtid);
|
||||
this.layoutControl1.Controls.Add(this.txtcustomername);
|
||||
this.layoutControl1.Controls.Add(this.txtcustomertype);
|
||||
this.layoutControl1.Controls.Add(this.txtcontactuser);
|
||||
this.layoutControl1.Controls.Add(this.txtaddress);
|
||||
this.layoutControl1.Controls.Add(this.txtstartreceipt);
|
||||
this.layoutControl1.Controls.Add(this.txtcustomercode);
|
||||
this.layoutControl1.Controls.Add(this.txttotalreceivables);
|
||||
this.layoutControl1.Controls.Add(this.txttotalamountsettled);
|
||||
this.layoutControl1.Controls.Add(this.txttotaloutstandingamount);
|
||||
this.layoutControl1.Controls.Add(this.txtremark);
|
||||
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(874, 528);
|
||||
this.layoutControl1.TabIndex = 6;
|
||||
this.layoutControl1.Text = "layoutControl1";
|
||||
//
|
||||
// txtid
|
||||
//
|
||||
this.txtid.Location = new System.Drawing.Point(75, 12);
|
||||
this.txtid.Name = "txtid";
|
||||
this.txtid.Size = new System.Drawing.Size(787, 20);
|
||||
this.txtid.StyleController = this.layoutControl1;
|
||||
this.txtid.TabIndex = 1;
|
||||
//
|
||||
// txtcustomername
|
||||
//
|
||||
this.txtcustomername.Location = new System.Drawing.Point(75, 36);
|
||||
this.txtcustomername.Name = "txtcustomername";
|
||||
this.txtcustomername.Size = new System.Drawing.Size(360, 20);
|
||||
this.txtcustomername.StyleController = this.layoutControl1;
|
||||
this.txtcustomername.TabIndex = 2;
|
||||
//
|
||||
// txtcustomertype
|
||||
//
|
||||
this.txtcustomertype.EditValue = "";
|
||||
this.txtcustomertype.Location = new System.Drawing.Point(502, 36);
|
||||
this.txtcustomertype.Name = "txtcustomertype";
|
||||
this.txtcustomertype.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.txtcustomertype.Properties.DisplayMember = "Name";
|
||||
this.txtcustomertype.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains;
|
||||
this.txtcustomertype.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;
|
||||
this.txtcustomertype.Properties.ValueMember = "ID";
|
||||
this.txtcustomertype.Size = new System.Drawing.Size(360, 20);
|
||||
this.txtcustomertype.StyleController = this.layoutControl1;
|
||||
this.txtcustomertype.TabIndex = 3;
|
||||
//
|
||||
// txtcontactuser
|
||||
//
|
||||
this.txtcontactuser.EditValue = "";
|
||||
this.txtcontactuser.Location = new System.Drawing.Point(75, 60);
|
||||
this.txtcontactuser.Name = "txtcontactuser";
|
||||
this.txtcontactuser.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.txtcontactuser.Properties.DisplayMember = "Name";
|
||||
this.txtcontactuser.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains;
|
||||
this.txtcontactuser.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;
|
||||
this.txtcontactuser.Properties.ValueMember = "ID";
|
||||
this.txtcontactuser.Size = new System.Drawing.Size(360, 20);
|
||||
this.txtcontactuser.StyleController = this.layoutControl1;
|
||||
this.txtcontactuser.TabIndex = 4;
|
||||
//
|
||||
// txtaddress
|
||||
//
|
||||
this.txtaddress.Location = new System.Drawing.Point(502, 60);
|
||||
this.txtaddress.Name = "txtaddress";
|
||||
this.txtaddress.Size = new System.Drawing.Size(360, 20);
|
||||
this.txtaddress.StyleController = this.layoutControl1;
|
||||
this.txtaddress.TabIndex = 5;
|
||||
//
|
||||
// txtstartreceipt
|
||||
//
|
||||
this.txtstartreceipt.Location = new System.Drawing.Point(502, 84);
|
||||
this.txtstartreceipt.Name = "txtstartreceipt";
|
||||
this.txtstartreceipt.Size = new System.Drawing.Size(360, 20);
|
||||
this.txtstartreceipt.StyleController = this.layoutControl1;
|
||||
this.txtstartreceipt.TabIndex = 6;
|
||||
//
|
||||
// txtcustomercode
|
||||
//
|
||||
this.txtcustomercode.Location = new System.Drawing.Point(75, 84);
|
||||
this.txtcustomercode.Name = "txtcustomercode";
|
||||
this.txtcustomercode.Size = new System.Drawing.Size(360, 20);
|
||||
this.txtcustomercode.StyleController = this.layoutControl1;
|
||||
this.txtcustomercode.TabIndex = 7;
|
||||
//
|
||||
// txttotalreceivables
|
||||
//
|
||||
this.txttotalreceivables.Location = new System.Drawing.Point(75, 132);
|
||||
this.txttotalreceivables.Name = "txttotalreceivables";
|
||||
this.txttotalreceivables.Size = new System.Drawing.Size(787, 20);
|
||||
this.txttotalreceivables.StyleController = this.layoutControl1;
|
||||
this.txttotalreceivables.TabIndex = 8;
|
||||
//
|
||||
// txttotalamountsettled
|
||||
//
|
||||
this.txttotalamountsettled.Location = new System.Drawing.Point(75, 108);
|
||||
this.txttotalamountsettled.Name = "txttotalamountsettled";
|
||||
this.txttotalamountsettled.Size = new System.Drawing.Size(360, 20);
|
||||
this.txttotalamountsettled.StyleController = this.layoutControl1;
|
||||
this.txttotalamountsettled.TabIndex = 9;
|
||||
//
|
||||
// txttotaloutstandingamount
|
||||
//
|
||||
this.txttotaloutstandingamount.Location = new System.Drawing.Point(502, 108);
|
||||
this.txttotaloutstandingamount.Name = "txttotaloutstandingamount";
|
||||
this.txttotaloutstandingamount.Size = new System.Drawing.Size(360, 20);
|
||||
this.txttotaloutstandingamount.StyleController = this.layoutControl1;
|
||||
this.txttotaloutstandingamount.TabIndex = 10;
|
||||
//
|
||||
// txtremark
|
||||
//
|
||||
this.txtremark.Location = new System.Drawing.Point(75, 156);
|
||||
this.txtremark.Name = "txtremark";
|
||||
this.txtremark.Size = new System.Drawing.Size(787, 20);
|
||||
this.txtremark.StyleController = this.layoutControl1;
|
||||
this.txtremark.TabIndex = 11;
|
||||
//
|
||||
// layoutControlGroup1
|
||||
//
|
||||
this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1";
|
||||
this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
|
||||
this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
|
||||
this.layoutControlItem1,
|
||||
this.layoutControlItem2,
|
||||
this.layoutControlItem4,
|
||||
this.layoutControlItem6,
|
||||
this.layoutControlItem11,
|
||||
this.layoutControlItem3,
|
||||
this.layoutControlItem5,
|
||||
this.layoutControlItem7,
|
||||
this.layoutControlItem9,
|
||||
this.layoutControlItem8,
|
||||
this.layoutControlItem10});
|
||||
this.layoutControlGroup1.Name = "layoutControlGroup1";
|
||||
this.layoutControlGroup1.Size = new System.Drawing.Size(874, 528);
|
||||
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(854, 24);
|
||||
this.layoutControlItem1.Text = "id";
|
||||
this.layoutControlItem1.TextSize = new System.Drawing.Size(60, 14);
|
||||
//
|
||||
// layoutControlItem2
|
||||
//
|
||||
this.layoutControlItem2.Control = this.txtcustomername;
|
||||
this.layoutControlItem2.CustomizationFormText = "客户名称";
|
||||
this.layoutControlItem2.Location = new System.Drawing.Point(0, 24);
|
||||
this.layoutControlItem2.Name = "layoutControlItem2";
|
||||
this.layoutControlItem2.Size = new System.Drawing.Size(427, 24);
|
||||
this.layoutControlItem2.Text = "客户名称";
|
||||
this.layoutControlItem2.TextSize = new System.Drawing.Size(60, 14);
|
||||
//
|
||||
// layoutControlItem3
|
||||
//
|
||||
this.layoutControlItem3.Control = this.txtcustomertype;
|
||||
this.layoutControlItem3.CustomizationFormText = "客户类别";
|
||||
this.layoutControlItem3.Location = new System.Drawing.Point(427, 24);
|
||||
this.layoutControlItem3.Name = "layoutControlItem3";
|
||||
this.layoutControlItem3.Size = new System.Drawing.Size(427, 24);
|
||||
this.layoutControlItem3.Text = "客户类别";
|
||||
this.layoutControlItem3.TextSize = new System.Drawing.Size(60, 14);
|
||||
//
|
||||
// layoutControlItem4
|
||||
//
|
||||
this.layoutControlItem4.Control = this.txtcontactuser;
|
||||
this.layoutControlItem4.CustomizationFormText = "联系人";
|
||||
this.layoutControlItem4.Location = new System.Drawing.Point(0, 48);
|
||||
this.layoutControlItem4.Name = "layoutControlItem4";
|
||||
this.layoutControlItem4.Size = new System.Drawing.Size(427, 24);
|
||||
this.layoutControlItem4.Text = "联系人";
|
||||
this.layoutControlItem4.TextSize = new System.Drawing.Size(60, 14);
|
||||
//
|
||||
// layoutControlItem5
|
||||
//
|
||||
this.layoutControlItem5.Control = this.txtaddress;
|
||||
this.layoutControlItem5.CustomizationFormText = "客户地址";
|
||||
this.layoutControlItem5.Location = new System.Drawing.Point(427, 48);
|
||||
this.layoutControlItem5.Name = "layoutControlItem5";
|
||||
this.layoutControlItem5.Size = new System.Drawing.Size(427, 24);
|
||||
this.layoutControlItem5.Text = "客户地址";
|
||||
this.layoutControlItem5.TextSize = new System.Drawing.Size(60, 14);
|
||||
//
|
||||
// layoutControlItem6
|
||||
//
|
||||
this.layoutControlItem6.Control = this.txtstartreceipt;
|
||||
this.layoutControlItem6.CustomizationFormText = "期初应收款";
|
||||
this.layoutControlItem6.Location = new System.Drawing.Point(427, 72);
|
||||
this.layoutControlItem6.Name = "layoutControlItem6";
|
||||
this.layoutControlItem6.Size = new System.Drawing.Size(427, 24);
|
||||
this.layoutControlItem6.Text = "期初应收款";
|
||||
this.layoutControlItem6.TextSize = new System.Drawing.Size(60, 14);
|
||||
//
|
||||
// layoutControlItem7
|
||||
//
|
||||
this.layoutControlItem7.Control = this.txtcustomercode;
|
||||
this.layoutControlItem7.CustomizationFormText = "客户编号";
|
||||
this.layoutControlItem7.Location = new System.Drawing.Point(0, 72);
|
||||
this.layoutControlItem7.Name = "layoutControlItem7";
|
||||
this.layoutControlItem7.Size = new System.Drawing.Size(427, 24);
|
||||
this.layoutControlItem7.Text = "客户编号";
|
||||
this.layoutControlItem7.TextSize = new System.Drawing.Size(60, 14);
|
||||
//
|
||||
// layoutControlItem8
|
||||
//
|
||||
this.layoutControlItem8.Control = this.txttotalreceivables;
|
||||
this.layoutControlItem8.CustomizationFormText = "应收款总额";
|
||||
this.layoutControlItem8.Location = new System.Drawing.Point(0, 120);
|
||||
this.layoutControlItem8.Name = "layoutControlItem8";
|
||||
this.layoutControlItem8.Size = new System.Drawing.Size(854, 24);
|
||||
this.layoutControlItem8.Text = "应收款总额";
|
||||
this.layoutControlItem8.TextSize = new System.Drawing.Size(60, 14);
|
||||
//
|
||||
// layoutControlItem9
|
||||
//
|
||||
this.layoutControlItem9.Control = this.txttotalamountsettled;
|
||||
this.layoutControlItem9.CustomizationFormText = "已结款总额";
|
||||
this.layoutControlItem9.Location = new System.Drawing.Point(0, 96);
|
||||
this.layoutControlItem9.Name = "layoutControlItem9";
|
||||
this.layoutControlItem9.Size = new System.Drawing.Size(427, 24);
|
||||
this.layoutControlItem9.Text = "已结款总额";
|
||||
this.layoutControlItem9.TextSize = new System.Drawing.Size(60, 14);
|
||||
//
|
||||
// layoutControlItem10
|
||||
//
|
||||
this.layoutControlItem10.Control = this.txttotaloutstandingamount;
|
||||
this.layoutControlItem10.CustomizationFormText = "未结款总额";
|
||||
this.layoutControlItem10.Location = new System.Drawing.Point(427, 96);
|
||||
this.layoutControlItem10.Name = "layoutControlItem10";
|
||||
this.layoutControlItem10.Size = new System.Drawing.Size(427, 24);
|
||||
this.layoutControlItem10.Text = "未结款总额";
|
||||
this.layoutControlItem10.TextSize = new System.Drawing.Size(60, 14);
|
||||
//
|
||||
// layoutControlItem11
|
||||
//
|
||||
this.layoutControlItem11.Control = this.txtremark;
|
||||
this.layoutControlItem11.CustomizationFormText = "备注";
|
||||
this.layoutControlItem11.Location = new System.Drawing.Point(0, 144);
|
||||
this.layoutControlItem11.Name = "layoutControlItem11";
|
||||
this.layoutControlItem11.Size = new System.Drawing.Size(854, 364);
|
||||
this.layoutControlItem11.Text = "备注";
|
||||
this.layoutControlItem11.TextSize = new System.Drawing.Size(60, 14);
|
||||
//
|
||||
// Frmcustomer
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(884, 595);
|
||||
this.Controls.Add(this.xtraTabControl1);
|
||||
this.Name = "Frmcustomer";
|
||||
this.Text = "客户信息";
|
||||
this.Load += new System.EventHandler(this.Frmcustomer_Load);
|
||||
this.Controls.SetChildIndex(this.xtraTabControl1, 0);
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomertype)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcontactuser)).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.txtid.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtcustomername.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtcustomertype.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtcontactuser.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtaddress.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtstartreceipt.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtcustomercode.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txttotalreceivables.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txttotalamountsettled.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txttotaloutstandingamount.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).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.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.XtraEditors.TextEdit txtid;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtcustomername;
|
||||
private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtcustomertype;
|
||||
|
||||
private DevExpress.XtraEditors.LookUpEdit txtcustomertype;
|
||||
private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtcontactuser;
|
||||
|
||||
private DevExpress.XtraEditors.LookUpEdit txtcontactuser;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtaddress;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtstartreceipt;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtcustomercode;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txttotalreceivables;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txttotalamountsettled;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txttotaloutstandingamount;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtremark;
|
||||
|
||||
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 DevExpress.XtraLayout.LayoutControlItem layoutControlItem7;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem11;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,120 @@
|
|||
<?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>
|
||||
</root>
|
||||
|
|
@ -0,0 +1,238 @@
|
|||
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;
|
||||
namespace MES.Form
|
||||
{
|
||||
public partial class Frmmaterial : FrmBaseForm
|
||||
{
|
||||
private Dictionary<string, string> fieldDictionary = new Dictionary<string, string>();
|
||||
public Frmmaterial()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
private void Frmmaterial_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new materialInfo());
|
||||
InitSearchDicData();
|
||||
}
|
||||
/// <summary>
|
||||
/// 数据源初始化
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private void Init()
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
txtunit.Properties.DataSource = GetDataTableUtils.SqlTable("计量单位");
|
||||
repositoryItemtxtunit.DataSource= GetDataTableUtils.SqlTable("计量单位");
|
||||
txtmaterialtype.Properties.DataSource = GetDataTableUtils.SqlTable("物料类别");
|
||||
repositoryItemtxtmaterialtype.DataSource= GetDataTableUtils.SqlTable("物料类别");
|
||||
txtwarehouse.Properties.DataSource = GetDataTableUtils.SqlTable("用户");
|
||||
repositoryItemtxtwarehouse.DataSource= GetDataTableUtils.SqlTable("用户");
|
||||
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 搜索字段
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private void InitSearchDicData()
|
||||
{
|
||||
fieldDictionary.Add("物料名称","name");
|
||||
fieldDictionary.Add("物料编码","code");
|
||||
fieldDictionary.Add("规格型号","spec");
|
||||
fieldDictionary.Add("计量单位","unit");
|
||||
fieldDictionary.Add("参考单价","referprice");
|
||||
fieldDictionary.Add("物料类别","materialtype");
|
||||
fieldDictionary.Add("仓库","warehouse");
|
||||
fieldDictionary.Add("采购入库总量","POinnumber");
|
||||
fieldDictionary.Add("退货出库总量","salereturnnumber");
|
||||
fieldDictionary.Add("生产领料总量","YDProductConsume");
|
||||
fieldDictionary.Add("生产退料总量","productmaterialreturn");
|
||||
fieldDictionary.Add("库存数量","stocknumber");
|
||||
fieldDictionary.Add("库存预警数量","stockwarnnumber");
|
||||
fieldDictionary.Add("备注","remark");
|
||||
}
|
||||
/// <summary>
|
||||
/// 保存
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool SaveFunction()
|
||||
{
|
||||
try
|
||||
{
|
||||
materialInfo info= (materialInfo)this.ControlDataToModel(new materialInfo());
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
db.materialInfo.AddOrUpdate(info);
|
||||
db.SaveChanges();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.Message.ShowError();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public override void InitgrdListDataSource()
|
||||
{
|
||||
using (var con=new MESDB())///
|
||||
{
|
||||
grdList.DataSource=con.materialInfo.ToList();
|
||||
}
|
||||
Init();
|
||||
}
|
||||
/// <summary>
|
||||
/// 字段为空校验
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool CheckInput()
|
||||
{
|
||||
if(string.IsNullOrEmpty(txtname.EditValue.ToString()))
|
||||
{
|
||||
"物料名称不能为空".ShowWarning();
|
||||
txtname.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtcode.EditValue.ToString()))
|
||||
{
|
||||
"物料编码不能为空".ShowWarning();
|
||||
txtcode.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtspec.EditValue.ToString()))
|
||||
{
|
||||
"规格型号不能为空".ShowWarning();
|
||||
txtspec.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtunit.EditValue.ToString()))
|
||||
{
|
||||
"计量单位不能为空".ShowWarning();
|
||||
txtunit.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtreferprice.EditValue.ToString()))
|
||||
{
|
||||
"参考单价不能为空".ShowWarning();
|
||||
txtreferprice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtmaterialtype.EditValue.ToString()))
|
||||
{
|
||||
"物料类别不能为空".ShowWarning();
|
||||
txtmaterialtype.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtwarehouse.EditValue.ToString()))
|
||||
{
|
||||
"仓库不能为空".ShowWarning();
|
||||
txtwarehouse.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtPOinnumber.EditValue.ToString()))
|
||||
{
|
||||
"采购入库总量不能为空".ShowWarning();
|
||||
txtPOinnumber.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtsalereturnnumber.EditValue.ToString()))
|
||||
{
|
||||
"退货出库总量不能为空".ShowWarning();
|
||||
txtsalereturnnumber.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtYDProductConsume.EditValue.ToString()))
|
||||
{
|
||||
"生产领料总量不能为空".ShowWarning();
|
||||
txtYDProductConsume.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtproductmaterialreturn.EditValue.ToString()))
|
||||
{
|
||||
"生产退料总量不能为空".ShowWarning();
|
||||
txtproductmaterialreturn.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtstocknumber.EditValue.ToString()))
|
||||
{
|
||||
"库存数量不能为空".ShowWarning();
|
||||
txtstocknumber.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtstockwarnnumber.EditValue.ToString()))
|
||||
{
|
||||
"库存预警数量不能为空".ShowWarning();
|
||||
txtstockwarnnumber.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtremark.EditValue.ToString()))
|
||||
{
|
||||
"备注不能为空".ShowWarning();
|
||||
txtremark.Focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
/// <summary>
|
||||
/// 删除
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool DelFunction()
|
||||
{
|
||||
try
|
||||
{
|
||||
materialInfo info = (materialInfo)this.ControlDataToModel(new materialInfo());
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
db.Entry(info).State=EntityState.Deleted;
|
||||
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.materialInfo.SqlQuery("select * from material").ToList();
|
||||
}
|
||||
else
|
||||
{
|
||||
grdList.DataSource = db.materialInfo.SqlQuery($"select * from material where {sql}").ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,843 @@
|
|||
|
||||
using DevExpress.XtraEditors;
|
||||
using DevExpress.XtraLayout;
|
||||
using DevExpress.XtraTab;
|
||||
|
||||
namespace MES.Form
|
||||
{
|
||||
partial class Frmmaterial
|
||||
{
|
||||
/// <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.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemtxtunit = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemtxtmaterialtype = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemtxtwarehouse = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.gridColumn9 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
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.gridColumn15 = 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.txtid = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtname = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtcode = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtspec = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtunit = new DevExpress.XtraEditors.LookUpEdit();
|
||||
this.txtreferprice = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtmaterialtype = new DevExpress.XtraEditors.LookUpEdit();
|
||||
this.txtwarehouse = new DevExpress.XtraEditors.LookUpEdit();
|
||||
this.txtPOinnumber = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtsalereturnnumber = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtYDProductConsume = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtproductmaterialreturn = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtstocknumber = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtstockwarnnumber = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtremark = new DevExpress.XtraEditors.TextEdit();
|
||||
this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
|
||||
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtunit)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtmaterialtype)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtwarehouse)).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.txtid.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtname.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtcode.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtspec.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtunit.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtreferprice.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtmaterialtype.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtwarehouse.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtPOinnumber.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtsalereturnnumber.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtYDProductConsume.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtproductmaterialreturn.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtstocknumber.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtstockwarnnumber.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// gridColumn1
|
||||
//
|
||||
this.gridColumn1.Caption = "id";
|
||||
this.gridColumn1.FieldName = "id";
|
||||
this.gridColumn1.Name = "gridColumn1";
|
||||
//
|
||||
// gridColumn2
|
||||
//
|
||||
this.gridColumn2.Caption = "物料名称";
|
||||
this.gridColumn2.FieldName = "name";
|
||||
this.gridColumn2.Name = "gridColumn2";
|
||||
this.gridColumn2.Visible = true;
|
||||
this.gridColumn2.VisibleIndex = 0;
|
||||
this.gridColumn2.Width = 201;
|
||||
//
|
||||
// gridColumn3
|
||||
//
|
||||
this.gridColumn3.Caption = "物料编码";
|
||||
this.gridColumn3.FieldName = "code";
|
||||
this.gridColumn3.Name = "gridColumn3";
|
||||
this.gridColumn3.Visible = true;
|
||||
this.gridColumn3.VisibleIndex = 1;
|
||||
this.gridColumn3.Width = 201;
|
||||
//
|
||||
// gridColumn4
|
||||
//
|
||||
this.gridColumn4.Caption = "规格型号";
|
||||
this.gridColumn4.FieldName = "spec";
|
||||
this.gridColumn4.Name = "gridColumn4";
|
||||
this.gridColumn4.Visible = true;
|
||||
this.gridColumn4.VisibleIndex = 2;
|
||||
this.gridColumn4.Width = 201;
|
||||
//
|
||||
// gridColumn5
|
||||
//
|
||||
this.gridColumn5.Caption = "计量单位";
|
||||
this.gridColumn5.ColumnEdit = this.repositoryItemtxtunit;
|
||||
this.gridColumn5.FieldName = "unit";
|
||||
this.gridColumn5.Name = "gridColumn5";
|
||||
this.gridColumn5.Visible = true;
|
||||
this.gridColumn5.VisibleIndex = 3;
|
||||
this.gridColumn5.Width = 201;
|
||||
//
|
||||
// repositoryItemtxtunit
|
||||
//
|
||||
this.repositoryItemtxtunit.AutoHeight = false;
|
||||
this.repositoryItemtxtunit.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.repositoryItemtxtunit.DisplayMember = "Name";
|
||||
this.repositoryItemtxtunit.Name = "repositoryItemtxtunit";
|
||||
this.repositoryItemtxtunit.ValueMember = "ID";
|
||||
//
|
||||
// gridColumn6
|
||||
//
|
||||
this.gridColumn6.Caption = "参考单价";
|
||||
this.gridColumn6.FieldName = "referprice";
|
||||
this.gridColumn6.Name = "gridColumn6";
|
||||
this.gridColumn6.Visible = true;
|
||||
this.gridColumn6.VisibleIndex = 4;
|
||||
this.gridColumn6.Width = 201;
|
||||
//
|
||||
// gridColumn7
|
||||
//
|
||||
this.gridColumn7.Caption = "物料类别";
|
||||
this.gridColumn7.ColumnEdit = this.repositoryItemtxtmaterialtype;
|
||||
this.gridColumn7.FieldName = "materialtype";
|
||||
this.gridColumn7.Name = "gridColumn7";
|
||||
this.gridColumn7.Visible = true;
|
||||
this.gridColumn7.VisibleIndex = 5;
|
||||
this.gridColumn7.Width = 201;
|
||||
//
|
||||
// repositoryItemtxtmaterialtype
|
||||
//
|
||||
this.repositoryItemtxtmaterialtype.AutoHeight = false;
|
||||
this.repositoryItemtxtmaterialtype.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.repositoryItemtxtmaterialtype.DisplayMember = "Name";
|
||||
this.repositoryItemtxtmaterialtype.Name = "repositoryItemtxtmaterialtype";
|
||||
this.repositoryItemtxtmaterialtype.ValueMember = "ID";
|
||||
//
|
||||
// gridColumn8
|
||||
//
|
||||
this.gridColumn8.Caption = "仓库";
|
||||
this.gridColumn8.ColumnEdit = this.repositoryItemtxtwarehouse;
|
||||
this.gridColumn8.FieldName = "warehouse";
|
||||
this.gridColumn8.Name = "gridColumn8";
|
||||
this.gridColumn8.Visible = true;
|
||||
this.gridColumn8.VisibleIndex = 6;
|
||||
this.gridColumn8.Width = 201;
|
||||
//
|
||||
// repositoryItemtxtwarehouse
|
||||
//
|
||||
this.repositoryItemtxtwarehouse.AutoHeight = false;
|
||||
this.repositoryItemtxtwarehouse.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.repositoryItemtxtwarehouse.DisplayMember = "Name";
|
||||
this.repositoryItemtxtwarehouse.Name = "repositoryItemtxtwarehouse";
|
||||
this.repositoryItemtxtwarehouse.ValueMember = "ID";
|
||||
//
|
||||
// gridColumn9
|
||||
//
|
||||
this.gridColumn9.Caption = "采购入库总量";
|
||||
this.gridColumn9.FieldName = "POinnumber";
|
||||
this.gridColumn9.Name = "gridColumn9";
|
||||
this.gridColumn9.Visible = true;
|
||||
this.gridColumn9.VisibleIndex = 7;
|
||||
this.gridColumn9.Width = 201;
|
||||
//
|
||||
// gridColumn10
|
||||
//
|
||||
this.gridColumn10.Caption = "退货出库总量";
|
||||
this.gridColumn10.FieldName = "salereturnnumber";
|
||||
this.gridColumn10.Name = "gridColumn10";
|
||||
this.gridColumn10.Visible = true;
|
||||
this.gridColumn10.VisibleIndex = 8;
|
||||
this.gridColumn10.Width = 201;
|
||||
//
|
||||
// gridColumn11
|
||||
//
|
||||
this.gridColumn11.Caption = "生产领料总量";
|
||||
this.gridColumn11.FieldName = "YDProductConsume";
|
||||
this.gridColumn11.Name = "gridColumn11";
|
||||
this.gridColumn11.Visible = true;
|
||||
this.gridColumn11.VisibleIndex = 9;
|
||||
this.gridColumn11.Width = 201;
|
||||
//
|
||||
// gridColumn12
|
||||
//
|
||||
this.gridColumn12.Caption = "生产退料总量";
|
||||
this.gridColumn12.FieldName = "productmaterialreturn";
|
||||
this.gridColumn12.Name = "gridColumn12";
|
||||
this.gridColumn12.Visible = true;
|
||||
this.gridColumn12.VisibleIndex = 10;
|
||||
this.gridColumn12.Width = 201;
|
||||
//
|
||||
// gridColumn13
|
||||
//
|
||||
this.gridColumn13.Caption = "库存数量";
|
||||
this.gridColumn13.FieldName = "stocknumber";
|
||||
this.gridColumn13.Name = "gridColumn13";
|
||||
this.gridColumn13.Visible = true;
|
||||
this.gridColumn13.VisibleIndex = 11;
|
||||
this.gridColumn13.Width = 201;
|
||||
//
|
||||
// gridColumn14
|
||||
//
|
||||
this.gridColumn14.Caption = "库存预警数量";
|
||||
this.gridColumn14.FieldName = "stockwarnnumber";
|
||||
this.gridColumn14.Name = "gridColumn14";
|
||||
this.gridColumn14.Visible = true;
|
||||
this.gridColumn14.VisibleIndex = 12;
|
||||
this.gridColumn14.Width = 201;
|
||||
//
|
||||
// gridColumn15
|
||||
//
|
||||
this.gridColumn15.Caption = "备注";
|
||||
this.gridColumn15.FieldName = "remark";
|
||||
this.gridColumn15.Name = "gridColumn15";
|
||||
this.gridColumn15.Visible = true;
|
||||
this.gridColumn15.VisibleIndex = 13;
|
||||
this.gridColumn15.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(827, 593);
|
||||
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(821, 564);
|
||||
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(821, 564);
|
||||
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.gridColumn7,
|
||||
this.gridColumn8,
|
||||
this.gridColumn9,
|
||||
this.gridColumn10,
|
||||
this.gridColumn11,
|
||||
this.gridColumn12,
|
||||
this.gridColumn13,
|
||||
this.gridColumn14,
|
||||
this.gridColumn15});
|
||||
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(821, 564);
|
||||
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(821, 564);
|
||||
this.panelControl2.TabIndex = 0;
|
||||
//
|
||||
// layoutControl1
|
||||
//
|
||||
this.layoutControl1.Controls.Add(this.txtid);
|
||||
this.layoutControl1.Controls.Add(this.txtname);
|
||||
this.layoutControl1.Controls.Add(this.txtcode);
|
||||
this.layoutControl1.Controls.Add(this.txtspec);
|
||||
this.layoutControl1.Controls.Add(this.txtunit);
|
||||
this.layoutControl1.Controls.Add(this.txtreferprice);
|
||||
this.layoutControl1.Controls.Add(this.txtmaterialtype);
|
||||
this.layoutControl1.Controls.Add(this.txtwarehouse);
|
||||
this.layoutControl1.Controls.Add(this.txtPOinnumber);
|
||||
this.layoutControl1.Controls.Add(this.txtsalereturnnumber);
|
||||
this.layoutControl1.Controls.Add(this.txtYDProductConsume);
|
||||
this.layoutControl1.Controls.Add(this.txtproductmaterialreturn);
|
||||
this.layoutControl1.Controls.Add(this.txtstocknumber);
|
||||
this.layoutControl1.Controls.Add(this.txtstockwarnnumber);
|
||||
this.layoutControl1.Controls.Add(this.txtremark);
|
||||
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(817, 560);
|
||||
this.layoutControl1.TabIndex = 6;
|
||||
this.layoutControl1.Text = "layoutControl1";
|
||||
//
|
||||
// txtid
|
||||
//
|
||||
this.txtid.Location = new System.Drawing.Point(87, 12);
|
||||
this.txtid.Name = "txtid";
|
||||
this.txtid.Size = new System.Drawing.Size(718, 20);
|
||||
this.txtid.StyleController = this.layoutControl1;
|
||||
this.txtid.TabIndex = 1;
|
||||
//
|
||||
// txtname
|
||||
//
|
||||
this.txtname.Location = new System.Drawing.Point(87, 36);
|
||||
this.txtname.Name = "txtname";
|
||||
this.txtname.Size = new System.Drawing.Size(319, 20);
|
||||
this.txtname.StyleController = this.layoutControl1;
|
||||
this.txtname.TabIndex = 2;
|
||||
//
|
||||
// txtcode
|
||||
//
|
||||
this.txtcode.Location = new System.Drawing.Point(485, 36);
|
||||
this.txtcode.Name = "txtcode";
|
||||
this.txtcode.Size = new System.Drawing.Size(320, 20);
|
||||
this.txtcode.StyleController = this.layoutControl1;
|
||||
this.txtcode.TabIndex = 3;
|
||||
//
|
||||
// txtspec
|
||||
//
|
||||
this.txtspec.Location = new System.Drawing.Point(87, 60);
|
||||
this.txtspec.Name = "txtspec";
|
||||
this.txtspec.Size = new System.Drawing.Size(319, 20);
|
||||
this.txtspec.StyleController = this.layoutControl1;
|
||||
this.txtspec.TabIndex = 4;
|
||||
//
|
||||
// txtunit
|
||||
//
|
||||
this.txtunit.EditValue = "";
|
||||
this.txtunit.Location = new System.Drawing.Point(485, 60);
|
||||
this.txtunit.Name = "txtunit";
|
||||
this.txtunit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.txtunit.Properties.DisplayMember = "Name";
|
||||
this.txtunit.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains;
|
||||
this.txtunit.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;
|
||||
this.txtunit.Properties.ValueMember = "ID";
|
||||
this.txtunit.Size = new System.Drawing.Size(320, 20);
|
||||
this.txtunit.StyleController = this.layoutControl1;
|
||||
this.txtunit.TabIndex = 5;
|
||||
//
|
||||
// txtreferprice
|
||||
//
|
||||
this.txtreferprice.Location = new System.Drawing.Point(87, 84);
|
||||
this.txtreferprice.Name = "txtreferprice";
|
||||
this.txtreferprice.Size = new System.Drawing.Size(319, 20);
|
||||
this.txtreferprice.StyleController = this.layoutControl1;
|
||||
this.txtreferprice.TabIndex = 6;
|
||||
//
|
||||
// txtmaterialtype
|
||||
//
|
||||
this.txtmaterialtype.EditValue = "";
|
||||
this.txtmaterialtype.Location = new System.Drawing.Point(485, 84);
|
||||
this.txtmaterialtype.Name = "txtmaterialtype";
|
||||
this.txtmaterialtype.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.txtmaterialtype.Properties.DisplayMember = "Name";
|
||||
this.txtmaterialtype.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains;
|
||||
this.txtmaterialtype.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;
|
||||
this.txtmaterialtype.Properties.ValueMember = "ID";
|
||||
this.txtmaterialtype.Size = new System.Drawing.Size(320, 20);
|
||||
this.txtmaterialtype.StyleController = this.layoutControl1;
|
||||
this.txtmaterialtype.TabIndex = 7;
|
||||
//
|
||||
// txtwarehouse
|
||||
//
|
||||
this.txtwarehouse.EditValue = "";
|
||||
this.txtwarehouse.Location = new System.Drawing.Point(87, 108);
|
||||
this.txtwarehouse.Name = "txtwarehouse";
|
||||
this.txtwarehouse.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.txtwarehouse.Properties.DisplayMember = "Name";
|
||||
this.txtwarehouse.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains;
|
||||
this.txtwarehouse.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;
|
||||
this.txtwarehouse.Properties.ValueMember = "ID";
|
||||
this.txtwarehouse.Size = new System.Drawing.Size(319, 20);
|
||||
this.txtwarehouse.StyleController = this.layoutControl1;
|
||||
this.txtwarehouse.TabIndex = 8;
|
||||
//
|
||||
// txtPOinnumber
|
||||
//
|
||||
this.txtPOinnumber.Location = new System.Drawing.Point(87, 132);
|
||||
this.txtPOinnumber.Name = "txtPOinnumber";
|
||||
this.txtPOinnumber.Size = new System.Drawing.Size(319, 20);
|
||||
this.txtPOinnumber.StyleController = this.layoutControl1;
|
||||
this.txtPOinnumber.TabIndex = 9;
|
||||
//
|
||||
// txtsalereturnnumber
|
||||
//
|
||||
this.txtsalereturnnumber.Location = new System.Drawing.Point(485, 132);
|
||||
this.txtsalereturnnumber.Name = "txtsalereturnnumber";
|
||||
this.txtsalereturnnumber.Size = new System.Drawing.Size(320, 20);
|
||||
this.txtsalereturnnumber.StyleController = this.layoutControl1;
|
||||
this.txtsalereturnnumber.TabIndex = 10;
|
||||
//
|
||||
// txtYDProductConsume
|
||||
//
|
||||
this.txtYDProductConsume.Location = new System.Drawing.Point(87, 156);
|
||||
this.txtYDProductConsume.Name = "txtYDProductConsume";
|
||||
this.txtYDProductConsume.Size = new System.Drawing.Size(319, 20);
|
||||
this.txtYDProductConsume.StyleController = this.layoutControl1;
|
||||
this.txtYDProductConsume.TabIndex = 11;
|
||||
//
|
||||
// txtproductmaterialreturn
|
||||
//
|
||||
this.txtproductmaterialreturn.Location = new System.Drawing.Point(485, 156);
|
||||
this.txtproductmaterialreturn.Name = "txtproductmaterialreturn";
|
||||
this.txtproductmaterialreturn.Size = new System.Drawing.Size(320, 20);
|
||||
this.txtproductmaterialreturn.StyleController = this.layoutControl1;
|
||||
this.txtproductmaterialreturn.TabIndex = 12;
|
||||
//
|
||||
// txtstocknumber
|
||||
//
|
||||
this.txtstocknumber.Location = new System.Drawing.Point(485, 108);
|
||||
this.txtstocknumber.Name = "txtstocknumber";
|
||||
this.txtstocknumber.Size = new System.Drawing.Size(320, 20);
|
||||
this.txtstocknumber.StyleController = this.layoutControl1;
|
||||
this.txtstocknumber.TabIndex = 13;
|
||||
//
|
||||
// txtstockwarnnumber
|
||||
//
|
||||
this.txtstockwarnnumber.Location = new System.Drawing.Point(87, 180);
|
||||
this.txtstockwarnnumber.Name = "txtstockwarnnumber";
|
||||
this.txtstockwarnnumber.Size = new System.Drawing.Size(718, 20);
|
||||
this.txtstockwarnnumber.StyleController = this.layoutControl1;
|
||||
this.txtstockwarnnumber.TabIndex = 14;
|
||||
//
|
||||
// txtremark
|
||||
//
|
||||
this.txtremark.Location = new System.Drawing.Point(87, 204);
|
||||
this.txtremark.Name = "txtremark";
|
||||
this.txtremark.Size = new System.Drawing.Size(718, 20);
|
||||
this.txtremark.StyleController = this.layoutControl1;
|
||||
this.txtremark.TabIndex = 15;
|
||||
//
|
||||
// layoutControlGroup1
|
||||
//
|
||||
this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1";
|
||||
this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
|
||||
this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
|
||||
this.layoutControlItem1,
|
||||
this.layoutControlItem2,
|
||||
this.layoutControlItem4,
|
||||
this.layoutControlItem6,
|
||||
this.layoutControlItem8,
|
||||
this.layoutControlItem9,
|
||||
this.layoutControlItem11,
|
||||
this.layoutControlItem14,
|
||||
this.layoutControlItem15,
|
||||
this.layoutControlItem3,
|
||||
this.layoutControlItem5,
|
||||
this.layoutControlItem7,
|
||||
this.layoutControlItem13,
|
||||
this.layoutControlItem10,
|
||||
this.layoutControlItem12});
|
||||
this.layoutControlGroup1.Name = "layoutControlGroup1";
|
||||
this.layoutControlGroup1.Size = new System.Drawing.Size(817, 560);
|
||||
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(797, 24);
|
||||
this.layoutControlItem1.Text = "id";
|
||||
this.layoutControlItem1.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem2
|
||||
//
|
||||
this.layoutControlItem2.Control = this.txtname;
|
||||
this.layoutControlItem2.CustomizationFormText = "物料名称";
|
||||
this.layoutControlItem2.Location = new System.Drawing.Point(0, 24);
|
||||
this.layoutControlItem2.Name = "layoutControlItem2";
|
||||
this.layoutControlItem2.Size = new System.Drawing.Size(398, 24);
|
||||
this.layoutControlItem2.Text = "物料名称";
|
||||
this.layoutControlItem2.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem4
|
||||
//
|
||||
this.layoutControlItem4.Control = this.txtspec;
|
||||
this.layoutControlItem4.CustomizationFormText = "规格型号";
|
||||
this.layoutControlItem4.Location = new System.Drawing.Point(0, 48);
|
||||
this.layoutControlItem4.Name = "layoutControlItem4";
|
||||
this.layoutControlItem4.Size = new System.Drawing.Size(398, 24);
|
||||
this.layoutControlItem4.Text = "规格型号";
|
||||
this.layoutControlItem4.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem6
|
||||
//
|
||||
this.layoutControlItem6.Control = this.txtreferprice;
|
||||
this.layoutControlItem6.CustomizationFormText = "参考单价";
|
||||
this.layoutControlItem6.Location = new System.Drawing.Point(0, 72);
|
||||
this.layoutControlItem6.Name = "layoutControlItem6";
|
||||
this.layoutControlItem6.Size = new System.Drawing.Size(398, 24);
|
||||
this.layoutControlItem6.Text = "参考单价";
|
||||
this.layoutControlItem6.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem8
|
||||
//
|
||||
this.layoutControlItem8.Control = this.txtwarehouse;
|
||||
this.layoutControlItem8.CustomizationFormText = "仓库";
|
||||
this.layoutControlItem8.Location = new System.Drawing.Point(0, 96);
|
||||
this.layoutControlItem8.Name = "layoutControlItem8";
|
||||
this.layoutControlItem8.Size = new System.Drawing.Size(398, 24);
|
||||
this.layoutControlItem8.Text = "仓库";
|
||||
this.layoutControlItem8.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem9
|
||||
//
|
||||
this.layoutControlItem9.Control = this.txtPOinnumber;
|
||||
this.layoutControlItem9.CustomizationFormText = "采购入库总量";
|
||||
this.layoutControlItem9.Location = new System.Drawing.Point(0, 120);
|
||||
this.layoutControlItem9.Name = "layoutControlItem9";
|
||||
this.layoutControlItem9.Size = new System.Drawing.Size(398, 24);
|
||||
this.layoutControlItem9.Text = "采购入库总量";
|
||||
this.layoutControlItem9.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem11
|
||||
//
|
||||
this.layoutControlItem11.Control = this.txtYDProductConsume;
|
||||
this.layoutControlItem11.CustomizationFormText = "生产领料总量";
|
||||
this.layoutControlItem11.Location = new System.Drawing.Point(0, 144);
|
||||
this.layoutControlItem11.Name = "layoutControlItem11";
|
||||
this.layoutControlItem11.Size = new System.Drawing.Size(398, 24);
|
||||
this.layoutControlItem11.Text = "生产领料总量";
|
||||
this.layoutControlItem11.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem14
|
||||
//
|
||||
this.layoutControlItem14.Control = this.txtstockwarnnumber;
|
||||
this.layoutControlItem14.CustomizationFormText = "库存预警数量";
|
||||
this.layoutControlItem14.Location = new System.Drawing.Point(0, 168);
|
||||
this.layoutControlItem14.Name = "layoutControlItem14";
|
||||
this.layoutControlItem14.Size = new System.Drawing.Size(797, 24);
|
||||
this.layoutControlItem14.Text = "库存预警数量";
|
||||
this.layoutControlItem14.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem15
|
||||
//
|
||||
this.layoutControlItem15.Control = this.txtremark;
|
||||
this.layoutControlItem15.CustomizationFormText = "备注";
|
||||
this.layoutControlItem15.Location = new System.Drawing.Point(0, 192);
|
||||
this.layoutControlItem15.Name = "layoutControlItem15";
|
||||
this.layoutControlItem15.Size = new System.Drawing.Size(797, 348);
|
||||
this.layoutControlItem15.Text = "备注";
|
||||
this.layoutControlItem15.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem3
|
||||
//
|
||||
this.layoutControlItem3.Control = this.txtcode;
|
||||
this.layoutControlItem3.CustomizationFormText = "物料编码";
|
||||
this.layoutControlItem3.Location = new System.Drawing.Point(398, 24);
|
||||
this.layoutControlItem3.Name = "layoutControlItem3";
|
||||
this.layoutControlItem3.Size = new System.Drawing.Size(399, 24);
|
||||
this.layoutControlItem3.Text = "物料编码";
|
||||
this.layoutControlItem3.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem5
|
||||
//
|
||||
this.layoutControlItem5.Control = this.txtunit;
|
||||
this.layoutControlItem5.CustomizationFormText = "计量单位";
|
||||
this.layoutControlItem5.Location = new System.Drawing.Point(398, 48);
|
||||
this.layoutControlItem5.Name = "layoutControlItem5";
|
||||
this.layoutControlItem5.Size = new System.Drawing.Size(399, 24);
|
||||
this.layoutControlItem5.Text = "计量单位";
|
||||
this.layoutControlItem5.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem7
|
||||
//
|
||||
this.layoutControlItem7.Control = this.txtmaterialtype;
|
||||
this.layoutControlItem7.CustomizationFormText = "物料类别";
|
||||
this.layoutControlItem7.Location = new System.Drawing.Point(398, 72);
|
||||
this.layoutControlItem7.Name = "layoutControlItem7";
|
||||
this.layoutControlItem7.Size = new System.Drawing.Size(399, 24);
|
||||
this.layoutControlItem7.Text = "物料类别";
|
||||
this.layoutControlItem7.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem13
|
||||
//
|
||||
this.layoutControlItem13.Control = this.txtstocknumber;
|
||||
this.layoutControlItem13.CustomizationFormText = "库存数量";
|
||||
this.layoutControlItem13.Location = new System.Drawing.Point(398, 96);
|
||||
this.layoutControlItem13.Name = "layoutControlItem13";
|
||||
this.layoutControlItem13.Size = new System.Drawing.Size(399, 24);
|
||||
this.layoutControlItem13.Text = "库存数量";
|
||||
this.layoutControlItem13.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem10
|
||||
//
|
||||
this.layoutControlItem10.Control = this.txtsalereturnnumber;
|
||||
this.layoutControlItem10.CustomizationFormText = "退货出库总量";
|
||||
this.layoutControlItem10.Location = new System.Drawing.Point(398, 120);
|
||||
this.layoutControlItem10.Name = "layoutControlItem10";
|
||||
this.layoutControlItem10.Size = new System.Drawing.Size(399, 24);
|
||||
this.layoutControlItem10.Text = "退货出库总量";
|
||||
this.layoutControlItem10.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem12
|
||||
//
|
||||
this.layoutControlItem12.Control = this.txtproductmaterialreturn;
|
||||
this.layoutControlItem12.CustomizationFormText = "生产退料总量";
|
||||
this.layoutControlItem12.Location = new System.Drawing.Point(398, 144);
|
||||
this.layoutControlItem12.Name = "layoutControlItem12";
|
||||
this.layoutControlItem12.Size = new System.Drawing.Size(399, 24);
|
||||
this.layoutControlItem12.Text = "生产退料总量";
|
||||
this.layoutControlItem12.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// Frmmaterial
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(827, 627);
|
||||
this.Controls.Add(this.xtraTabControl1);
|
||||
this.Name = "Frmmaterial";
|
||||
this.Text = "物料信息";
|
||||
this.Load += new System.EventHandler(this.Frmmaterial_Load);
|
||||
this.Controls.SetChildIndex(this.xtraTabControl1, 0);
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtunit)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtmaterialtype)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtwarehouse)).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.txtid.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtname.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtcode.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtspec.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtunit.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtreferprice.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtmaterialtype.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtwarehouse.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtPOinnumber.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtsalereturnnumber.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtYDProductConsume.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtproductmaterialreturn.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtstocknumber.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtstockwarnnumber.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).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.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.XtraEditors.TextEdit txtid;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtname;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtcode;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtspec;
|
||||
private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtunit;
|
||||
|
||||
private DevExpress.XtraEditors.LookUpEdit txtunit;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtreferprice;
|
||||
private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtmaterialtype;
|
||||
|
||||
private DevExpress.XtraEditors.LookUpEdit txtmaterialtype;
|
||||
private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtwarehouse;
|
||||
|
||||
private DevExpress.XtraEditors.LookUpEdit txtwarehouse;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtPOinnumber;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtsalereturnnumber;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtYDProductConsume;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtproductmaterialreturn;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtstocknumber;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtstockwarnnumber;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtremark;
|
||||
|
||||
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 DevExpress.XtraLayout.LayoutControlItem layoutControlItem7;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem11;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem12;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem13;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem14;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem15;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,120 @@
|
|||
<?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>
|
||||
</root>
|
||||
|
|
@ -0,0 +1,258 @@
|
|||
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 ERP.Entity;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity;
|
||||
using MES;
|
||||
|
||||
namespace ERP.Form
|
||||
{
|
||||
public partial class Frmproduct : FrmBaseForm
|
||||
{
|
||||
private Dictionary<string, string> fieldDictionary = new Dictionary<string, string>();
|
||||
public Frmproduct()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
private void Frmproduct_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new productInfo());
|
||||
InitSearchDicData();
|
||||
}
|
||||
/// <summary>
|
||||
/// 数据源初始化
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private void Init()
|
||||
{
|
||||
|
||||
|
||||
|
||||
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("产品类别");
|
||||
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 搜索字段
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private void InitSearchDicData()
|
||||
{
|
||||
fieldDictionary.Add("产品名称","productname");
|
||||
fieldDictionary.Add("仓库","warehouse");
|
||||
fieldDictionary.Add("产品类别","producttype");
|
||||
fieldDictionary.Add("产品编号","productcode");
|
||||
fieldDictionary.Add("创建时间","createTime");
|
||||
}
|
||||
/// <summary>
|
||||
/// 保存
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool SaveFunction()
|
||||
{
|
||||
try
|
||||
{
|
||||
productInfo info= (productInfo)this.ControlDataToModel(new productInfo());
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
db.productInfo.AddOrUpdate(info);
|
||||
db.SaveChanges();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.Message.ShowError();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public override void InitgrdListDataSource()
|
||||
{
|
||||
using (var con=new MESDB())///
|
||||
{
|
||||
grdList.DataSource=con.productInfo.ToList();
|
||||
}
|
||||
Init();
|
||||
}
|
||||
/// <summary>
|
||||
/// 字段为空校验
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool CheckInput()
|
||||
{
|
||||
if(string.IsNullOrEmpty(txtproductname.EditValue.ToString()))
|
||||
{
|
||||
"产品名称不能为空".ShowWarning();
|
||||
txtproductname.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtspec.EditValue.ToString()))
|
||||
{
|
||||
"规格不能为空".ShowWarning();
|
||||
txtspec.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtdefaultprice.EditValue.ToString()))
|
||||
{
|
||||
"默认单价不能为空".ShowWarning();
|
||||
txtdefaultprice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtunit.EditValue.ToString()))
|
||||
{
|
||||
"计量单位不能为空".ShowWarning();
|
||||
txtunit.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtwarehouse.EditValue.ToString()))
|
||||
{
|
||||
"仓库不能为空".ShowWarning();
|
||||
txtwarehouse.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtproducttype.EditValue.ToString()))
|
||||
{
|
||||
"产品类别不能为空".ShowWarning();
|
||||
txtproducttype.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtproductcode.EditValue.ToString()))
|
||||
{
|
||||
"产品编号不能为空".ShowWarning();
|
||||
txtproductcode.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtstocknumber.EditValue.ToString()))
|
||||
{
|
||||
"库存不能为空".ShowWarning();
|
||||
txtstocknumber.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtstartnumber.EditValue.ToString()))
|
||||
{
|
||||
"期初数量不能为空".ShowWarning();
|
||||
txtstartnumber.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtstartprice.EditValue.ToString()))
|
||||
{
|
||||
"期初总价不能为空".ShowWarning();
|
||||
txtstartprice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtproductinnumber.EditValue.ToString()))
|
||||
{
|
||||
"生产入库数量不能为空".ShowWarning();
|
||||
txtproductinnumber.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtsaleoutnumber.EditValue.ToString()))
|
||||
{
|
||||
"销售出库数量不能为空".ShowWarning();
|
||||
txtsaleoutnumber.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtcustomerreturnnumber.EditValue.ToString()))
|
||||
{
|
||||
"客户退货数量不能为空".ShowWarning();
|
||||
txtcustomerreturnnumber.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtstockwarnnumber.EditValue.ToString()))
|
||||
{
|
||||
"库存预警数量不能为空".ShowWarning();
|
||||
txtstockwarnnumber.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtcreatorId.EditValue.ToString()))
|
||||
{
|
||||
"创建人不能为空".ShowWarning();
|
||||
txtcreatorId.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtcreateTime.EditValue.ToString()))
|
||||
{
|
||||
"创建时间不能为空".ShowWarning();
|
||||
txtcreateTime.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txteditorId.EditValue.ToString()))
|
||||
{
|
||||
"编辑人不能为空".ShowWarning();
|
||||
txteditorId.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txteditTime.EditValue.ToString()))
|
||||
{
|
||||
"编辑时间不能为空".ShowWarning();
|
||||
txteditTime.Focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
/// <summary>
|
||||
/// 删除
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool DelFunction()
|
||||
{
|
||||
try
|
||||
{
|
||||
productInfo info = (productInfo)this.ControlDataToModel(new productInfo());
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
db.Entry(info).State=EntityState.Deleted;
|
||||
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.productInfo.SqlQuery("select * from product").ToList();
|
||||
}
|
||||
else
|
||||
{
|
||||
grdList.DataSource = db.productInfo.SqlQuery($"select * from product where {sql}").ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,120 @@
|
|||
<?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>
|
||||
</root>
|
||||
|
|
@ -9,10 +9,12 @@ using System.Windows.Forms;
|
|||
using WinformGeneralDeveloperFrame;
|
||||
using WinformGeneralDeveloperFrame.Commons;
|
||||
using DevExpress.XtraLayout;
|
||||
using MES.Entity;
|
||||
using ERP.Entity;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity;
|
||||
namespace MES.Form
|
||||
using MES;
|
||||
|
||||
namespace ERP.Form
|
||||
{
|
||||
public partial class Frmstock : FrmBaseForm
|
||||
{
|
||||
|
|
@ -46,39 +48,7 @@ namespace MES.Form
|
|||
/// <returns></returns>
|
||||
private void InitSearchDicData()
|
||||
{
|
||||
fieldDictionary.Add("代码","code");
|
||||
fieldDictionary.Add("名称","name");
|
||||
fieldDictionary.Add("今日开盘价","startPrice");
|
||||
fieldDictionary.Add("昨日收盘价","olePrice");
|
||||
fieldDictionary.Add("当前价格","nowPrice");
|
||||
fieldDictionary.Add("今日最高价","maxPrice");
|
||||
fieldDictionary.Add("今日最低价","minPrice");
|
||||
fieldDictionary.Add("竞买价","bidderPrice");
|
||||
fieldDictionary.Add("竞卖价","auctionPrice");
|
||||
fieldDictionary.Add("成交股票数","turnover");
|
||||
fieldDictionary.Add("成交金额","turnoverPrice");
|
||||
fieldDictionary.Add("买1数量","buyOneNum");
|
||||
fieldDictionary.Add("买1价格","buyOnePrice");
|
||||
fieldDictionary.Add("买2数量","buyTwoNum");
|
||||
fieldDictionary.Add("买2价格","buyTwoPrice");
|
||||
fieldDictionary.Add("买3数量","buyThreeNum");
|
||||
fieldDictionary.Add("买3价格","buyThreePrice");
|
||||
fieldDictionary.Add("买4数量","buyFourNum");
|
||||
fieldDictionary.Add("买4价格","buyFourPrice");
|
||||
fieldDictionary.Add("买5数量","buyFiveNum");
|
||||
fieldDictionary.Add("买5价格","buyFivePrice");
|
||||
fieldDictionary.Add("卖1数量","sellOneNum");
|
||||
fieldDictionary.Add("卖1价格","sellOnePrice");
|
||||
fieldDictionary.Add("卖2数量","sellTwoNum");
|
||||
fieldDictionary.Add("卖2价格","sellTwoPrice");
|
||||
fieldDictionary.Add("卖3数量","sellThreeNum");
|
||||
fieldDictionary.Add("卖3价格","sellThreePrice");
|
||||
fieldDictionary.Add("卖4数量","sellFourNum");
|
||||
fieldDictionary.Add("卖4价格","sellFourPrice");
|
||||
fieldDictionary.Add("卖5数量","sellFiveNum");
|
||||
fieldDictionary.Add("卖5价格","sellFivePrice");
|
||||
fieldDictionary.Add("时间","timeStr");
|
||||
fieldDictionary.Add("id","id");
|
||||
fieldDictionary.Add("仓库名称","name");
|
||||
}
|
||||
/// <summary>
|
||||
/// 保存
|
||||
|
|
@ -116,196 +86,16 @@ namespace MES.Form
|
|||
/// <returns></returns>
|
||||
public override bool CheckInput()
|
||||
{
|
||||
if(string.IsNullOrEmpty(txtcode.EditValue.ToString()))
|
||||
{
|
||||
"代码不能为空".ShowWarning();
|
||||
txtcode.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtname.EditValue.ToString()))
|
||||
{
|
||||
"名称不能为空".ShowWarning();
|
||||
"仓库名称不能为空".ShowWarning();
|
||||
txtname.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtstartPrice.EditValue.ToString()))
|
||||
if(string.IsNullOrEmpty(txtaddress.EditValue.ToString()))
|
||||
{
|
||||
"今日开盘价不能为空".ShowWarning();
|
||||
txtstartPrice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtolePrice.EditValue.ToString()))
|
||||
{
|
||||
"昨日收盘价不能为空".ShowWarning();
|
||||
txtolePrice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtnowPrice.EditValue.ToString()))
|
||||
{
|
||||
"当前价格不能为空".ShowWarning();
|
||||
txtnowPrice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtmaxPrice.EditValue.ToString()))
|
||||
{
|
||||
"今日最高价不能为空".ShowWarning();
|
||||
txtmaxPrice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtminPrice.EditValue.ToString()))
|
||||
{
|
||||
"今日最低价不能为空".ShowWarning();
|
||||
txtminPrice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtbidderPrice.EditValue.ToString()))
|
||||
{
|
||||
"竞买价不能为空".ShowWarning();
|
||||
txtbidderPrice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtauctionPrice.EditValue.ToString()))
|
||||
{
|
||||
"竞卖价不能为空".ShowWarning();
|
||||
txtauctionPrice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtturnover.EditValue.ToString()))
|
||||
{
|
||||
"成交股票数不能为空".ShowWarning();
|
||||
txtturnover.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtturnoverPrice.EditValue.ToString()))
|
||||
{
|
||||
"成交金额不能为空".ShowWarning();
|
||||
txtturnoverPrice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtbuyOneNum.EditValue.ToString()))
|
||||
{
|
||||
"买1数量不能为空".ShowWarning();
|
||||
txtbuyOneNum.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtbuyOnePrice.EditValue.ToString()))
|
||||
{
|
||||
"买1价格不能为空".ShowWarning();
|
||||
txtbuyOnePrice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtbuyTwoNum.EditValue.ToString()))
|
||||
{
|
||||
"买2数量不能为空".ShowWarning();
|
||||
txtbuyTwoNum.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtbuyTwoPrice.EditValue.ToString()))
|
||||
{
|
||||
"买2价格不能为空".ShowWarning();
|
||||
txtbuyTwoPrice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtbuyThreeNum.EditValue.ToString()))
|
||||
{
|
||||
"买3数量不能为空".ShowWarning();
|
||||
txtbuyThreeNum.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtbuyThreePrice.EditValue.ToString()))
|
||||
{
|
||||
"买3价格不能为空".ShowWarning();
|
||||
txtbuyThreePrice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtbuyFourNum.EditValue.ToString()))
|
||||
{
|
||||
"买4数量不能为空".ShowWarning();
|
||||
txtbuyFourNum.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtbuyFourPrice.EditValue.ToString()))
|
||||
{
|
||||
"买4价格不能为空".ShowWarning();
|
||||
txtbuyFourPrice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtbuyFiveNum.EditValue.ToString()))
|
||||
{
|
||||
"买5数量不能为空".ShowWarning();
|
||||
txtbuyFiveNum.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtbuyFivePrice.EditValue.ToString()))
|
||||
{
|
||||
"买5价格不能为空".ShowWarning();
|
||||
txtbuyFivePrice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtsellOneNum.EditValue.ToString()))
|
||||
{
|
||||
"卖1数量不能为空".ShowWarning();
|
||||
txtsellOneNum.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtsellOnePrice.EditValue.ToString()))
|
||||
{
|
||||
"卖1价格不能为空".ShowWarning();
|
||||
txtsellOnePrice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtsellTwoNum.EditValue.ToString()))
|
||||
{
|
||||
"卖2数量不能为空".ShowWarning();
|
||||
txtsellTwoNum.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtsellTwoPrice.EditValue.ToString()))
|
||||
{
|
||||
"卖2价格不能为空".ShowWarning();
|
||||
txtsellTwoPrice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtsellThreeNum.EditValue.ToString()))
|
||||
{
|
||||
"卖3数量不能为空".ShowWarning();
|
||||
txtsellThreeNum.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtsellThreePrice.EditValue.ToString()))
|
||||
{
|
||||
"卖3价格不能为空".ShowWarning();
|
||||
txtsellThreePrice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtsellFourNum.EditValue.ToString()))
|
||||
{
|
||||
"卖4数量不能为空".ShowWarning();
|
||||
txtsellFourNum.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtsellFourPrice.EditValue.ToString()))
|
||||
{
|
||||
"卖4价格不能为空".ShowWarning();
|
||||
txtsellFourPrice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtsellFiveNum.EditValue.ToString()))
|
||||
{
|
||||
"卖5数量不能为空".ShowWarning();
|
||||
txtsellFiveNum.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtsellFivePrice.EditValue.ToString()))
|
||||
{
|
||||
"卖5价格不能为空".ShowWarning();
|
||||
txtsellFivePrice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txttimeStr.EditValue.ToString()))
|
||||
{
|
||||
"时间不能为空".ShowWarning();
|
||||
txttimeStr.Focus();
|
||||
"仓库地址不能为空".ShowWarning();
|
||||
txtaddress.Focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,255 @@
|
|||
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;
|
||||
namespace MES.Form
|
||||
{
|
||||
public partial class Frmsupplier : FrmBaseForm
|
||||
{
|
||||
private Dictionary<string, string> fieldDictionary = new Dictionary<string, string>();
|
||||
public Frmsupplier()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
private void Frmsupplier_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new supplierInfo());
|
||||
InitSearchDicData();
|
||||
}
|
||||
/// <summary>
|
||||
/// 数据源初始化
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private void Init()
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
txtmanufacturertype.Properties.DataSource = GetDataTableUtils.SqlTable("厂商类型");
|
||||
repositoryItemtxtmanufacturertype.DataSource= GetDataTableUtils.SqlTable("厂商类型");
|
||||
txtcontacts.Properties.DataSource = GetDataTableUtils.SqlTable("用户");
|
||||
repositoryItemtxtcontacts.DataSource= GetDataTableUtils.SqlTable("用户");
|
||||
txtcreatorId.Properties.DataSource = GetDataTableUtils.SqlTable("用户");
|
||||
repositoryItemtxtcreatorId.DataSource= GetDataTableUtils.SqlTable("用户");
|
||||
txteditorId.Properties.DataSource = GetDataTableUtils.SqlTable("用户");
|
||||
repositoryItemtxteditorId.DataSource= GetDataTableUtils.SqlTable("用户");
|
||||
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 搜索字段
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private void InitSearchDicData()
|
||||
{
|
||||
fieldDictionary.Add("id","id");
|
||||
fieldDictionary.Add("供应商名称","suppliername");
|
||||
fieldDictionary.Add("厂商类型","manufacturertype");
|
||||
fieldDictionary.Add("联系人","contacts");
|
||||
fieldDictionary.Add("供应商地址","address");
|
||||
fieldDictionary.Add("增值税税率","vatrate");
|
||||
fieldDictionary.Add("纳税人识别号","taxpayeridentity");
|
||||
fieldDictionary.Add("对方收款账号","bankaccount");
|
||||
fieldDictionary.Add("供应商编号","suppliercode");
|
||||
fieldDictionary.Add("应付款总额","payments");
|
||||
fieldDictionary.Add("已结款总额","totalamountsettled");
|
||||
fieldDictionary.Add("未结款总额","totaloutstandingamount");
|
||||
fieldDictionary.Add("备注","remark");
|
||||
fieldDictionary.Add("创建人","creatorId");
|
||||
fieldDictionary.Add("创建时间","createTime");
|
||||
fieldDictionary.Add("修改人","editorId");
|
||||
fieldDictionary.Add("修改时间","editTime");
|
||||
}
|
||||
/// <summary>
|
||||
/// 保存
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool SaveFunction()
|
||||
{
|
||||
try
|
||||
{
|
||||
supplierInfo info= (supplierInfo)this.ControlDataToModel(new supplierInfo());
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
db.supplierInfo.AddOrUpdate(info);
|
||||
db.SaveChanges();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.Message.ShowError();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public override void InitgrdListDataSource()
|
||||
{
|
||||
using (var con=new MESDB())///
|
||||
{
|
||||
grdList.DataSource=con.supplierInfo.ToList();
|
||||
}
|
||||
Init();
|
||||
}
|
||||
/// <summary>
|
||||
/// 字段为空校验
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool CheckInput()
|
||||
{
|
||||
if(string.IsNullOrEmpty(txtsuppliername.EditValue.ToString()))
|
||||
{
|
||||
"供应商名称不能为空".ShowWarning();
|
||||
txtsuppliername.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtmanufacturertype.EditValue.ToString()))
|
||||
{
|
||||
"厂商类型不能为空".ShowWarning();
|
||||
txtmanufacturertype.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtcontacts.EditValue.ToString()))
|
||||
{
|
||||
"联系人不能为空".ShowWarning();
|
||||
txtcontacts.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtaddress.EditValue.ToString()))
|
||||
{
|
||||
"供应商地址不能为空".ShowWarning();
|
||||
txtaddress.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtvatrate.EditValue.ToString()))
|
||||
{
|
||||
"增值税税率不能为空".ShowWarning();
|
||||
txtvatrate.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txttaxpayeridentity.EditValue.ToString()))
|
||||
{
|
||||
"纳税人识别号不能为空".ShowWarning();
|
||||
txttaxpayeridentity.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtbankaccount.EditValue.ToString()))
|
||||
{
|
||||
"对方收款账号不能为空".ShowWarning();
|
||||
txtbankaccount.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtsuppliercode.EditValue.ToString()))
|
||||
{
|
||||
"供应商编号不能为空".ShowWarning();
|
||||
txtsuppliercode.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtpayments.EditValue.ToString()))
|
||||
{
|
||||
"应付款总额不能为空".ShowWarning();
|
||||
txtpayments.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txttotalamountsettled.EditValue.ToString()))
|
||||
{
|
||||
"已结款总额不能为空".ShowWarning();
|
||||
txttotalamountsettled.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txttotaloutstandingamount.EditValue.ToString()))
|
||||
{
|
||||
"未结款总额不能为空".ShowWarning();
|
||||
txttotaloutstandingamount.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtremark.EditValue.ToString()))
|
||||
{
|
||||
"备注不能为空".ShowWarning();
|
||||
txtremark.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtcreatorId.EditValue.ToString()))
|
||||
{
|
||||
"创建人不能为空".ShowWarning();
|
||||
txtcreatorId.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtcreateTime.EditValue.ToString()))
|
||||
{
|
||||
"创建时间不能为空".ShowWarning();
|
||||
txtcreateTime.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txteditorId.EditValue.ToString()))
|
||||
{
|
||||
"修改人不能为空".ShowWarning();
|
||||
txteditorId.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txteditTime.EditValue.ToString()))
|
||||
{
|
||||
"修改时间不能为空".ShowWarning();
|
||||
txteditTime.Focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
/// <summary>
|
||||
/// 删除
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool DelFunction()
|
||||
{
|
||||
try
|
||||
{
|
||||
supplierInfo info = (supplierInfo)this.ControlDataToModel(new supplierInfo());
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
db.Entry(info).State=EntityState.Deleted;
|
||||
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.supplierInfo.SqlQuery("select * from supplier").ToList();
|
||||
}
|
||||
else
|
||||
{
|
||||
grdList.DataSource = db.supplierInfo.SqlQuery($"select * from supplier where {sql}").ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,983 @@
|
|||
|
||||
using DevExpress.XtraEditors;
|
||||
using DevExpress.XtraLayout;
|
||||
using DevExpress.XtraTab;
|
||||
|
||||
namespace MES.Form
|
||||
{
|
||||
partial class Frmsupplier
|
||||
{
|
||||
/// <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.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemtxtmanufacturertype = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemtxtcontacts = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn9 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
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.repositoryItemtxtcreatorId = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.gridColumn15 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn16 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemtxteditorId = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.gridColumn17 = 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.txtid = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtsuppliername = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtmanufacturertype = new DevExpress.XtraEditors.LookUpEdit();
|
||||
this.txtcontacts = new DevExpress.XtraEditors.LookUpEdit();
|
||||
this.txtaddress = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtvatrate = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txttaxpayeridentity = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtbankaccount = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtsuppliercode = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtpayments = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txttotalamountsettled = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txttotaloutstandingamount = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtremark = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtcreatorId = new DevExpress.XtraEditors.LookUpEdit();
|
||||
this.txtcreateTime = new DevExpress.XtraEditors.DateEdit();
|
||||
this.txteditorId = new DevExpress.XtraEditors.LookUpEdit();
|
||||
this.txteditTime = new DevExpress.XtraEditors.DateEdit();
|
||||
this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
|
||||
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem16 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem17 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtmanufacturertype)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcontacts)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcreatorId)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxteditorId)).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.txtid.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtsuppliername.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtmanufacturertype.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtcontacts.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtaddress.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtvatrate.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txttaxpayeridentity.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtbankaccount.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtsuppliercode.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtpayments.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txttotalamountsettled.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txttotaloutstandingamount.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).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.txteditorId.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txteditTime.Properties.CalendarTimeProperties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txteditTime.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// gridColumn1
|
||||
//
|
||||
this.gridColumn1.Caption = "id";
|
||||
this.gridColumn1.FieldName = "id";
|
||||
this.gridColumn1.Name = "gridColumn1";
|
||||
//
|
||||
// gridColumn2
|
||||
//
|
||||
this.gridColumn2.Caption = "供应商名称";
|
||||
this.gridColumn2.FieldName = "suppliername";
|
||||
this.gridColumn2.Name = "gridColumn2";
|
||||
this.gridColumn2.Visible = true;
|
||||
this.gridColumn2.VisibleIndex = 0;
|
||||
this.gridColumn2.Width = 201;
|
||||
//
|
||||
// gridColumn3
|
||||
//
|
||||
this.gridColumn3.Caption = "厂商类型";
|
||||
this.gridColumn3.ColumnEdit = this.repositoryItemtxtmanufacturertype;
|
||||
this.gridColumn3.FieldName = "manufacturertype";
|
||||
this.gridColumn3.Name = "gridColumn3";
|
||||
this.gridColumn3.Visible = true;
|
||||
this.gridColumn3.VisibleIndex = 1;
|
||||
this.gridColumn3.Width = 201;
|
||||
//
|
||||
// repositoryItemtxtmanufacturertype
|
||||
//
|
||||
this.repositoryItemtxtmanufacturertype.AutoHeight = false;
|
||||
this.repositoryItemtxtmanufacturertype.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.repositoryItemtxtmanufacturertype.DisplayMember = "Name";
|
||||
this.repositoryItemtxtmanufacturertype.Name = "repositoryItemtxtmanufacturertype";
|
||||
this.repositoryItemtxtmanufacturertype.ValueMember = "ID";
|
||||
//
|
||||
// gridColumn4
|
||||
//
|
||||
this.gridColumn4.Caption = "联系人";
|
||||
this.gridColumn4.ColumnEdit = this.repositoryItemtxtcontacts;
|
||||
this.gridColumn4.FieldName = "contacts";
|
||||
this.gridColumn4.Name = "gridColumn4";
|
||||
this.gridColumn4.Visible = true;
|
||||
this.gridColumn4.VisibleIndex = 2;
|
||||
this.gridColumn4.Width = 201;
|
||||
//
|
||||
// repositoryItemtxtcontacts
|
||||
//
|
||||
this.repositoryItemtxtcontacts.AutoHeight = false;
|
||||
this.repositoryItemtxtcontacts.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.repositoryItemtxtcontacts.DisplayMember = "Name";
|
||||
this.repositoryItemtxtcontacts.Name = "repositoryItemtxtcontacts";
|
||||
this.repositoryItemtxtcontacts.ValueMember = "ID";
|
||||
//
|
||||
// gridColumn5
|
||||
//
|
||||
this.gridColumn5.Caption = "供应商地址";
|
||||
this.gridColumn5.FieldName = "address";
|
||||
this.gridColumn5.Name = "gridColumn5";
|
||||
this.gridColumn5.Visible = true;
|
||||
this.gridColumn5.VisibleIndex = 3;
|
||||
this.gridColumn5.Width = 201;
|
||||
//
|
||||
// gridColumn6
|
||||
//
|
||||
this.gridColumn6.Caption = "增值税税率";
|
||||
this.gridColumn6.FieldName = "vatrate";
|
||||
this.gridColumn6.Name = "gridColumn6";
|
||||
this.gridColumn6.Visible = true;
|
||||
this.gridColumn6.VisibleIndex = 4;
|
||||
this.gridColumn6.Width = 201;
|
||||
//
|
||||
// gridColumn7
|
||||
//
|
||||
this.gridColumn7.Caption = "纳税人识别号";
|
||||
this.gridColumn7.FieldName = "taxpayeridentity";
|
||||
this.gridColumn7.Name = "gridColumn7";
|
||||
this.gridColumn7.Visible = true;
|
||||
this.gridColumn7.VisibleIndex = 5;
|
||||
this.gridColumn7.Width = 201;
|
||||
//
|
||||
// gridColumn8
|
||||
//
|
||||
this.gridColumn8.Caption = "对方收款账号";
|
||||
this.gridColumn8.FieldName = "bankaccount";
|
||||
this.gridColumn8.Name = "gridColumn8";
|
||||
this.gridColumn8.Visible = true;
|
||||
this.gridColumn8.VisibleIndex = 6;
|
||||
this.gridColumn8.Width = 201;
|
||||
//
|
||||
// gridColumn9
|
||||
//
|
||||
this.gridColumn9.Caption = "供应商编号";
|
||||
this.gridColumn9.FieldName = "suppliercode";
|
||||
this.gridColumn9.Name = "gridColumn9";
|
||||
this.gridColumn9.Visible = true;
|
||||
this.gridColumn9.VisibleIndex = 7;
|
||||
this.gridColumn9.Width = 201;
|
||||
//
|
||||
// gridColumn10
|
||||
//
|
||||
this.gridColumn10.Caption = "应付款总额";
|
||||
this.gridColumn10.FieldName = "payments";
|
||||
this.gridColumn10.Name = "gridColumn10";
|
||||
this.gridColumn10.Visible = true;
|
||||
this.gridColumn10.VisibleIndex = 8;
|
||||
this.gridColumn10.Width = 201;
|
||||
//
|
||||
// gridColumn11
|
||||
//
|
||||
this.gridColumn11.Caption = "已结款总额";
|
||||
this.gridColumn11.FieldName = "totalamountsettled";
|
||||
this.gridColumn11.Name = "gridColumn11";
|
||||
this.gridColumn11.Visible = true;
|
||||
this.gridColumn11.VisibleIndex = 9;
|
||||
this.gridColumn11.Width = 201;
|
||||
//
|
||||
// gridColumn12
|
||||
//
|
||||
this.gridColumn12.Caption = "未结款总额";
|
||||
this.gridColumn12.FieldName = "totaloutstandingamount";
|
||||
this.gridColumn12.Name = "gridColumn12";
|
||||
this.gridColumn12.Visible = true;
|
||||
this.gridColumn12.VisibleIndex = 10;
|
||||
this.gridColumn12.Width = 201;
|
||||
//
|
||||
// gridColumn13
|
||||
//
|
||||
this.gridColumn13.Caption = "备注";
|
||||
this.gridColumn13.FieldName = "remark";
|
||||
this.gridColumn13.Name = "gridColumn13";
|
||||
this.gridColumn13.Visible = true;
|
||||
this.gridColumn13.VisibleIndex = 11;
|
||||
this.gridColumn13.Width = 201;
|
||||
//
|
||||
// gridColumn14
|
||||
//
|
||||
this.gridColumn14.Caption = "创建人";
|
||||
this.gridColumn14.ColumnEdit = this.repositoryItemtxtcreatorId;
|
||||
this.gridColumn14.FieldName = "creatorId";
|
||||
this.gridColumn14.Name = "gridColumn14";
|
||||
this.gridColumn14.Visible = true;
|
||||
this.gridColumn14.VisibleIndex = 12;
|
||||
this.gridColumn14.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";
|
||||
//
|
||||
// gridColumn15
|
||||
//
|
||||
this.gridColumn15.Caption = "创建时间";
|
||||
this.gridColumn15.DisplayFormat.FormatString = "G";
|
||||
this.gridColumn15.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
|
||||
this.gridColumn15.FieldName = "createTime";
|
||||
this.gridColumn15.Name = "gridColumn15";
|
||||
this.gridColumn15.Visible = true;
|
||||
this.gridColumn15.VisibleIndex = 13;
|
||||
this.gridColumn15.Width = 201;
|
||||
//
|
||||
// gridColumn16
|
||||
//
|
||||
this.gridColumn16.Caption = "修改人";
|
||||
this.gridColumn16.ColumnEdit = this.repositoryItemtxteditorId;
|
||||
this.gridColumn16.FieldName = "editorId";
|
||||
this.gridColumn16.Name = "gridColumn16";
|
||||
this.gridColumn16.Visible = true;
|
||||
this.gridColumn16.VisibleIndex = 14;
|
||||
this.gridColumn16.Width = 201;
|
||||
//
|
||||
// repositoryItemtxteditorId
|
||||
//
|
||||
this.repositoryItemtxteditorId.AutoHeight = false;
|
||||
this.repositoryItemtxteditorId.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.repositoryItemtxteditorId.DisplayMember = "Name";
|
||||
this.repositoryItemtxteditorId.Name = "repositoryItemtxteditorId";
|
||||
this.repositoryItemtxteditorId.ValueMember = "ID";
|
||||
//
|
||||
// gridColumn17
|
||||
//
|
||||
this.gridColumn17.Caption = "修改时间";
|
||||
this.gridColumn17.DisplayFormat.FormatString = "G";
|
||||
this.gridColumn17.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
|
||||
this.gridColumn17.FieldName = "editTime";
|
||||
this.gridColumn17.Name = "gridColumn17";
|
||||
this.gridColumn17.Visible = true;
|
||||
this.gridColumn17.VisibleIndex = 15;
|
||||
this.gridColumn17.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(908, 538);
|
||||
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.gridColumn7,
|
||||
this.gridColumn8,
|
||||
this.gridColumn9,
|
||||
this.gridColumn10,
|
||||
this.gridColumn11,
|
||||
this.gridColumn12,
|
||||
this.gridColumn13,
|
||||
this.gridColumn14,
|
||||
this.gridColumn15,
|
||||
this.gridColumn16,
|
||||
this.gridColumn17});
|
||||
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(902, 509);
|
||||
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(902, 509);
|
||||
this.panelControl2.TabIndex = 0;
|
||||
//
|
||||
// layoutControl1
|
||||
//
|
||||
this.layoutControl1.Controls.Add(this.txtid);
|
||||
this.layoutControl1.Controls.Add(this.txtsuppliername);
|
||||
this.layoutControl1.Controls.Add(this.txtmanufacturertype);
|
||||
this.layoutControl1.Controls.Add(this.txtcontacts);
|
||||
this.layoutControl1.Controls.Add(this.txtaddress);
|
||||
this.layoutControl1.Controls.Add(this.txtvatrate);
|
||||
this.layoutControl1.Controls.Add(this.txttaxpayeridentity);
|
||||
this.layoutControl1.Controls.Add(this.txtbankaccount);
|
||||
this.layoutControl1.Controls.Add(this.txtsuppliercode);
|
||||
this.layoutControl1.Controls.Add(this.txtpayments);
|
||||
this.layoutControl1.Controls.Add(this.txttotalamountsettled);
|
||||
this.layoutControl1.Controls.Add(this.txttotaloutstandingamount);
|
||||
this.layoutControl1.Controls.Add(this.txtremark);
|
||||
this.layoutControl1.Controls.Add(this.txtcreatorId);
|
||||
this.layoutControl1.Controls.Add(this.txtcreateTime);
|
||||
this.layoutControl1.Controls.Add(this.txteditorId);
|
||||
this.layoutControl1.Controls.Add(this.txteditTime);
|
||||
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(898, 505);
|
||||
this.layoutControl1.TabIndex = 6;
|
||||
this.layoutControl1.Text = "layoutControl1";
|
||||
//
|
||||
// txtid
|
||||
//
|
||||
this.txtid.Location = new System.Drawing.Point(87, 12);
|
||||
this.txtid.Name = "txtid";
|
||||
this.txtid.Size = new System.Drawing.Size(799, 20);
|
||||
this.txtid.StyleController = this.layoutControl1;
|
||||
this.txtid.TabIndex = 1;
|
||||
//
|
||||
// txtsuppliername
|
||||
//
|
||||
this.txtsuppliername.Location = new System.Drawing.Point(87, 36);
|
||||
this.txtsuppliername.Name = "txtsuppliername";
|
||||
this.txtsuppliername.Size = new System.Drawing.Size(360, 20);
|
||||
this.txtsuppliername.StyleController = this.layoutControl1;
|
||||
this.txtsuppliername.TabIndex = 2;
|
||||
//
|
||||
// txtmanufacturertype
|
||||
//
|
||||
this.txtmanufacturertype.EditValue = "";
|
||||
this.txtmanufacturertype.Location = new System.Drawing.Point(87, 60);
|
||||
this.txtmanufacturertype.Name = "txtmanufacturertype";
|
||||
this.txtmanufacturertype.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.txtmanufacturertype.Properties.DisplayMember = "Name";
|
||||
this.txtmanufacturertype.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains;
|
||||
this.txtmanufacturertype.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;
|
||||
this.txtmanufacturertype.Properties.ValueMember = "ID";
|
||||
this.txtmanufacturertype.Size = new System.Drawing.Size(360, 20);
|
||||
this.txtmanufacturertype.StyleController = this.layoutControl1;
|
||||
this.txtmanufacturertype.TabIndex = 3;
|
||||
//
|
||||
// txtcontacts
|
||||
//
|
||||
this.txtcontacts.EditValue = "";
|
||||
this.txtcontacts.Location = new System.Drawing.Point(87, 84);
|
||||
this.txtcontacts.Name = "txtcontacts";
|
||||
this.txtcontacts.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.txtcontacts.Properties.DisplayMember = "Name";
|
||||
this.txtcontacts.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains;
|
||||
this.txtcontacts.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;
|
||||
this.txtcontacts.Properties.ValueMember = "ID";
|
||||
this.txtcontacts.Size = new System.Drawing.Size(360, 20);
|
||||
this.txtcontacts.StyleController = this.layoutControl1;
|
||||
this.txtcontacts.TabIndex = 4;
|
||||
//
|
||||
// txtaddress
|
||||
//
|
||||
this.txtaddress.Location = new System.Drawing.Point(526, 60);
|
||||
this.txtaddress.Name = "txtaddress";
|
||||
this.txtaddress.Size = new System.Drawing.Size(360, 20);
|
||||
this.txtaddress.StyleController = this.layoutControl1;
|
||||
this.txtaddress.TabIndex = 5;
|
||||
//
|
||||
// txtvatrate
|
||||
//
|
||||
this.txtvatrate.Location = new System.Drawing.Point(87, 108);
|
||||
this.txtvatrate.Name = "txtvatrate";
|
||||
this.txtvatrate.Size = new System.Drawing.Size(360, 20);
|
||||
this.txtvatrate.StyleController = this.layoutControl1;
|
||||
this.txtvatrate.TabIndex = 6;
|
||||
//
|
||||
// txttaxpayeridentity
|
||||
//
|
||||
this.txttaxpayeridentity.Location = new System.Drawing.Point(526, 84);
|
||||
this.txttaxpayeridentity.Name = "txttaxpayeridentity";
|
||||
this.txttaxpayeridentity.Size = new System.Drawing.Size(360, 20);
|
||||
this.txttaxpayeridentity.StyleController = this.layoutControl1;
|
||||
this.txttaxpayeridentity.TabIndex = 7;
|
||||
//
|
||||
// txtbankaccount
|
||||
//
|
||||
this.txtbankaccount.Location = new System.Drawing.Point(526, 108);
|
||||
this.txtbankaccount.Name = "txtbankaccount";
|
||||
this.txtbankaccount.Size = new System.Drawing.Size(360, 20);
|
||||
this.txtbankaccount.StyleController = this.layoutControl1;
|
||||
this.txtbankaccount.TabIndex = 8;
|
||||
//
|
||||
// txtsuppliercode
|
||||
//
|
||||
this.txtsuppliercode.Location = new System.Drawing.Point(526, 36);
|
||||
this.txtsuppliercode.Name = "txtsuppliercode";
|
||||
this.txtsuppliercode.Size = new System.Drawing.Size(360, 20);
|
||||
this.txtsuppliercode.StyleController = this.layoutControl1;
|
||||
this.txtsuppliercode.TabIndex = 9;
|
||||
//
|
||||
// txtpayments
|
||||
//
|
||||
this.txtpayments.Location = new System.Drawing.Point(87, 156);
|
||||
this.txtpayments.Name = "txtpayments";
|
||||
this.txtpayments.Size = new System.Drawing.Size(799, 20);
|
||||
this.txtpayments.StyleController = this.layoutControl1;
|
||||
this.txtpayments.TabIndex = 10;
|
||||
//
|
||||
// txttotalamountsettled
|
||||
//
|
||||
this.txttotalamountsettled.Location = new System.Drawing.Point(87, 132);
|
||||
this.txttotalamountsettled.Name = "txttotalamountsettled";
|
||||
this.txttotalamountsettled.Size = new System.Drawing.Size(360, 20);
|
||||
this.txttotalamountsettled.StyleController = this.layoutControl1;
|
||||
this.txttotalamountsettled.TabIndex = 11;
|
||||
//
|
||||
// txttotaloutstandingamount
|
||||
//
|
||||
this.txttotaloutstandingamount.Location = new System.Drawing.Point(526, 132);
|
||||
this.txttotaloutstandingamount.Name = "txttotaloutstandingamount";
|
||||
this.txttotaloutstandingamount.Size = new System.Drawing.Size(360, 20);
|
||||
this.txttotaloutstandingamount.StyleController = this.layoutControl1;
|
||||
this.txttotaloutstandingamount.TabIndex = 12;
|
||||
//
|
||||
// txtremark
|
||||
//
|
||||
this.txtremark.Location = new System.Drawing.Point(87, 180);
|
||||
this.txtremark.Name = "txtremark";
|
||||
this.txtremark.Size = new System.Drawing.Size(799, 20);
|
||||
this.txtremark.StyleController = this.layoutControl1;
|
||||
this.txtremark.TabIndex = 13;
|
||||
//
|
||||
// txtcreatorId
|
||||
//
|
||||
this.txtcreatorId.EditValue = "";
|
||||
this.txtcreatorId.Location = new System.Drawing.Point(87, 204);
|
||||
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(360, 20);
|
||||
this.txtcreatorId.StyleController = this.layoutControl1;
|
||||
this.txtcreatorId.TabIndex = 14;
|
||||
//
|
||||
// txtcreateTime
|
||||
//
|
||||
this.txtcreateTime.EditValue = null;
|
||||
this.txtcreateTime.ImeMode = System.Windows.Forms.ImeMode.Off;
|
||||
this.txtcreateTime.Location = new System.Drawing.Point(87, 228);
|
||||
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(360, 20);
|
||||
this.txtcreateTime.StyleController = this.layoutControl1;
|
||||
this.txtcreateTime.TabIndex = 15;
|
||||
//
|
||||
// txteditorId
|
||||
//
|
||||
this.txteditorId.EditValue = "";
|
||||
this.txteditorId.Location = new System.Drawing.Point(526, 204);
|
||||
this.txteditorId.Name = "txteditorId";
|
||||
this.txteditorId.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.txteditorId.Properties.DisplayMember = "Name";
|
||||
this.txteditorId.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains;
|
||||
this.txteditorId.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;
|
||||
this.txteditorId.Properties.ValueMember = "ID";
|
||||
this.txteditorId.Size = new System.Drawing.Size(360, 20);
|
||||
this.txteditorId.StyleController = this.layoutControl1;
|
||||
this.txteditorId.TabIndex = 16;
|
||||
//
|
||||
// txteditTime
|
||||
//
|
||||
this.txteditTime.EditValue = null;
|
||||
this.txteditTime.ImeMode = System.Windows.Forms.ImeMode.Off;
|
||||
this.txteditTime.Location = new System.Drawing.Point(526, 228);
|
||||
this.txteditTime.Name = "txteditTime";
|
||||
this.txteditTime.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.txteditTime.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton()});
|
||||
this.txteditTime.Properties.DisplayFormat.FormatString = "G";
|
||||
this.txteditTime.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
|
||||
this.txteditTime.Size = new System.Drawing.Size(360, 20);
|
||||
this.txteditTime.StyleController = this.layoutControl1;
|
||||
this.txteditTime.TabIndex = 17;
|
||||
//
|
||||
// layoutControlGroup1
|
||||
//
|
||||
this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1";
|
||||
this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
|
||||
this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
|
||||
this.layoutControlItem1,
|
||||
this.layoutControlItem4,
|
||||
this.layoutControlItem6,
|
||||
this.layoutControlItem13,
|
||||
this.layoutControlItem14,
|
||||
this.layoutControlItem3,
|
||||
this.layoutControlItem7,
|
||||
this.layoutControlItem9,
|
||||
this.layoutControlItem2,
|
||||
this.layoutControlItem5,
|
||||
this.layoutControlItem8,
|
||||
this.layoutControlItem11,
|
||||
this.layoutControlItem10,
|
||||
this.layoutControlItem12,
|
||||
this.layoutControlItem16,
|
||||
this.layoutControlItem17,
|
||||
this.emptySpaceItem1,
|
||||
this.layoutControlItem15});
|
||||
this.layoutControlGroup1.Name = "layoutControlGroup1";
|
||||
this.layoutControlGroup1.Size = new System.Drawing.Size(898, 505);
|
||||
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(878, 24);
|
||||
this.layoutControlItem1.Text = "id";
|
||||
this.layoutControlItem1.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem4
|
||||
//
|
||||
this.layoutControlItem4.Control = this.txtcontacts;
|
||||
this.layoutControlItem4.CustomizationFormText = "联系人";
|
||||
this.layoutControlItem4.Location = new System.Drawing.Point(0, 72);
|
||||
this.layoutControlItem4.Name = "layoutControlItem4";
|
||||
this.layoutControlItem4.Size = new System.Drawing.Size(439, 24);
|
||||
this.layoutControlItem4.Text = "联系人";
|
||||
this.layoutControlItem4.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem6
|
||||
//
|
||||
this.layoutControlItem6.Control = this.txtvatrate;
|
||||
this.layoutControlItem6.CustomizationFormText = "增值税税率";
|
||||
this.layoutControlItem6.Location = new System.Drawing.Point(0, 96);
|
||||
this.layoutControlItem6.Name = "layoutControlItem6";
|
||||
this.layoutControlItem6.Size = new System.Drawing.Size(439, 24);
|
||||
this.layoutControlItem6.Text = "增值税税率";
|
||||
this.layoutControlItem6.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem13
|
||||
//
|
||||
this.layoutControlItem13.Control = this.txtremark;
|
||||
this.layoutControlItem13.CustomizationFormText = "备注";
|
||||
this.layoutControlItem13.Location = new System.Drawing.Point(0, 168);
|
||||
this.layoutControlItem13.Name = "layoutControlItem13";
|
||||
this.layoutControlItem13.Size = new System.Drawing.Size(878, 24);
|
||||
this.layoutControlItem13.Text = "备注";
|
||||
this.layoutControlItem13.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem14
|
||||
//
|
||||
this.layoutControlItem14.Control = this.txtcreatorId;
|
||||
this.layoutControlItem14.CustomizationFormText = "创建人";
|
||||
this.layoutControlItem14.Location = new System.Drawing.Point(0, 192);
|
||||
this.layoutControlItem14.Name = "layoutControlItem14";
|
||||
this.layoutControlItem14.Size = new System.Drawing.Size(439, 24);
|
||||
this.layoutControlItem14.Text = "创建人";
|
||||
this.layoutControlItem14.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem15
|
||||
//
|
||||
this.layoutControlItem15.Control = this.txtcreateTime;
|
||||
this.layoutControlItem15.CustomizationFormText = "创建时间";
|
||||
this.layoutControlItem15.Location = new System.Drawing.Point(0, 216);
|
||||
this.layoutControlItem15.Name = "layoutControlItem15";
|
||||
this.layoutControlItem15.Size = new System.Drawing.Size(439, 24);
|
||||
this.layoutControlItem15.Text = "创建时间";
|
||||
this.layoutControlItem15.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem3
|
||||
//
|
||||
this.layoutControlItem3.Control = this.txtmanufacturertype;
|
||||
this.layoutControlItem3.CustomizationFormText = "厂商类型";
|
||||
this.layoutControlItem3.Location = new System.Drawing.Point(0, 48);
|
||||
this.layoutControlItem3.Name = "layoutControlItem3";
|
||||
this.layoutControlItem3.Size = new System.Drawing.Size(439, 24);
|
||||
this.layoutControlItem3.Text = "厂商类型";
|
||||
this.layoutControlItem3.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem7
|
||||
//
|
||||
this.layoutControlItem7.Control = this.txttaxpayeridentity;
|
||||
this.layoutControlItem7.CustomizationFormText = "纳税人识别号";
|
||||
this.layoutControlItem7.Location = new System.Drawing.Point(439, 72);
|
||||
this.layoutControlItem7.Name = "layoutControlItem7";
|
||||
this.layoutControlItem7.Size = new System.Drawing.Size(439, 24);
|
||||
this.layoutControlItem7.Text = "纳税人识别号";
|
||||
this.layoutControlItem7.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem9
|
||||
//
|
||||
this.layoutControlItem9.Control = this.txtsuppliercode;
|
||||
this.layoutControlItem9.CustomizationFormText = "供应商编号";
|
||||
this.layoutControlItem9.Location = new System.Drawing.Point(439, 24);
|
||||
this.layoutControlItem9.Name = "layoutControlItem9";
|
||||
this.layoutControlItem9.Size = new System.Drawing.Size(439, 24);
|
||||
this.layoutControlItem9.Text = "供应商编号";
|
||||
this.layoutControlItem9.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem2
|
||||
//
|
||||
this.layoutControlItem2.Control = this.txtsuppliername;
|
||||
this.layoutControlItem2.CustomizationFormText = "供应商名称";
|
||||
this.layoutControlItem2.Location = new System.Drawing.Point(0, 24);
|
||||
this.layoutControlItem2.Name = "layoutControlItem2";
|
||||
this.layoutControlItem2.Size = new System.Drawing.Size(439, 24);
|
||||
this.layoutControlItem2.Text = "供应商名称";
|
||||
this.layoutControlItem2.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem5
|
||||
//
|
||||
this.layoutControlItem5.Control = this.txtaddress;
|
||||
this.layoutControlItem5.CustomizationFormText = "供应商地址";
|
||||
this.layoutControlItem5.Location = new System.Drawing.Point(439, 48);
|
||||
this.layoutControlItem5.Name = "layoutControlItem5";
|
||||
this.layoutControlItem5.Size = new System.Drawing.Size(439, 24);
|
||||
this.layoutControlItem5.Text = "供应商地址";
|
||||
this.layoutControlItem5.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem8
|
||||
//
|
||||
this.layoutControlItem8.Control = this.txtbankaccount;
|
||||
this.layoutControlItem8.CustomizationFormText = "对方收款账号";
|
||||
this.layoutControlItem8.Location = new System.Drawing.Point(439, 96);
|
||||
this.layoutControlItem8.Name = "layoutControlItem8";
|
||||
this.layoutControlItem8.Size = new System.Drawing.Size(439, 24);
|
||||
this.layoutControlItem8.Text = "对方收款账号";
|
||||
this.layoutControlItem8.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem11
|
||||
//
|
||||
this.layoutControlItem11.Control = this.txttotalamountsettled;
|
||||
this.layoutControlItem11.CustomizationFormText = "已结款总额";
|
||||
this.layoutControlItem11.Location = new System.Drawing.Point(0, 120);
|
||||
this.layoutControlItem11.Name = "layoutControlItem11";
|
||||
this.layoutControlItem11.Size = new System.Drawing.Size(439, 24);
|
||||
this.layoutControlItem11.Text = "已结款总额";
|
||||
this.layoutControlItem11.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem10
|
||||
//
|
||||
this.layoutControlItem10.Control = this.txtpayments;
|
||||
this.layoutControlItem10.CustomizationFormText = "应付款总额";
|
||||
this.layoutControlItem10.Location = new System.Drawing.Point(0, 144);
|
||||
this.layoutControlItem10.Name = "layoutControlItem10";
|
||||
this.layoutControlItem10.Size = new System.Drawing.Size(878, 24);
|
||||
this.layoutControlItem10.Text = "应付款总额";
|
||||
this.layoutControlItem10.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem12
|
||||
//
|
||||
this.layoutControlItem12.Control = this.txttotaloutstandingamount;
|
||||
this.layoutControlItem12.CustomizationFormText = "未结款总额";
|
||||
this.layoutControlItem12.Location = new System.Drawing.Point(439, 120);
|
||||
this.layoutControlItem12.Name = "layoutControlItem12";
|
||||
this.layoutControlItem12.Size = new System.Drawing.Size(439, 24);
|
||||
this.layoutControlItem12.Text = "未结款总额";
|
||||
this.layoutControlItem12.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem16
|
||||
//
|
||||
this.layoutControlItem16.Control = this.txteditorId;
|
||||
this.layoutControlItem16.CustomizationFormText = "修改人";
|
||||
this.layoutControlItem16.Location = new System.Drawing.Point(439, 192);
|
||||
this.layoutControlItem16.Name = "layoutControlItem16";
|
||||
this.layoutControlItem16.Size = new System.Drawing.Size(439, 24);
|
||||
this.layoutControlItem16.Text = "修改人";
|
||||
this.layoutControlItem16.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem17
|
||||
//
|
||||
this.layoutControlItem17.Control = this.txteditTime;
|
||||
this.layoutControlItem17.CustomizationFormText = "修改时间";
|
||||
this.layoutControlItem17.Location = new System.Drawing.Point(439, 216);
|
||||
this.layoutControlItem17.Name = "layoutControlItem17";
|
||||
this.layoutControlItem17.Size = new System.Drawing.Size(439, 24);
|
||||
this.layoutControlItem17.Text = "修改时间";
|
||||
this.layoutControlItem17.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// emptySpaceItem1
|
||||
//
|
||||
this.emptySpaceItem1.AllowHotTrack = false;
|
||||
this.emptySpaceItem1.Location = new System.Drawing.Point(0, 240);
|
||||
this.emptySpaceItem1.Name = "emptySpaceItem1";
|
||||
this.emptySpaceItem1.Size = new System.Drawing.Size(878, 245);
|
||||
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
|
||||
//
|
||||
// Frmsupplier
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(908, 572);
|
||||
this.Controls.Add(this.xtraTabControl1);
|
||||
this.Name = "Frmsupplier";
|
||||
this.Text = "供应商信息";
|
||||
this.Load += new System.EventHandler(this.Frmsupplier_Load);
|
||||
this.Controls.SetChildIndex(this.xtraTabControl1, 0);
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtmanufacturertype)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcontacts)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcreatorId)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxteditorId)).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.txtid.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtsuppliername.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtmanufacturertype.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtcontacts.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtaddress.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtvatrate.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txttaxpayeridentity.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtbankaccount.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtsuppliercode.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtpayments.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txttotalamountsettled.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txttotaloutstandingamount.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).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.txteditorId.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txteditTime.Properties.CalendarTimeProperties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txteditTime.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).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.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.XtraEditors.TextEdit txtid;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtsuppliername;
|
||||
private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtmanufacturertype;
|
||||
|
||||
private DevExpress.XtraEditors.LookUpEdit txtmanufacturertype;
|
||||
private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtcontacts;
|
||||
|
||||
private DevExpress.XtraEditors.LookUpEdit txtcontacts;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtaddress;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtvatrate;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txttaxpayeridentity;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtbankaccount;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtsuppliercode;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtpayments;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txttotalamountsettled;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txttotaloutstandingamount;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtremark;
|
||||
private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtcreatorId;
|
||||
|
||||
private DevExpress.XtraEditors.LookUpEdit txtcreatorId;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.DateEdit txtcreateTime;
|
||||
private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxteditorId;
|
||||
|
||||
private DevExpress.XtraEditors.LookUpEdit txteditorId;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.DateEdit txteditTime;
|
||||
|
||||
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 DevExpress.XtraLayout.LayoutControlItem layoutControlItem7;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem11;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem12;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem13;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem14;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem15;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem16;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem17;
|
||||
private EmptySpaceItem emptySpaceItem1;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,120 @@
|
|||
<?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>
|
||||
</root>
|
||||
|
|
@ -56,7 +56,7 @@ namespace MES.Form
|
|||
{
|
||||
using (var con=new MESDB())///
|
||||
{
|
||||
grdList.DataSource=con.sysDictTypeInfo.ToList();
|
||||
grdList.DataSource=con.sysDictTypeInfo.ToList().OrderBy(p=>p.pid);
|
||||
}
|
||||
Init();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,28 +37,28 @@ namespace MES.Form
|
|||
{
|
||||
txtpid.Properties.DataSource = GetDataTableUtils.SqlTable("角色功能");
|
||||
repositoryItemTreeListtxtpid.DataSource= GetDataTableUtils.SqlTable("角色功能");
|
||||
txtToolBtnList.Properties.DataSource = GetDataTableUtils.SqlTable("功能按钮");
|
||||
// txtToolBtnList.Properties.DataSource = GetDataTableUtils.SqlTable("功能按钮");
|
||||
|
||||
|
||||
}
|
||||
public override void gridControlMouseDoubleClickFunction(object sender, EventArgs e)
|
||||
{
|
||||
sysFunctionInfo user = grdListView.GetFocusedRow() as sysFunctionInfo;
|
||||
if (user != null)
|
||||
{
|
||||
using (var db=new MESDB())
|
||||
{
|
||||
List<int> list = db.sysFunctionInfo.Where(p => p.pid == user.id).Select(p=>p.toolBtnID).ToList();
|
||||
string value = "";
|
||||
foreach (int item in list)
|
||||
{
|
||||
value += item + ",";
|
||||
}
|
||||
txtToolBtnList.EditValue = value;
|
||||
this.txtToolBtnList.RefreshEditValue();
|
||||
}
|
||||
}
|
||||
}
|
||||
//public override void gridControlMouseDoubleClickFunction(object sender, EventArgs e)
|
||||
//{
|
||||
// sysFunctionInfo user = grdListView.GetFocusedRow() as sysFunctionInfo;
|
||||
// if (user != null)
|
||||
// {
|
||||
// using (var db=new MESDB())
|
||||
// {
|
||||
// List<int> list = db.sysFunctionInfo.Where(p => p.pid == user.id).Select(p=>p.toolBtnID).ToList();
|
||||
// string value = "";
|
||||
// foreach (int item in list)
|
||||
// {
|
||||
// value += item + ",";
|
||||
// }
|
||||
// txtToolBtnList.EditValue = value;
|
||||
// this.txtToolBtnList.RefreshEditValue();
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
/// <summary>
|
||||
/// 搜索字段
|
||||
/// </summary>
|
||||
|
|
@ -83,15 +83,15 @@ namespace MES.Form
|
|||
{
|
||||
db.sysFunctionInfo.AddOrUpdate(info);
|
||||
db.SaveChanges();
|
||||
db.Database.ExecuteSqlCommand($"delete from sysFunction where pid={info.id}");
|
||||
List<sysToolButtonInfo> list = db.sysToolButtonInfo.ToList();
|
||||
string sql = "";
|
||||
foreach (var item in txtToolBtnList.EditValue.ToString().Split(','))
|
||||
{
|
||||
sysToolButtonInfo info1 = list.Where(p => p.id == item.ToInt16()).First();
|
||||
sql += $"INSERT INTO sysFunction(pid,name,functionCode,toolBtnID) VALUES ({info.id},'{info1.btnName}','{info.functionCode+"-"+info1.btnCode}',{info1.id});";
|
||||
}
|
||||
db.Database.ExecuteSqlCommand(sql);
|
||||
//db.Database.ExecuteSqlCommand($"delete from sysFunction where pid={info.id}");
|
||||
//List<sysToolButtonInfo> list = db.sysToolButtonInfo.ToList();
|
||||
//string sql = "";
|
||||
//foreach (var item in txtToolBtnList.EditValue.ToString().Split(','))
|
||||
//{
|
||||
// sysToolButtonInfo info1 = list.Where(p => p.id == item.ToInt16()).First();
|
||||
// sql += $"INSERT INTO sysFunction(pid,name,functionCode,toolBtnID) VALUES ({info.id},'{info1.btnName}','{info.functionCode+"-"+info1.btnCode}',{info1.id});";
|
||||
//}
|
||||
//db.Database.ExecuteSqlCommand(sql);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
|||
|
|
@ -46,7 +46,6 @@ namespace MES.Form
|
|||
this.tabDataDetail = new DevExpress.XtraTab.XtraTabPage();
|
||||
this.panelControl2 = new DevExpress.XtraEditors.PanelControl();
|
||||
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
|
||||
this.txtToolBtnList = new DevExpress.XtraEditors.CheckedComboBoxEdit();
|
||||
this.txtid = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtpid = new DevExpress.XtraEditors.TreeListLookUpEdit();
|
||||
this.txtpidTreeList = new DevExpress.XtraTreeList.TreeList();
|
||||
|
|
@ -57,10 +56,7 @@ namespace MES.Form
|
|||
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem();
|
||||
this.txttoolBtnID = new DevExpress.XtraEditors.TextEdit();
|
||||
this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtpid)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtpidTreeList)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit();
|
||||
|
|
@ -73,7 +69,6 @@ namespace MES.Form
|
|||
this.panelControl2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
|
||||
this.layoutControl1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtToolBtnList.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtpid.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtpidTreeList)).BeginInit();
|
||||
|
|
@ -84,10 +79,7 @@ namespace MES.Form
|
|||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txttoolBtnID.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// gridColumn1
|
||||
|
|
@ -206,8 +198,6 @@ namespace MES.Form
|
|||
//
|
||||
// layoutControl1
|
||||
//
|
||||
this.layoutControl1.Controls.Add(this.txttoolBtnID);
|
||||
this.layoutControl1.Controls.Add(this.txtToolBtnList);
|
||||
this.layoutControl1.Controls.Add(this.txtid);
|
||||
this.layoutControl1.Controls.Add(this.txtpid);
|
||||
this.layoutControl1.Controls.Add(this.txtname);
|
||||
|
|
@ -221,37 +211,25 @@ namespace MES.Form
|
|||
this.layoutControl1.TabIndex = 6;
|
||||
this.layoutControl1.Text = "layoutControl1";
|
||||
//
|
||||
// txtToolBtnList
|
||||
//
|
||||
this.txtToolBtnList.Location = new System.Drawing.Point(202, 108);
|
||||
this.txtToolBtnList.Name = "txtToolBtnList";
|
||||
this.txtToolBtnList.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.txtToolBtnList.Properties.DisplayMember = "Name";
|
||||
this.txtToolBtnList.Properties.ValueMember = "ID";
|
||||
this.txtToolBtnList.Size = new System.Drawing.Size(1076, 20);
|
||||
this.txtToolBtnList.StyleController = this.layoutControl1;
|
||||
this.txtToolBtnList.TabIndex = 14;
|
||||
//
|
||||
// txtid
|
||||
//
|
||||
this.txtid.Location = new System.Drawing.Point(202, 12);
|
||||
this.txtid.Location = new System.Drawing.Point(63, 12);
|
||||
this.txtid.Name = "txtid";
|
||||
this.txtid.Size = new System.Drawing.Size(1076, 20);
|
||||
this.txtid.Size = new System.Drawing.Size(1215, 20);
|
||||
this.txtid.StyleController = this.layoutControl1;
|
||||
this.txtid.TabIndex = 1;
|
||||
//
|
||||
// txtpid
|
||||
//
|
||||
this.txtpid.EditValue = "";
|
||||
this.txtpid.Location = new System.Drawing.Point(202, 36);
|
||||
this.txtpid.Location = new System.Drawing.Point(63, 36);
|
||||
this.txtpid.Name = "txtpid";
|
||||
this.txtpid.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.txtpid.Properties.DisplayMember = "Name";
|
||||
this.txtpid.Properties.TreeList = this.txtpidTreeList;
|
||||
this.txtpid.Properties.ValueMember = "ID";
|
||||
this.txtpid.Size = new System.Drawing.Size(1076, 20);
|
||||
this.txtpid.Size = new System.Drawing.Size(1215, 20);
|
||||
this.txtpid.StyleController = this.layoutControl1;
|
||||
this.txtpid.TabIndex = 2;
|
||||
//
|
||||
|
|
@ -266,17 +244,17 @@ namespace MES.Form
|
|||
//
|
||||
// txtname
|
||||
//
|
||||
this.txtname.Location = new System.Drawing.Point(202, 60);
|
||||
this.txtname.Location = new System.Drawing.Point(63, 60);
|
||||
this.txtname.Name = "txtname";
|
||||
this.txtname.Size = new System.Drawing.Size(1076, 20);
|
||||
this.txtname.Size = new System.Drawing.Size(1215, 20);
|
||||
this.txtname.StyleController = this.layoutControl1;
|
||||
this.txtname.TabIndex = 3;
|
||||
//
|
||||
// txtfunctionCode
|
||||
//
|
||||
this.txtfunctionCode.Location = new System.Drawing.Point(202, 84);
|
||||
this.txtfunctionCode.Location = new System.Drawing.Point(63, 84);
|
||||
this.txtfunctionCode.Name = "txtfunctionCode";
|
||||
this.txtfunctionCode.Size = new System.Drawing.Size(441, 20);
|
||||
this.txtfunctionCode.Size = new System.Drawing.Size(1215, 20);
|
||||
this.txtfunctionCode.StyleController = this.layoutControl1;
|
||||
this.txtfunctionCode.TabIndex = 4;
|
||||
//
|
||||
|
|
@ -289,9 +267,7 @@ namespace MES.Form
|
|||
this.layoutControlItem2,
|
||||
this.layoutControlItem3,
|
||||
this.layoutControlItem4,
|
||||
this.layoutControlItem6,
|
||||
this.emptySpaceItem2,
|
||||
this.layoutControlItem5});
|
||||
this.emptySpaceItem2});
|
||||
this.layoutControlGroup1.Name = "Root";
|
||||
this.layoutControlGroup1.Size = new System.Drawing.Size(1290, 733);
|
||||
this.layoutControlGroup1.TextVisible = false;
|
||||
|
|
@ -304,7 +280,7 @@ namespace MES.Form
|
|||
this.layoutControlItem1.Name = "layoutControlItem1";
|
||||
this.layoutControlItem1.Size = new System.Drawing.Size(1270, 24);
|
||||
this.layoutControlItem1.Text = "ID";
|
||||
this.layoutControlItem1.TextSize = new System.Drawing.Size(187, 14);
|
||||
this.layoutControlItem1.TextSize = new System.Drawing.Size(48, 14);
|
||||
//
|
||||
// layoutControlItem2
|
||||
//
|
||||
|
|
@ -314,7 +290,7 @@ namespace MES.Form
|
|||
this.layoutControlItem2.Name = "layoutControlItem2";
|
||||
this.layoutControlItem2.Size = new System.Drawing.Size(1270, 24);
|
||||
this.layoutControlItem2.Text = "父ID";
|
||||
this.layoutControlItem2.TextSize = new System.Drawing.Size(187, 14);
|
||||
this.layoutControlItem2.TextSize = new System.Drawing.Size(48, 14);
|
||||
//
|
||||
// layoutControlItem3
|
||||
//
|
||||
|
|
@ -324,7 +300,7 @@ namespace MES.Form
|
|||
this.layoutControlItem3.Name = "layoutControlItem3";
|
||||
this.layoutControlItem3.Size = new System.Drawing.Size(1270, 24);
|
||||
this.layoutControlItem3.Text = "名称";
|
||||
this.layoutControlItem3.TextSize = new System.Drawing.Size(187, 14);
|
||||
this.layoutControlItem3.TextSize = new System.Drawing.Size(48, 14);
|
||||
//
|
||||
// layoutControlItem4
|
||||
//
|
||||
|
|
@ -332,44 +308,18 @@ namespace MES.Form
|
|||
this.layoutControlItem4.CustomizationFormText = "权限编码";
|
||||
this.layoutControlItem4.Location = new System.Drawing.Point(0, 72);
|
||||
this.layoutControlItem4.Name = "layoutControlItem4";
|
||||
this.layoutControlItem4.Size = new System.Drawing.Size(635, 24);
|
||||
this.layoutControlItem4.Size = new System.Drawing.Size(1270, 24);
|
||||
this.layoutControlItem4.Text = "权限编码";
|
||||
this.layoutControlItem4.TextSize = new System.Drawing.Size(187, 14);
|
||||
//
|
||||
// layoutControlItem6
|
||||
//
|
||||
this.layoutControlItem6.Control = this.txtToolBtnList;
|
||||
this.layoutControlItem6.Location = new System.Drawing.Point(0, 96);
|
||||
this.layoutControlItem6.Name = "layoutControlItem6";
|
||||
this.layoutControlItem6.Size = new System.Drawing.Size(1270, 24);
|
||||
this.layoutControlItem6.Text = "功能按钮";
|
||||
this.layoutControlItem6.TextSize = new System.Drawing.Size(187, 14);
|
||||
this.layoutControlItem4.TextSize = new System.Drawing.Size(48, 14);
|
||||
//
|
||||
// emptySpaceItem2
|
||||
//
|
||||
this.emptySpaceItem2.AllowHotTrack = false;
|
||||
this.emptySpaceItem2.Location = new System.Drawing.Point(0, 120);
|
||||
this.emptySpaceItem2.Location = new System.Drawing.Point(0, 96);
|
||||
this.emptySpaceItem2.Name = "emptySpaceItem2";
|
||||
this.emptySpaceItem2.Size = new System.Drawing.Size(1270, 593);
|
||||
this.emptySpaceItem2.Size = new System.Drawing.Size(1270, 617);
|
||||
this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0);
|
||||
//
|
||||
// txttoolBtnID
|
||||
//
|
||||
this.txttoolBtnID.Location = new System.Drawing.Point(837, 84);
|
||||
this.txttoolBtnID.Name = "txttoolBtnID";
|
||||
this.txttoolBtnID.Size = new System.Drawing.Size(441, 20);
|
||||
this.txttoolBtnID.StyleController = this.layoutControl1;
|
||||
this.txttoolBtnID.TabIndex = 15;
|
||||
//
|
||||
// layoutControlItem5
|
||||
//
|
||||
this.layoutControlItem5.Control = this.txttoolBtnID;
|
||||
this.layoutControlItem5.Location = new System.Drawing.Point(635, 72);
|
||||
this.layoutControlItem5.Name = "layoutControlItem5";
|
||||
this.layoutControlItem5.Size = new System.Drawing.Size(635, 24);
|
||||
this.layoutControlItem5.Text = "功能按钮id(该项为功能按钮时填写)";
|
||||
this.layoutControlItem5.TextSize = new System.Drawing.Size(187, 14);
|
||||
//
|
||||
// FrmsysFunction
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
|
||||
|
|
@ -392,7 +342,6 @@ namespace MES.Form
|
|||
this.panelControl2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
|
||||
this.layoutControl1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtToolBtnList.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtpid.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtpidTreeList)).EndInit();
|
||||
|
|
@ -403,10 +352,7 @@ namespace MES.Form
|
|||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txttoolBtnID.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
|
@ -443,10 +389,6 @@ namespace MES.Form
|
|||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
|
||||
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4;
|
||||
private CheckedComboBoxEdit txtToolBtnList;
|
||||
private LayoutControlItem layoutControlItem6;
|
||||
private EmptySpaceItem emptySpaceItem2;
|
||||
private TextEdit txttoolBtnID;
|
||||
private LayoutControlItem layoutControlItem5;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,85 +1,85 @@
|
|||
|
||||
namespace WinformGeneralDeveloperFrame
|
||||
{
|
||||
partial class Test
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
//namespace WinformGeneralDeveloperFrame
|
||||
//{
|
||||
// partial class Test
|
||||
// {
|
||||
// /// <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);
|
||||
}
|
||||
// /// <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
|
||||
// #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.memoEdit1 = new DevExpress.XtraEditors.MemoEdit();
|
||||
this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton();
|
||||
((System.ComponentModel.ISupportInitialize)(this.memoEdit1.Properties)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// memoEdit1
|
||||
//
|
||||
this.memoEdit1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.memoEdit1.Location = new System.Drawing.Point(0, 0);
|
||||
this.memoEdit1.Name = "memoEdit1";
|
||||
this.memoEdit1.Size = new System.Drawing.Size(865, 298);
|
||||
this.memoEdit1.TabIndex = 0;
|
||||
//
|
||||
// simpleButton1
|
||||
//
|
||||
this.simpleButton1.Location = new System.Drawing.Point(203, 304);
|
||||
this.simpleButton1.Name = "simpleButton1";
|
||||
this.simpleButton1.Size = new System.Drawing.Size(139, 48);
|
||||
this.simpleButton1.TabIndex = 1;
|
||||
this.simpleButton1.Text = "转化";
|
||||
this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click);
|
||||
//
|
||||
// simpleButton2
|
||||
//
|
||||
this.simpleButton2.Location = new System.Drawing.Point(383, 304);
|
||||
this.simpleButton2.Name = "simpleButton2";
|
||||
this.simpleButton2.Size = new System.Drawing.Size(127, 48);
|
||||
this.simpleButton2.TabIndex = 2;
|
||||
this.simpleButton2.Text = "采集数据";
|
||||
this.simpleButton2.Click += new System.EventHandler(this.simpleButton2_Click);
|
||||
//
|
||||
// Test
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(865, 489);
|
||||
this.Controls.Add(this.simpleButton2);
|
||||
this.Controls.Add(this.simpleButton1);
|
||||
this.Controls.Add(this.memoEdit1);
|
||||
this.Name = "Test";
|
||||
this.Text = "Test";
|
||||
((System.ComponentModel.ISupportInitialize)(this.memoEdit1.Properties)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
// /// <summary>
|
||||
// /// Required method for Designer support - do not modify
|
||||
// /// the contents of this method with the code editor.
|
||||
// /// </summary>
|
||||
// private void InitializeComponent()
|
||||
// {
|
||||
// this.memoEdit1 = new DevExpress.XtraEditors.MemoEdit();
|
||||
// this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton();
|
||||
// this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton();
|
||||
// ((System.ComponentModel.ISupportInitialize)(this.memoEdit1.Properties)).BeginInit();
|
||||
// this.SuspendLayout();
|
||||
// //
|
||||
// // memoEdit1
|
||||
// //
|
||||
// this.memoEdit1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
// this.memoEdit1.Location = new System.Drawing.Point(0, 0);
|
||||
// this.memoEdit1.Name = "memoEdit1";
|
||||
// this.memoEdit1.Size = new System.Drawing.Size(865, 298);
|
||||
// this.memoEdit1.TabIndex = 0;
|
||||
// //
|
||||
// // simpleButton1
|
||||
// //
|
||||
// this.simpleButton1.Location = new System.Drawing.Point(203, 304);
|
||||
// this.simpleButton1.Name = "simpleButton1";
|
||||
// this.simpleButton1.Size = new System.Drawing.Size(139, 48);
|
||||
// this.simpleButton1.TabIndex = 1;
|
||||
// this.simpleButton1.Text = "转化";
|
||||
// this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click);
|
||||
// //
|
||||
// // simpleButton2
|
||||
// //
|
||||
// this.simpleButton2.Location = new System.Drawing.Point(383, 304);
|
||||
// this.simpleButton2.Name = "simpleButton2";
|
||||
// this.simpleButton2.Size = new System.Drawing.Size(127, 48);
|
||||
// this.simpleButton2.TabIndex = 2;
|
||||
// this.simpleButton2.Text = "采集数据";
|
||||
// this.simpleButton2.Click += new System.EventHandler(this.simpleButton2_Click);
|
||||
// //
|
||||
// // Test
|
||||
// //
|
||||
// this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
|
||||
// this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
// this.ClientSize = new System.Drawing.Size(865, 489);
|
||||
// this.Controls.Add(this.simpleButton2);
|
||||
// this.Controls.Add(this.simpleButton1);
|
||||
// this.Controls.Add(this.memoEdit1);
|
||||
// this.Name = "Test";
|
||||
// this.Text = "Test";
|
||||
// ((System.ComponentModel.ISupportInitialize)(this.memoEdit1.Properties)).EndInit();
|
||||
// this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
#endregion
|
||||
// #endregion
|
||||
|
||||
private DevExpress.XtraEditors.MemoEdit memoEdit1;
|
||||
private DevExpress.XtraEditors.SimpleButton simpleButton1;
|
||||
private DevExpress.XtraEditors.SimpleButton simpleButton2;
|
||||
}
|
||||
}
|
||||
// private DevExpress.XtraEditors.MemoEdit memoEdit1;
|
||||
// private DevExpress.XtraEditors.SimpleButton simpleButton1;
|
||||
// private DevExpress.XtraEditors.SimpleButton simpleButton2;
|
||||
// }
|
||||
//}
|
||||
|
|
@ -1,212 +1,212 @@
|
|||
using DevExpress.XtraEditors;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Data.Entity;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using DevExpress.Data.Helpers;
|
||||
using MES;
|
||||
using MES.Entity;
|
||||
using WinformGeneralDeveloperFrame.Commons;
|
||||
//using DevExpress.XtraEditors;
|
||||
//using System;
|
||||
//using System.Collections.Generic;
|
||||
//using System.ComponentModel;
|
||||
//using System.Data;
|
||||
//using System.Data.Entity;
|
||||
//using System.Data.Entity.Migrations;
|
||||
//using System.Drawing;
|
||||
//using System.IO;
|
||||
//using System.Linq;
|
||||
//using System.Net;
|
||||
//using System.Text;
|
||||
//using System.Threading;
|
||||
//using System.Threading.Tasks;
|
||||
//using System.Windows.Forms;
|
||||
//using DevExpress.Data.Helpers;
|
||||
//using MES;
|
||||
//using MES.Entity;
|
||||
//using WinformGeneralDeveloperFrame.Commons;
|
||||
|
||||
namespace WinformGeneralDeveloperFrame
|
||||
{
|
||||
public partial class Test : DevExpress.XtraEditors.XtraForm
|
||||
{
|
||||
private bool flag = false;
|
||||
public Test()
|
||||
{
|
||||
InitializeComponent();
|
||||
GetData();
|
||||
}
|
||||
//namespace WinformGeneralDeveloperFrame
|
||||
//{
|
||||
// public partial class Test : DevExpress.XtraEditors.XtraForm
|
||||
// {
|
||||
// private bool flag = false;
|
||||
// public Test()
|
||||
// {
|
||||
// InitializeComponent();
|
||||
// GetData();
|
||||
// }
|
||||
|
||||
private void simpleButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
var data = memoEdit1.Text.Split(")".ToCharArray());
|
||||
List<stockInfo> list = new List<stockInfo>();
|
||||
foreach (var item in data)
|
||||
{
|
||||
var dd = item.Split("(".ToCharArray());
|
||||
if(dd.Length!=2)continue;
|
||||
stockInfo info = new stockInfo() { name = dd[0].Replace("\"",""), code = "sz" + dd[1] };
|
||||
list.Add(info);
|
||||
}
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
db.stockInfo.AddRange(list);
|
||||
db.SaveChanges();
|
||||
}
|
||||
}
|
||||
// private void simpleButton1_Click(object sender, EventArgs e)
|
||||
// {
|
||||
// var data = memoEdit1.Text.Split(")".ToCharArray());
|
||||
// List<stockInfo> list = new List<stockInfo>();
|
||||
// foreach (var item in data)
|
||||
// {
|
||||
// var dd = item.Split("(".ToCharArray());
|
||||
// if(dd.Length!=2)continue;
|
||||
// stockInfo info = new stockInfo() { name = dd[0].Replace("\"",""), code = "sz" + dd[1] };
|
||||
// list.Add(info);
|
||||
// }
|
||||
// using (var db = new MESDB())
|
||||
// {
|
||||
// db.stockInfo.AddRange(list);
|
||||
// db.SaveChanges();
|
||||
// }
|
||||
// }
|
||||
|
||||
private void GetData()
|
||||
{
|
||||
DateTime startTime1=DateTime.Parse("09:30:00");
|
||||
DateTime endTime1 = DateTime.Parse("11:30:00");
|
||||
// private void GetData()
|
||||
// {
|
||||
// DateTime startTime1=DateTime.Parse("09:30:00");
|
||||
// DateTime endTime1 = DateTime.Parse("11:30:00");
|
||||
|
||||
DateTime startTime2 = DateTime.Parse("13:00:00");
|
||||
DateTime endTime2 = DateTime.Parse("15:00:00");
|
||||
// DateTime startTime2 = DateTime.Parse("13:00:00");
|
||||
// DateTime endTime2 = DateTime.Parse("15:00:00");
|
||||
|
||||
Task.Factory.StartNew(() =>
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
if (flag)
|
||||
if (DateTime.Now >= startTime1 && DateTime.Now <= endTime1 || DateTime.Now >= startTime2 && DateTime.Now <= endTime2)
|
||||
{
|
||||
{
|
||||
List<Task> listtask = new List<Task>();
|
||||
int num1 = 0;
|
||||
int num2 = 400;
|
||||
string code = "";
|
||||
Dictionary<string, stockInfo> stockinfos = null;
|
||||
List<string> codes = new List<string>();
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
num1 = db.stockInfo.GroupBy(P => P.code).ToList().Count;
|
||||
foreach (var item in db.stockInfo.GroupBy(P => P.code))
|
||||
{
|
||||
codes.Add(item.Key);
|
||||
}
|
||||
}
|
||||
for (int m = 0; m <= num1 / num2; m++)
|
||||
{
|
||||
int n = m;
|
||||
var t = Task.Factory.StartNew(() =>
|
||||
{
|
||||
try
|
||||
{
|
||||
string url = "http://hq.sinajs.cn/list={0}";
|
||||
var list = codes.Skip(num2 * n).Take(num2);
|
||||
//string code = "";
|
||||
foreach (var str in list)
|
||||
{
|
||||
code += str + ",";
|
||||
}
|
||||
url = string.Format(url, code);
|
||||
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
|
||||
request.Method = "GET";
|
||||
request.ContentType = "text/html;charset=UTF-8";
|
||||
request.UserAgent = null;
|
||||
request.Timeout = 60000;
|
||||
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
|
||||
Stream myResponseStream = response.GetResponseStream();
|
||||
StreamReader myStreamReader = new StreamReader(myResponseStream, System.Text.Encoding.Default);
|
||||
string retString = myStreamReader.ReadToEnd();
|
||||
string[] ResData = retString.Split(';');
|
||||
List<stockInfo> list1 = new List<stockInfo>();
|
||||
foreach (var item in ResData)
|
||||
{
|
||||
var data = item.Split('=');
|
||||
if (data.Length == 2)
|
||||
{
|
||||
var dd = data[1].Split(',');
|
||||
if (dd.Length >= 33)
|
||||
{
|
||||
stockInfo info = new stockInfo()
|
||||
{
|
||||
code = data[0].Split('_')[2],
|
||||
name = dd[0].Replace("\"", ""),
|
||||
startPrice = decimal.Parse(dd[1]),
|
||||
olePrice = decimal.Parse(dd[2]),
|
||||
nowPrice = decimal.Parse(dd[3]),
|
||||
maxPrice = decimal.Parse(dd[4]),
|
||||
minPrice = decimal.Parse(dd[5]),
|
||||
bidderPrice = decimal.Parse(dd[6]),
|
||||
auctionPrice = decimal.Parse(dd[7]),
|
||||
turnover = int.Parse(dd[8]),
|
||||
turnoverPrice = decimal.Parse(dd[9]),
|
||||
buyOneNum = int.Parse(dd[10]),
|
||||
buyOnePrice = decimal.Parse(dd[11]),
|
||||
buyTwoNum = int.Parse(dd[12]),
|
||||
buyTwoPrice = decimal.Parse(dd[13]),
|
||||
buyThreeNum = int.Parse(dd[14]),
|
||||
buyThreePrice = decimal.Parse(dd[15]),
|
||||
buyFourNum = int.Parse(dd[16]),
|
||||
buyFourPrice = decimal.Parse(dd[17]),
|
||||
buyFiveNum = int.Parse(dd[18]),
|
||||
buyFivePrice = decimal.Parse(dd[19]),
|
||||
sellOneNum = int.Parse(dd[20]),
|
||||
sellOnePrice = decimal.Parse(dd[21]),
|
||||
sellTwoNum = int.Parse(dd[22]),
|
||||
sellTwoPrice = decimal.Parse(dd[23]),
|
||||
sellThreeNum = int.Parse(dd[24]),
|
||||
sellThreePrice = decimal.Parse(dd[25]),
|
||||
sellFourNum = int.Parse(dd[26]),
|
||||
sellFourPrice = decimal.Parse(dd[27]),
|
||||
sellFiveNum = int.Parse(dd[28]),
|
||||
sellFivePrice = decimal.Parse(dd[29]),
|
||||
timeStr = DateTime.Parse(dd[30] + " " + dd[31])
|
||||
};
|
||||
list1.Add(info);
|
||||
}
|
||||
}
|
||||
}
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
db.stockInfo.AddRange(list1);
|
||||
db.SaveChanges();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
var action1 = new Action(() =>
|
||||
{
|
||||
Show(DateTime.Now + ex.Message + "\r\n");
|
||||
});
|
||||
this.Invoke(action1);
|
||||
}
|
||||
});
|
||||
listtask.Add(t);
|
||||
}
|
||||
Task.WaitAll(listtask.ToArray());
|
||||
var action = new Action(() =>
|
||||
{
|
||||
Show(DateTime.Now + ":采集成功" + "\r\n");
|
||||
});
|
||||
this.Invoke(action);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
var action1 = new Action(() =>
|
||||
{
|
||||
Show(DateTime.Now + "股票已休市" + "\r\n");
|
||||
});
|
||||
this.Invoke(action1);
|
||||
}
|
||||
// Task.Factory.StartNew(() =>
|
||||
// {
|
||||
// while (true)
|
||||
// {
|
||||
// if (flag)
|
||||
// if (DateTime.Now >= startTime1 && DateTime.Now <= endTime1 || DateTime.Now >= startTime2 && DateTime.Now <= endTime2)
|
||||
// {
|
||||
// {
|
||||
// List<Task> listtask = new List<Task>();
|
||||
// int num1 = 0;
|
||||
// int num2 = 400;
|
||||
// string code = "";
|
||||
// Dictionary<string, stockInfo> stockinfos = null;
|
||||
// List<string> codes = new List<string>();
|
||||
// using (var db = new MESDB())
|
||||
// {
|
||||
// num1 = db.stockInfo.GroupBy(P => P.code).ToList().Count;
|
||||
// foreach (var item in db.stockInfo.GroupBy(P => P.code))
|
||||
// {
|
||||
// codes.Add(item.Key);
|
||||
// }
|
||||
// }
|
||||
// for (int m = 0; m <= num1 / num2; m++)
|
||||
// {
|
||||
// int n = m;
|
||||
// var t = Task.Factory.StartNew(() =>
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// string url = "http://hq.sinajs.cn/list={0}";
|
||||
// var list = codes.Skip(num2 * n).Take(num2);
|
||||
// //string code = "";
|
||||
// foreach (var str in list)
|
||||
// {
|
||||
// code += str + ",";
|
||||
// }
|
||||
// url = string.Format(url, code);
|
||||
// HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
|
||||
// request.Method = "GET";
|
||||
// request.ContentType = "text/html;charset=UTF-8";
|
||||
// request.UserAgent = null;
|
||||
// request.Timeout = 60000;
|
||||
// HttpWebResponse response = (HttpWebResponse)request.GetResponse();
|
||||
// Stream myResponseStream = response.GetResponseStream();
|
||||
// StreamReader myStreamReader = new StreamReader(myResponseStream, System.Text.Encoding.Default);
|
||||
// string retString = myStreamReader.ReadToEnd();
|
||||
// string[] ResData = retString.Split(';');
|
||||
// List<stockInfo> list1 = new List<stockInfo>();
|
||||
// foreach (var item in ResData)
|
||||
// {
|
||||
// var data = item.Split('=');
|
||||
// if (data.Length == 2)
|
||||
// {
|
||||
// var dd = data[1].Split(',');
|
||||
// if (dd.Length >= 33)
|
||||
// {
|
||||
// stockInfo info = new stockInfo()
|
||||
// {
|
||||
// code = data[0].Split('_')[2],
|
||||
// name = dd[0].Replace("\"", ""),
|
||||
// startPrice = decimal.Parse(dd[1]),
|
||||
// olePrice = decimal.Parse(dd[2]),
|
||||
// nowPrice = decimal.Parse(dd[3]),
|
||||
// maxPrice = decimal.Parse(dd[4]),
|
||||
// minPrice = decimal.Parse(dd[5]),
|
||||
// bidderPrice = decimal.Parse(dd[6]),
|
||||
// auctionPrice = decimal.Parse(dd[7]),
|
||||
// turnover = int.Parse(dd[8]),
|
||||
// turnoverPrice = decimal.Parse(dd[9]),
|
||||
// buyOneNum = int.Parse(dd[10]),
|
||||
// buyOnePrice = decimal.Parse(dd[11]),
|
||||
// buyTwoNum = int.Parse(dd[12]),
|
||||
// buyTwoPrice = decimal.Parse(dd[13]),
|
||||
// buyThreeNum = int.Parse(dd[14]),
|
||||
// buyThreePrice = decimal.Parse(dd[15]),
|
||||
// buyFourNum = int.Parse(dd[16]),
|
||||
// buyFourPrice = decimal.Parse(dd[17]),
|
||||
// buyFiveNum = int.Parse(dd[18]),
|
||||
// buyFivePrice = decimal.Parse(dd[19]),
|
||||
// sellOneNum = int.Parse(dd[20]),
|
||||
// sellOnePrice = decimal.Parse(dd[21]),
|
||||
// sellTwoNum = int.Parse(dd[22]),
|
||||
// sellTwoPrice = decimal.Parse(dd[23]),
|
||||
// sellThreeNum = int.Parse(dd[24]),
|
||||
// sellThreePrice = decimal.Parse(dd[25]),
|
||||
// sellFourNum = int.Parse(dd[26]),
|
||||
// sellFourPrice = decimal.Parse(dd[27]),
|
||||
// sellFiveNum = int.Parse(dd[28]),
|
||||
// sellFivePrice = decimal.Parse(dd[29]),
|
||||
// timeStr = DateTime.Parse(dd[30] + " " + dd[31])
|
||||
// };
|
||||
// list1.Add(info);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// using (var db = new MESDB())
|
||||
// {
|
||||
// db.stockInfo.AddRange(list1);
|
||||
// db.SaveChanges();
|
||||
// }
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// var action1 = new Action(() =>
|
||||
// {
|
||||
// Show(DateTime.Now + ex.Message + "\r\n");
|
||||
// });
|
||||
// this.Invoke(action1);
|
||||
// }
|
||||
// });
|
||||
// listtask.Add(t);
|
||||
// }
|
||||
// Task.WaitAll(listtask.ToArray());
|
||||
// var action = new Action(() =>
|
||||
// {
|
||||
// Show(DateTime.Now + ":采集成功" + "\r\n");
|
||||
// });
|
||||
// this.Invoke(action);
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// var action1 = new Action(() =>
|
||||
// {
|
||||
// Show(DateTime.Now + "股票已休市" + "\r\n");
|
||||
// });
|
||||
// this.Invoke(action1);
|
||||
// }
|
||||
|
||||
Thread.Sleep(30000);
|
||||
}
|
||||
});
|
||||
}
|
||||
// Thread.Sleep(30000);
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
|
||||
private void Show(string str)
|
||||
{
|
||||
memoEdit1.MaskBox.AppendText(str);
|
||||
}
|
||||
private void simpleButton2_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!flag)
|
||||
{
|
||||
flag = true;
|
||||
memoEdit1.MaskBox.AppendText(DateTime.Now+":开始采集" + "\r\n");
|
||||
simpleButton2.Text = "停止";
|
||||
}
|
||||
else
|
||||
{
|
||||
flag = false;
|
||||
memoEdit1.MaskBox.AppendText(DateTime.Now + ":停止采集" + "\r\n");
|
||||
simpleButton2.Text = "开始采集";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// private void Show(string str)
|
||||
// {
|
||||
// memoEdit1.MaskBox.AppendText(str);
|
||||
// }
|
||||
// private void simpleButton2_Click(object sender, EventArgs e)
|
||||
// {
|
||||
// if (!flag)
|
||||
// {
|
||||
// flag = true;
|
||||
// memoEdit1.MaskBox.AppendText(DateTime.Now+":开始采集" + "\r\n");
|
||||
// simpleButton2.Text = "停止";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// flag = false;
|
||||
// memoEdit1.MaskBox.AppendText(DateTime.Now + ":停止采集" + "\r\n");
|
||||
// simpleButton2.Text = "开始采集";
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
|
@ -137,8 +137,12 @@
|
|||
<Compile Include="DBAdapter.cs" />
|
||||
<Compile Include="DB\MESDB.cs" />
|
||||
<Compile Include="EntityAdapter.cs" />
|
||||
<Compile Include="Entity\customerInfo.cs" />
|
||||
<Compile Include="Entity\lotteryInfo.cs" />
|
||||
<Compile Include="Entity\materialInfo.cs" />
|
||||
<Compile Include="Entity\productInfo.cs" />
|
||||
<Compile Include="Entity\stockInfo.cs" />
|
||||
<Compile Include="Entity\supplierInfo.cs" />
|
||||
<Compile Include="Entity\sysDeptInfo.cs" />
|
||||
<Compile Include="Entity\sysDictDataInfo.cs" />
|
||||
<Compile Include="Entity\sysDictTypeInfo.cs" />
|
||||
|
|
@ -147,6 +151,24 @@
|
|||
<Compile Include="Entity\sysRoleInfo.cs" />
|
||||
<Compile Include="Entity\sysToolButtonInfo.cs" />
|
||||
<Compile Include="Entity\sysUserInfo.cs" />
|
||||
<Compile Include="Form\Frmcustomer.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form\Frmcustomer.designer.cs">
|
||||
<DependentUpon>Frmcustomer.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Form\Frmmaterial.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form\Frmmaterial.designer.cs">
|
||||
<DependentUpon>Frmmaterial.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Form\Frmproduct.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form\Frmproduct.designer.cs">
|
||||
<DependentUpon>Frmproduct.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Form\Frmstock.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
|
|
@ -159,6 +181,12 @@
|
|||
<Compile Include="Form\FrmStockShow.Designer.cs">
|
||||
<DependentUpon>FrmStockShow.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Form\Frmsupplier.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form\Frmsupplier.designer.cs">
|
||||
<DependentUpon>Frmsupplier.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Form\FrmsysDept.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
|
|
@ -283,9 +311,7 @@
|
|||
</Compile>
|
||||
<Compile Include="sysDataBase.cs" />
|
||||
<Compile Include="sysDataTableInfo.cs" />
|
||||
<Compile Include="Test.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Test.cs" />
|
||||
<Compile Include="Test.Designer.cs">
|
||||
<DependentUpon>Test.cs</DependentUpon>
|
||||
</Compile>
|
||||
|
|
@ -305,12 +331,24 @@
|
|||
<EmbeddedResource Include="BaseForm.resx">
|
||||
<DependentUpon>BaseForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Form\Frmcustomer.resx">
|
||||
<DependentUpon>Frmcustomer.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Form\Frmmaterial.resx">
|
||||
<DependentUpon>Frmmaterial.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Form\Frmproduct.resx">
|
||||
<DependentUpon>Frmproduct.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Form\Frmstock.resx">
|
||||
<DependentUpon>Frmstock.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Form\FrmStockShow.resx">
|
||||
<DependentUpon>FrmStockShow.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Form\Frmsupplier.resx">
|
||||
<DependentUpon>Frmsupplier.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Form\FrmsysDept.resx">
|
||||
<DependentUpon>FrmsysDept.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
|
|
|||
Loading…
Reference in New Issue