增加工单、领料申请单
parent
1b9a1ba424
commit
f7fdb435ab
Binary file not shown.
BIN
DB/script.sql
BIN
DB/script.sql
Binary file not shown.
|
|
@ -0,0 +1,292 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace WinformGeneralDeveloperFrame.Commons
|
||||
{
|
||||
/// <summary>
|
||||
/// 基于Base64的加密编码辅助类,
|
||||
/// 可以设置不同的密码表来获取不同的编码与解码
|
||||
/// </summary>
|
||||
public class Base64Util
|
||||
{
|
||||
/// <summary>
|
||||
/// 构造函数,初始化编码表
|
||||
/// </summary>
|
||||
public Base64Util()
|
||||
{
|
||||
this.InitDict();
|
||||
}
|
||||
|
||||
protected static Base64Util s_b64 = new Base64Util();
|
||||
|
||||
/// <summary>
|
||||
/// 使用默认的密码表加密字符串
|
||||
/// </summary>
|
||||
/// <param name="input">待加密字符串</param>
|
||||
/// <returns></returns>
|
||||
public static string Encrypt(string input)
|
||||
{
|
||||
return s_b64.Encode(input);
|
||||
}
|
||||
/// <summary>
|
||||
/// 使用默认的密码表解密字符串
|
||||
/// </summary>
|
||||
/// <param name="input">待解密字符串</param>
|
||||
/// <returns></returns>
|
||||
public static string Decrypt(string input)
|
||||
{
|
||||
return s_b64.Decode(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取具有标准的Base64密码表的加密类
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static Base64Util GetStandardBase64()
|
||||
{
|
||||
Base64Util b64 = new Base64Util();
|
||||
b64.Pad = "=";
|
||||
b64.CodeTable = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||
return b64;
|
||||
}
|
||||
|
||||
protected string m_codeTable = @"ABCDEFGHIJKLMNOPQRSTUVWXYZbacdefghijklmnopqrstu_wxyz0123456789*-";
|
||||
protected string m_pad = "v";
|
||||
protected Dictionary<int, char> m_t1 = new Dictionary<int, char>();
|
||||
protected Dictionary<char, int> m_t2 = new Dictionary<char, int>();
|
||||
|
||||
/// <summary>
|
||||
/// 密码表
|
||||
/// </summary>
|
||||
public string CodeTable
|
||||
{
|
||||
get { return m_codeTable; }
|
||||
set
|
||||
{
|
||||
if (value == null)
|
||||
{
|
||||
throw new Exception("密码表不能为null");
|
||||
}
|
||||
else if (value.Length < 64)
|
||||
{
|
||||
throw new Exception("密码表长度必须至少为64");
|
||||
}
|
||||
else
|
||||
{
|
||||
this.ValidateRepeat(value);
|
||||
this.ValidateEqualPad(value, m_pad);
|
||||
m_codeTable = value;
|
||||
this.InitDict();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 补码
|
||||
/// </summary>
|
||||
public string Pad
|
||||
{
|
||||
get { return m_pad; }
|
||||
set
|
||||
{
|
||||
if (value == null)
|
||||
{
|
||||
throw new Exception("密码表的补码不能为null");
|
||||
}
|
||||
else if (value.Length != 1)
|
||||
{
|
||||
throw new Exception("密码表的补码长度必须为1");
|
||||
}
|
||||
else
|
||||
{
|
||||
this.ValidateEqualPad(m_codeTable, value);
|
||||
m_pad = value;
|
||||
this.InitDict();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 返回编码后的字符串
|
||||
/// </summary>
|
||||
/// <param name="source">原字符串</param>
|
||||
/// <returns></returns>
|
||||
public string Encode(string source)
|
||||
{
|
||||
if (source == null || source == "")
|
||||
{
|
||||
return "";
|
||||
}
|
||||
else
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
byte[] tmp = System.Text.UTF8Encoding.UTF8.GetBytes(source);
|
||||
int remain = tmp.Length % 3;
|
||||
int patch = 3 - remain;
|
||||
if (remain != 0)
|
||||
{
|
||||
Array.Resize(ref tmp, tmp.Length + patch);
|
||||
}
|
||||
int cnt = (int)Math.Ceiling(tmp.Length * 1.0 / 3);
|
||||
for (int i = 0; i < cnt; i++)
|
||||
{
|
||||
sb.Append(this.EncodeUnit(tmp[i * 3], tmp[i * 3 + 1], tmp[i * 3 + 2]));
|
||||
}
|
||||
if (remain != 0)
|
||||
{
|
||||
sb.Remove(sb.Length - patch, patch);
|
||||
for (int i = 0; i < patch; i++)
|
||||
{
|
||||
sb.Append(m_pad);
|
||||
}
|
||||
}
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
protected string EncodeUnit(params byte[] unit)
|
||||
{
|
||||
int[] obj = new int[4];
|
||||
obj[0] = (unit[0] & 0xfc) >> 2;
|
||||
obj[1] = ((unit[0] & 0x03) << 4) + ((unit[1] & 0xf0) >> 4);
|
||||
obj[2] = ((unit[1] & 0x0f) << 2) + ((unit[2] & 0xc0) >> 6);
|
||||
obj[3] = unit[2] & 0x3f;
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (int i = 0; i < obj.Length; i++)
|
||||
{
|
||||
sb.Append(this.GetEC((int)obj[i]));
|
||||
}
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
protected char GetEC(int code)
|
||||
{
|
||||
return m_t1[code];//m_codeTable[code];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得解码字符串
|
||||
/// </summary>
|
||||
/// <param name="source">原字符串</param>
|
||||
/// <returns></returns>
|
||||
public string Decode(string source)
|
||||
{
|
||||
if (source == null || source == "")
|
||||
{
|
||||
return "";
|
||||
}
|
||||
else
|
||||
{
|
||||
List<byte> list = new List<byte>();
|
||||
char[] tmp = source.ToCharArray();
|
||||
int remain = tmp.Length % 4;
|
||||
if (remain != 0)
|
||||
{
|
||||
Array.Resize(ref tmp, tmp.Length - remain);
|
||||
}
|
||||
int patch = source.IndexOf(m_pad);
|
||||
if (patch != -1)
|
||||
{
|
||||
patch = source.Length - patch;
|
||||
}
|
||||
int cnt = tmp.Length / 4;
|
||||
for (int i = 0; i < cnt; i++)
|
||||
{
|
||||
this.DecodeUnit(list, tmp[i * 4], tmp[i * 4 + 1], tmp[i * 4 + 2], tmp[i * 4 + 3]);
|
||||
}
|
||||
for (int i = 0; i < patch; i++)
|
||||
{
|
||||
list.RemoveAt(list.Count - 1);
|
||||
}
|
||||
return System.Text.Encoding.UTF8.GetString(list.ToArray());
|
||||
}
|
||||
}
|
||||
|
||||
protected void DecodeUnit(List<byte> byteArr, params char[] chArray)
|
||||
{
|
||||
int[] res = new int[3];
|
||||
byte[] unit = new byte[chArray.Length];
|
||||
for (int i = 0; i < chArray.Length; i++)
|
||||
{
|
||||
unit[i] = this.FindChar(chArray[i]);
|
||||
}
|
||||
res[0] = (unit[0] << 2) + ((unit[1] & 0x30) >> 4);
|
||||
res[1] = ((unit[1] & 0xf) << 4) + ((unit[2] & 0x3c) >> 2);
|
||||
res[2] = ((unit[2] & 0x3) << 6) + unit[3];
|
||||
for (int i = 0; i < res.Length; i++)
|
||||
{
|
||||
byteArr.Add((byte)res[i]);
|
||||
}
|
||||
}
|
||||
|
||||
protected byte FindChar(char ch)
|
||||
{
|
||||
int pos = m_t2[ch];//m_codeTable.IndexOf(ch);
|
||||
return (byte)pos;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 初始化双向哈希字典
|
||||
/// </summary>
|
||||
protected void InitDict()
|
||||
{
|
||||
m_t1.Clear();
|
||||
m_t2.Clear();
|
||||
m_t2.Add(m_pad[0], -1);
|
||||
for (int i = 0; i < m_codeTable.Length; i++)
|
||||
{
|
||||
m_t1.Add(i, m_codeTable[i]);
|
||||
m_t2.Add(m_codeTable[i], i);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 检查字符串中的字符是否有重复
|
||||
/// </summary>
|
||||
/// <param name="input">待检查字符串</param>
|
||||
/// <returns></returns>
|
||||
protected void ValidateRepeat(string input)
|
||||
{
|
||||
for (int i = 0; i < input.Length; i++)
|
||||
{
|
||||
if (input.LastIndexOf(input[i]) > i)
|
||||
{
|
||||
throw new Exception("密码表中含有重复字符:" + input[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 检查字符串是否包含补码字符
|
||||
/// </summary>
|
||||
/// <param name="input">待检查字符串</param>
|
||||
/// <param name="pad"></param>
|
||||
protected void ValidateEqualPad(string input, string pad)
|
||||
{
|
||||
if (input.IndexOf(pad) > -1)
|
||||
{
|
||||
throw new Exception("密码表中包含了补码字符:" + pad);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 测试
|
||||
/// </summary>
|
||||
protected void Test()
|
||||
{
|
||||
//m_codeTable = @"STUVWXYZbacdefghivklABCDEFGHIJKLMNOPQRmnopqrstu!wxyz0123456789+/";
|
||||
//m_pad = "j";
|
||||
|
||||
this.InitDict();
|
||||
|
||||
string test = "abc ABC 你好!◎#¥%……!@#$%^";
|
||||
string encode = this.Encode("false");
|
||||
string decode = this.Decode(encode);
|
||||
Console.WriteLine(encode);
|
||||
Console.WriteLine(test == decode);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,620 @@
|
|||
using System;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Security.Cryptography;
|
||||
|
||||
namespace WinformGeneralDeveloperFrame.Commons
|
||||
{
|
||||
/// <summary>
|
||||
/// DES对称加解密、AES RijndaelManaged加解密、Base64加密解密、MD5加密等操作辅助类
|
||||
/// </summary>
|
||||
public sealed class EncodeHelper
|
||||
{
|
||||
#region DES对称加密解密
|
||||
|
||||
/// <summary>
|
||||
/// 注意DEFAULT_ENCRYPT_KEY的长度为8位(如果要增加或者减少key长度,调整IV的长度就是了)
|
||||
/// </summary>
|
||||
public const string DEFAULT_ENCRYPT_KEY = "12345678";
|
||||
|
||||
/// <summary>
|
||||
/// 使用默认加密
|
||||
/// </summary>
|
||||
/// <param name="strText"></param>
|
||||
/// <returns></returns>
|
||||
public static string DesEncrypt(string strText)
|
||||
{
|
||||
try
|
||||
{
|
||||
return DesEncrypt(strText, DEFAULT_ENCRYPT_KEY);
|
||||
}
|
||||
catch
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 使用默认解密
|
||||
/// </summary>
|
||||
/// <param name="strText">解密字符串</param>
|
||||
/// <returns></returns>
|
||||
public static string DesDecrypt(string strText)
|
||||
{
|
||||
try
|
||||
{
|
||||
return DesDecrypt(strText, DEFAULT_ENCRYPT_KEY);
|
||||
}
|
||||
catch
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 加密字符串,注意strEncrKey的长度为8位
|
||||
/// </summary>
|
||||
/// <param name="strText">待加密字符串</param>
|
||||
/// <param name="strEncrKey">加密键</param>
|
||||
/// <returns></returns>
|
||||
public static string DesEncrypt(string strText, string strEncrKey)
|
||||
{
|
||||
byte[] byKey = null;
|
||||
byte[] IV = { 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF };
|
||||
|
||||
byKey = Encoding.UTF8.GetBytes(strEncrKey.Substring(0, 8));
|
||||
DESCryptoServiceProvider des = new DESCryptoServiceProvider();
|
||||
byte[] inputByteArray = Encoding.UTF8.GetBytes(strText);
|
||||
MemoryStream ms = new MemoryStream();
|
||||
CryptoStream cs = new CryptoStream(ms, des.CreateEncryptor(byKey, IV), CryptoStreamMode.Write);
|
||||
cs.Write(inputByteArray, 0, inputByteArray.Length);
|
||||
cs.FlushFinalBlock();
|
||||
return Convert.ToBase64String(ms.ToArray());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 解密字符串,注意strEncrKey的长度为8位
|
||||
/// </summary>
|
||||
/// <param name="strText">待解密的字符串</param>
|
||||
/// <param name="sDecrKey">解密键</param>
|
||||
/// <returns>解密后的字符串</returns>
|
||||
public static string DesDecrypt(string strText, string sDecrKey)
|
||||
{
|
||||
byte[] byKey = null;
|
||||
byte[] IV = { 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF };
|
||||
byte[] inputByteArray = new Byte[strText.Length];
|
||||
|
||||
byKey = Encoding.UTF8.GetBytes(sDecrKey.Substring(0, 8));
|
||||
DESCryptoServiceProvider des = new DESCryptoServiceProvider();
|
||||
inputByteArray = Convert.FromBase64String(strText);
|
||||
MemoryStream ms = new MemoryStream();
|
||||
CryptoStream cs = new CryptoStream(ms, des.CreateDecryptor(byKey, IV), CryptoStreamMode.Write);
|
||||
cs.Write(inputByteArray, 0, inputByteArray.Length);
|
||||
cs.FlushFinalBlock();
|
||||
Encoding encoding = new UTF8Encoding();
|
||||
return encoding.GetString(ms.ToArray());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 加密数据文件,注意strEncrKey的长度为8位
|
||||
/// </summary>
|
||||
/// <param name="m_InFilePath">待加密的文件路径</param>
|
||||
/// <param name="m_OutFilePath">输出文件路径</param>
|
||||
/// <param name="strEncrKey">加密键</param>
|
||||
public static void DesEncrypt(string m_InFilePath, string m_OutFilePath, string strEncrKey)
|
||||
{
|
||||
byte[] byKey = null;
|
||||
byte[] IV = { 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF };
|
||||
|
||||
byKey = Encoding.UTF8.GetBytes(strEncrKey.Substring(0, 8));
|
||||
FileStream fin = new FileStream(m_InFilePath, FileMode.Open, FileAccess.Read);
|
||||
FileStream fout = new FileStream(m_OutFilePath, FileMode.OpenOrCreate, FileAccess.Write);
|
||||
fout.SetLength(0);
|
||||
//Create variables to help with read and write.
|
||||
byte[] bin = new byte[100]; //This is intermediate storage for the encryption.
|
||||
long rdlen = 0; //This is the total number of bytes written.
|
||||
long totlen = fin.Length; //This is the total length of the input file.
|
||||
int len; //This is the number of bytes to be written at a time.
|
||||
|
||||
DES des = new DESCryptoServiceProvider();
|
||||
CryptoStream encStream = new CryptoStream(fout, des.CreateEncryptor(byKey, IV), CryptoStreamMode.Write);
|
||||
|
||||
//Read from the input file, then encrypt and write to the output file.
|
||||
while (rdlen < totlen)
|
||||
{
|
||||
len = fin.Read(bin, 0, 100);
|
||||
encStream.Write(bin, 0, len);
|
||||
rdlen = rdlen + len;
|
||||
}
|
||||
encStream.Close();
|
||||
fout.Close();
|
||||
fin.Close();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 解密数据文件,注意strEncrKey的长度为8位
|
||||
/// </summary>
|
||||
/// <param name="m_InFilePath">待解密的文件路径</param>
|
||||
/// <param name="m_OutFilePath">输出路径</param>
|
||||
/// <param name="sDecrKey">解密键</param>
|
||||
public static void DesDecrypt(string m_InFilePath, string m_OutFilePath, string sDecrKey)
|
||||
{
|
||||
byte[] byKey = null;
|
||||
byte[] IV = { 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF };
|
||||
|
||||
byKey = Encoding.UTF8.GetBytes(sDecrKey.Substring(0, 8));
|
||||
FileStream fin = new FileStream(m_InFilePath, FileMode.Open, FileAccess.Read);
|
||||
FileStream fout = new FileStream(m_OutFilePath, FileMode.OpenOrCreate, FileAccess.Write);
|
||||
fout.SetLength(0);
|
||||
//Create variables to help with read and write.
|
||||
byte[] bin = new byte[100]; //This is intermediate storage for the encryption.
|
||||
long rdlen = 0; //This is the total number of bytes written.
|
||||
long totlen = fin.Length; //This is the total length of the input file.
|
||||
int len; //This is the number of bytes to be written at a time.
|
||||
|
||||
DES des = new DESCryptoServiceProvider();
|
||||
CryptoStream encStream = new CryptoStream(fout, des.CreateDecryptor(byKey, IV), CryptoStreamMode.Write);
|
||||
|
||||
//Read from the input file, then encrypt and write to the output file.
|
||||
while (rdlen < totlen)
|
||||
{
|
||||
len = fin.Read(bin, 0, 100);
|
||||
encStream.Write(bin, 0, len);
|
||||
rdlen = rdlen + len;
|
||||
}
|
||||
encStream.Close();
|
||||
fout.Close();
|
||||
fin.Close();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 对称加密算法AES RijndaelManaged加密解密
|
||||
private static readonly string Default_AES_Key = "@#kim123";
|
||||
private static byte[] Keys = { 0x41, 0x72, 0x65, 0x79, 0x6F, 0x75, 0x6D, 0x79,
|
||||
0x53,0x6E, 0x6F, 0x77, 0x6D, 0x61, 0x6E, 0x3F };
|
||||
|
||||
/// <summary>
|
||||
/// 对称加密算法AES RijndaelManaged加密(RijndaelManaged(AES)算法是块式加密算法)
|
||||
/// </summary>
|
||||
/// <param name="encryptString">待加密字符串</param>
|
||||
/// <returns>加密结果字符串</returns>
|
||||
public static string AES_Encrypt(string encryptString)
|
||||
{
|
||||
return AES_Encrypt(encryptString, Default_AES_Key);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 对称加密算法AES RijndaelManaged加密(RijndaelManaged(AES)算法是块式加密算法)
|
||||
/// </summary>
|
||||
/// <param name="encryptString">待加密字符串</param>
|
||||
/// <param name="encryptKey">加密密钥,须半角字符</param>
|
||||
/// <returns>加密结果字符串</returns>
|
||||
public static string AES_Encrypt(string encryptString, string encryptKey)
|
||||
{
|
||||
encryptKey = GetSubString(encryptKey, 32, "");
|
||||
encryptKey = encryptKey.PadRight(32, ' ');
|
||||
|
||||
RijndaelManaged rijndaelProvider = new RijndaelManaged();
|
||||
rijndaelProvider.Key = Encoding.UTF8.GetBytes(encryptKey.Substring(0, 32));
|
||||
rijndaelProvider.IV = Keys;
|
||||
ICryptoTransform rijndaelEncrypt = rijndaelProvider.CreateEncryptor();
|
||||
|
||||
byte[] inputData = Encoding.UTF8.GetBytes(encryptString);
|
||||
byte[] encryptedData = rijndaelEncrypt.TransformFinalBlock(inputData, 0, inputData.Length);
|
||||
|
||||
return Convert.ToBase64String(encryptedData);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 对称加密算法AES RijndaelManaged解密字符串
|
||||
/// </summary>
|
||||
/// <param name="decryptString">待解密的字符串</param>
|
||||
/// <returns>解密成功返回解密后的字符串,失败返源串</returns>
|
||||
public static string AES_Decrypt(string decryptString)
|
||||
{
|
||||
return AES_Decrypt(decryptString, Default_AES_Key);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 对称加密算法AES RijndaelManaged解密字符串
|
||||
/// </summary>
|
||||
/// <param name="decryptString">待解密的字符串</param>
|
||||
/// <param name="decryptKey">解密密钥,和加密密钥相同</param>
|
||||
/// <returns>解密成功返回解密后的字符串,失败返回空</returns>
|
||||
public static string AES_Decrypt(string decryptString, string decryptKey)
|
||||
{
|
||||
try
|
||||
{
|
||||
decryptKey = GetSubString(decryptKey, 32, "");
|
||||
decryptKey = decryptKey.PadRight(32, ' ');
|
||||
|
||||
RijndaelManaged rijndaelProvider = new RijndaelManaged();
|
||||
rijndaelProvider.Key = Encoding.UTF8.GetBytes(decryptKey);
|
||||
rijndaelProvider.IV = Keys;
|
||||
ICryptoTransform rijndaelDecrypt = rijndaelProvider.CreateDecryptor();
|
||||
|
||||
byte[] inputData = Convert.FromBase64String(decryptString);
|
||||
byte[] decryptedData = rijndaelDecrypt.TransformFinalBlock(inputData, 0, inputData.Length);
|
||||
|
||||
return Encoding.UTF8.GetString(decryptedData);
|
||||
}
|
||||
catch
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 按字节长度(按字节,一个汉字为2个字节)取得某字符串的一部分
|
||||
/// </summary>
|
||||
/// <param name="sourceString">源字符串</param>
|
||||
/// <param name="length">所取字符串字节长度</param>
|
||||
/// <param name="tailString">附加字符串(当字符串不够长时,尾部所添加的字符串,一般为"...")</param>
|
||||
/// <returns>某字符串的一部分</returns>
|
||||
private static string GetSubString(string sourceString, int length, string tailString)
|
||||
{
|
||||
return GetSubString(sourceString, 0, length, tailString);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 按字节长度(按字节,一个汉字为2个字节)取得某字符串的一部分
|
||||
/// </summary>
|
||||
/// <param name="sourceString">源字符串</param>
|
||||
/// <param name="startIndex">索引位置,以0开始</param>
|
||||
/// <param name="length">所取字符串字节长度</param>
|
||||
/// <param name="tailString">附加字符串(当字符串不够长时,尾部所添加的字符串,一般为"...")</param>
|
||||
/// <returns>某字符串的一部分</returns>
|
||||
private static string GetSubString(string sourceString, int startIndex, int length, string tailString)
|
||||
{
|
||||
string myResult = sourceString;
|
||||
|
||||
//当是日文或韩文时(注:中文的范围:\u4e00 - \u9fa5, 日文在\u0800 - \u4e00, 韩文为\xAC00-\xD7A3)
|
||||
if (System.Text.RegularExpressions.Regex.IsMatch(sourceString, "[\u0800-\u4e00]+") ||
|
||||
System.Text.RegularExpressions.Regex.IsMatch(sourceString, "[\xAC00-\xD7A3]+"))
|
||||
{
|
||||
//当截取的起始位置超出字段串长度时
|
||||
if (startIndex >= sourceString.Length)
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
else
|
||||
{
|
||||
return sourceString.Substring(startIndex,
|
||||
((length + startIndex) > sourceString.Length) ? (sourceString.Length - startIndex) : length);
|
||||
}
|
||||
}
|
||||
|
||||
//中文字符,如"中国人民abcd123"
|
||||
if (length <= 0)
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
byte[] bytesSource = Encoding.Default.GetBytes(sourceString);
|
||||
|
||||
//当字符串长度大于起始位置
|
||||
if (bytesSource.Length > startIndex)
|
||||
{
|
||||
int endIndex = bytesSource.Length;
|
||||
|
||||
//当要截取的长度在字符串的有效长度范围内
|
||||
if (bytesSource.Length > (startIndex + length))
|
||||
{
|
||||
endIndex = length + startIndex;
|
||||
}
|
||||
else
|
||||
{ //当不在有效范围内时,只取到字符串的结尾
|
||||
length = bytesSource.Length - startIndex;
|
||||
tailString = "";
|
||||
}
|
||||
|
||||
int[] anResultFlag = new int[length];
|
||||
int nFlag = 0;
|
||||
//字节大于127为双字节字符
|
||||
for (int i = startIndex; i < endIndex; i++)
|
||||
{
|
||||
if (bytesSource[i] > 127)
|
||||
{
|
||||
nFlag++;
|
||||
if (nFlag == 3)
|
||||
{
|
||||
nFlag = 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
nFlag = 0;
|
||||
}
|
||||
anResultFlag[i] = nFlag;
|
||||
}
|
||||
//最后一个字节为双字节字符的一半
|
||||
if ((bytesSource[endIndex - 1] > 127) && (anResultFlag[length - 1] == 1))
|
||||
{
|
||||
length = length + 1;
|
||||
}
|
||||
|
||||
byte[] bsResult = new byte[length];
|
||||
Array.Copy(bytesSource, startIndex, bsResult, 0, length);
|
||||
myResult = Encoding.Default.GetString(bsResult);
|
||||
myResult = myResult + tailString;
|
||||
|
||||
return myResult;
|
||||
}
|
||||
|
||||
return string.Empty;
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 加密文件流
|
||||
/// </summary>
|
||||
/// <param name="fs">文件流对象</param>
|
||||
/// <param name="encryptKey">加密键</param>
|
||||
/// <returns></returns>
|
||||
public static CryptoStream AES_EncryptStrream(FileStream fs, string encryptKey)
|
||||
{
|
||||
encryptKey = GetSubString(encryptKey, 32, "");
|
||||
encryptKey = encryptKey.PadRight(32, ' ');
|
||||
|
||||
RijndaelManaged rijndaelProvider = new RijndaelManaged();
|
||||
rijndaelProvider.Key = Encoding.UTF8.GetBytes(encryptKey);
|
||||
rijndaelProvider.IV = Keys;
|
||||
|
||||
ICryptoTransform encrypto = rijndaelProvider.CreateEncryptor();
|
||||
CryptoStream cytptostreamEncr = new CryptoStream(fs, encrypto, CryptoStreamMode.Write);
|
||||
return cytptostreamEncr;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 解密文件流
|
||||
/// </summary>
|
||||
/// <param name="fs">文件流对象</param>
|
||||
/// <param name="decryptKey">解密键</param>
|
||||
/// <returns></returns>
|
||||
public static CryptoStream AES_DecryptStream(FileStream fs, string decryptKey)
|
||||
{
|
||||
decryptKey = GetSubString(decryptKey, 32, "");
|
||||
decryptKey = decryptKey.PadRight(32, ' ');
|
||||
|
||||
RijndaelManaged rijndaelProvider = new RijndaelManaged();
|
||||
rijndaelProvider.Key = Encoding.UTF8.GetBytes(decryptKey);
|
||||
rijndaelProvider.IV = Keys;
|
||||
ICryptoTransform Decrypto = rijndaelProvider.CreateDecryptor();
|
||||
CryptoStream cytptostreamDecr = new CryptoStream(fs, Decrypto, CryptoStreamMode.Read);
|
||||
return cytptostreamDecr;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 对指定文件加密
|
||||
/// </summary>
|
||||
/// <param name="InputFile">输入文件</param>
|
||||
/// <param name="OutputFile">输出文件</param>
|
||||
/// <returns></returns>
|
||||
public static bool AES_EncryptFile(string InputFile, string OutputFile)
|
||||
{
|
||||
try
|
||||
{
|
||||
string decryptKey = "www.iqidi.com";
|
||||
|
||||
FileStream fr = new FileStream(InputFile, FileMode.Open);
|
||||
FileStream fren = new FileStream(OutputFile, FileMode.Create);
|
||||
CryptoStream Enfr = AES_EncryptStrream(fren, decryptKey);
|
||||
byte[] bytearrayinput = new byte[fr.Length];
|
||||
fr.Read(bytearrayinput, 0, bytearrayinput.Length);
|
||||
Enfr.Write(bytearrayinput, 0, bytearrayinput.Length);
|
||||
Enfr.Close();
|
||||
fr.Close();
|
||||
fren.Close();
|
||||
}
|
||||
catch
|
||||
{
|
||||
//文件异常
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 对指定的文件解压缩
|
||||
/// </summary>
|
||||
/// <param name="InputFile">输入文件</param>
|
||||
/// <param name="OutputFile">输出文件</param>
|
||||
/// <returns></returns>
|
||||
public static bool AES_DecryptFile(string InputFile, string OutputFile)
|
||||
{
|
||||
try
|
||||
{
|
||||
string decryptKey = "www.iqidi.com";
|
||||
FileStream fr = new FileStream(InputFile, FileMode.Open);
|
||||
FileStream frde = new FileStream(OutputFile, FileMode.Create);
|
||||
CryptoStream Defr = AES_DecryptStream(fr, decryptKey);
|
||||
byte[] bytearrayoutput = new byte[1024];
|
||||
int m_count = 0;
|
||||
|
||||
do
|
||||
{
|
||||
m_count = Defr.Read(bytearrayoutput, 0, bytearrayoutput.Length);
|
||||
frde.Write(bytearrayoutput, 0, m_count);
|
||||
if (m_count < bytearrayoutput.Length)
|
||||
break;
|
||||
} while (true);
|
||||
|
||||
Defr.Close();
|
||||
fr.Close();
|
||||
frde.Close();
|
||||
}
|
||||
catch
|
||||
{
|
||||
//文件异常
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Base64加密解密
|
||||
/// <summary>
|
||||
/// Base64是一種使用64基的位置計數法。它使用2的最大次方來代表僅可列印的ASCII 字元。
|
||||
/// 這使它可用來作為電子郵件的傳輸編碼。在Base64中的變數使用字元A-Z、a-z和0-9 ,
|
||||
/// 這樣共有62個字元,用來作為開始的64個數字,最後兩個用來作為數字的符號在不同的
|
||||
/// 系統中而不同。
|
||||
/// Base64加密
|
||||
/// </summary>
|
||||
/// <param name="str">Base64方式加密字符串</param>
|
||||
/// <returns></returns>
|
||||
public static string Base64Encrypt(string str)
|
||||
{
|
||||
byte[] encbuff = System.Text.Encoding.UTF8.GetBytes(str);
|
||||
return Convert.ToBase64String(encbuff);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Base64解密字符串
|
||||
/// </summary>
|
||||
/// <param name="str">待解密的字符串</param>
|
||||
/// <returns></returns>
|
||||
public static string Base64Decrypt(string str)
|
||||
{
|
||||
byte[] decbuff = Convert.FromBase64String(str);
|
||||
return System.Text.Encoding.UTF8.GetString(decbuff);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region MD5加密
|
||||
|
||||
/// <summary>
|
||||
/// 使用MD5加密字符串
|
||||
/// </summary>
|
||||
/// <param name="strText">待加密的字符串</param>
|
||||
/// <returns>MD5加密后的字符串</returns>
|
||||
public static string MD5Encrypt(string strText)
|
||||
{
|
||||
MD5 md5 = new MD5CryptoServiceProvider();
|
||||
byte[] result = md5.ComputeHash(Encoding.Default.GetBytes(strText));
|
||||
return Encoding.Default.GetString(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 使用MD5加密的Hash表
|
||||
/// </summary>
|
||||
/// <param name="input">待加密字符串</param>
|
||||
/// <returns></returns>
|
||||
public static string MD5EncryptHash(String input)
|
||||
{
|
||||
MD5 md5 = new MD5CryptoServiceProvider();
|
||||
//the GetBytes method returns byte array equavalent of a string
|
||||
byte[] res = md5.ComputeHash(Encoding.Default.GetBytes(input), 0, input.Length);
|
||||
char[] temp = new char[res.Length];
|
||||
//copy to a char array which can be passed to a String constructor
|
||||
Array.Copy(res, temp, res.Length);
|
||||
//return the result as a string
|
||||
return new String(temp);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 使用Md5加密为16进制字符串
|
||||
/// </summary>
|
||||
/// <param name="input">待加密字符串</param>
|
||||
/// <returns></returns>
|
||||
public static string MD5EncryptHashHex(String input)
|
||||
{
|
||||
MD5 md5 = new MD5CryptoServiceProvider();
|
||||
//the GetBytes method returns byte array equavalent of a string
|
||||
byte[] res = md5.ComputeHash(Encoding.Default.GetBytes(input), 0, input.Length);
|
||||
|
||||
String returnThis = string.Empty;
|
||||
|
||||
for (int i = 0; i < res.Length; i++)
|
||||
{
|
||||
returnThis += Uri.HexEscape((char)res[i]);
|
||||
}
|
||||
returnThis = returnThis.Replace("%", "");
|
||||
returnThis = returnThis.ToLower();
|
||||
|
||||
return returnThis;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// MD5 三次加密算法.计算过程: (QQ使用)
|
||||
/// 1. 验证码转为大写
|
||||
/// 2. 将密码使用这个方法进行三次加密后,与验证码进行叠加
|
||||
/// 3. 然后将叠加后的内容再次MD5一下,得到最终验证码的值
|
||||
/// </summary>
|
||||
/// <param name="s">待加密字符串</param>
|
||||
/// <returns></returns>
|
||||
public static string EncyptMD5_3_16(string s)
|
||||
{
|
||||
MD5 md5 = MD5CryptoServiceProvider.Create();
|
||||
byte[] bytes = System.Text.Encoding.ASCII.GetBytes(s);
|
||||
byte[] bytes1 = md5.ComputeHash(bytes);
|
||||
byte[] bytes2 = md5.ComputeHash(bytes1);
|
||||
byte[] bytes3 = md5.ComputeHash(bytes2);
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
foreach (var item in bytes3)
|
||||
{
|
||||
sb.Append(item.ToString("x").PadLeft(2, '0'));
|
||||
}
|
||||
return sb.ToString().ToUpper();
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// SHA256函数
|
||||
/// </summary>
|
||||
/// <param name="str">原始字符串</param>
|
||||
/// <returns>SHA256结果(返回长度为44字节的字符串)</returns>
|
||||
public static string SHA256(string str)
|
||||
{
|
||||
byte[] SHA256Data = Encoding.UTF8.GetBytes(str);
|
||||
SHA256Managed Sha256 = new SHA256Managed();
|
||||
byte[] Result = Sha256.ComputeHash(SHA256Data);
|
||||
return Convert.ToBase64String(Result); //返回长度为44字节的字符串
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 加密字符串
|
||||
/// </summary>
|
||||
/// <param name="input">待加密的字符串</param>
|
||||
/// <returns></returns>
|
||||
public static string EncryptString(string input)
|
||||
{
|
||||
return MD5Utils.AddMD5Profix(Base64Util.Encrypt(MD5Utils.AddMD5Profix(input)));
|
||||
//return Base64.Encrypt(MD5.AddMD5Profix(Base64.Encrypt(input)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 解密加过密的字符串
|
||||
/// </summary>
|
||||
/// <param name="input">待解密的字符串</param>
|
||||
/// <param name="throwException">解密失败是否抛异常</param>
|
||||
/// <returns></returns>
|
||||
public static string DecryptString(string input, bool throwException)
|
||||
{
|
||||
string res = "";
|
||||
try
|
||||
{
|
||||
res = input;// Base64.Decrypt(input);
|
||||
if (MD5Utils.ValidateValue(res))
|
||||
{
|
||||
return MD5Utils.RemoveMD5Profix(Base64Util.Decrypt(MD5Utils.RemoveMD5Profix(res)));
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("字符串无法转换成功!");
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
if (throwException)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace WinformGeneralDeveloperFrame.Commons
|
||||
{
|
||||
/// <summary>
|
||||
/// QQ密码加密操作辅助类
|
||||
/// </summary>
|
||||
public class QQEncryptUtil
|
||||
{
|
||||
/// <summary>
|
||||
/// QQ根据密码及验证码对数据进行加密
|
||||
/// </summary>
|
||||
/// <param name="password">原始密码</param>
|
||||
/// <param name="verifyCode">验证码</param>
|
||||
/// <returns></returns>
|
||||
public static string EncodePasswordWithVerifyCode(string password, string verifyCode)
|
||||
{
|
||||
return MD5(MD5_3(password) + verifyCode.ToUpper());
|
||||
}
|
||||
|
||||
static string MD5_3(string arg)
|
||||
{
|
||||
System.Security.Cryptography.MD5 md5 = System.Security.Cryptography.MD5.Create();
|
||||
|
||||
byte[] buffer = System.Text.Encoding.ASCII.GetBytes(arg);
|
||||
buffer = md5.ComputeHash(buffer);
|
||||
buffer = md5.ComputeHash(buffer);
|
||||
buffer = md5.ComputeHash(buffer);
|
||||
|
||||
return BitConverter.ToString(buffer).Replace("-", "").ToUpper();
|
||||
}
|
||||
static string MD5(string arg)
|
||||
{
|
||||
System.Security.Cryptography.MD5 md5 = System.Security.Cryptography.MD5.Create();
|
||||
|
||||
byte[] buffer = System.Text.Encoding.ASCII.GetBytes(arg);
|
||||
buffer = md5.ComputeHash(buffer);
|
||||
|
||||
return BitConverter.ToString(buffer).Replace("-", "").ToUpper();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,239 @@
|
|||
using System;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
|
||||
namespace WinformGeneralDeveloperFrame.Commons
|
||||
{
|
||||
/// <summary>
|
||||
/// 非对称加密、解密、验证辅助类
|
||||
/// </summary>
|
||||
public class RSASecurityHelper
|
||||
{
|
||||
/// <summary>
|
||||
/// 非对称加密生成的私钥和公钥
|
||||
/// </summary>
|
||||
/// <param name="privateKey">私钥</param>
|
||||
/// <param name="publicKey">公钥</param>
|
||||
public static void GenerateRSAKey(out string privateKey, out string publicKey)
|
||||
{
|
||||
RSACryptoServiceProvider rsa = new RSACryptoServiceProvider();
|
||||
privateKey = rsa.ToXmlString(true);
|
||||
publicKey = rsa.ToXmlString(false);
|
||||
}
|
||||
|
||||
#region 非对称数据加密(公钥加密)
|
||||
|
||||
/// <summary>
|
||||
/// 非对称加密字符串数据,返回加密后的数据
|
||||
/// </summary>
|
||||
/// <param name="publicKey">公钥</param>
|
||||
/// <param name="originalString">待加密的字符串</param>
|
||||
/// <returns>加密后的数据</returns>
|
||||
public static string RSAEncrypt(string publicKey, string originalString)
|
||||
{
|
||||
byte[] PlainTextBArray;
|
||||
byte[] CypherTextBArray;
|
||||
string Result;
|
||||
RSACryptoServiceProvider rsa = new RSACryptoServiceProvider();
|
||||
rsa.FromXmlString(publicKey);
|
||||
PlainTextBArray = (new UnicodeEncoding()).GetBytes(originalString);
|
||||
CypherTextBArray = rsa.Encrypt(PlainTextBArray, false);
|
||||
Result = Convert.ToBase64String(CypherTextBArray);
|
||||
return Result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 非对称加密字节数组,返回加密后的数据
|
||||
/// </summary>
|
||||
/// <param name="publicKey">公钥</param>
|
||||
/// <param name="originalBytes">待加密的字节数组</param>
|
||||
/// <returns>返回加密后的数据</returns>
|
||||
public static string RSAEncrypt(string publicKey, byte[] originalBytes)
|
||||
{
|
||||
byte[] CypherTextBArray;
|
||||
string Result;
|
||||
RSACryptoServiceProvider rsa = new RSACryptoServiceProvider();
|
||||
rsa.FromXmlString(publicKey);
|
||||
CypherTextBArray = rsa.Encrypt(originalBytes, false);
|
||||
Result = Convert.ToBase64String(CypherTextBArray);
|
||||
return Result;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 非对称解密(私钥解密)
|
||||
|
||||
/// <summary>
|
||||
/// 非对称解密字符串,返回解密后的数据
|
||||
/// </summary>
|
||||
/// <param name="privateKey">私钥</param>
|
||||
/// <param name="encryptedString">待解密数据</param>
|
||||
/// <returns>返回解密后的数据</returns>
|
||||
public static string RSADecrypt(string privateKey, string encryptedString)
|
||||
{
|
||||
byte[] PlainTextBArray;
|
||||
byte[] DypherTextBArray;
|
||||
string Result;
|
||||
System.Security.Cryptography.RSACryptoServiceProvider rsa = new RSACryptoServiceProvider();
|
||||
rsa.FromXmlString(privateKey);
|
||||
PlainTextBArray = Convert.FromBase64String(encryptedString);
|
||||
DypherTextBArray = rsa.Decrypt(PlainTextBArray, false);
|
||||
Result = (new UnicodeEncoding()).GetString(DypherTextBArray);
|
||||
return Result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 非对称解密字节数组,返回解密后的数据
|
||||
/// </summary>
|
||||
/// <param name="privateKey">私钥</param>
|
||||
/// <param name="encryptedBytes">待解密数据</param>
|
||||
/// <returns></returns>
|
||||
public static string RSADecrypt(string privateKey, byte[] encryptedBytes)
|
||||
{
|
||||
byte[] DypherTextBArray;
|
||||
string Result;
|
||||
System.Security.Cryptography.RSACryptoServiceProvider rsa = new RSACryptoServiceProvider();
|
||||
rsa.FromXmlString(privateKey);
|
||||
DypherTextBArray = rsa.Decrypt(encryptedBytes, false);
|
||||
Result = (new UnicodeEncoding()).GetString(DypherTextBArray);
|
||||
return Result;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 非对称加密签名、验证
|
||||
|
||||
/// <summary>
|
||||
/// 使用非对称加密签名数据
|
||||
/// </summary>
|
||||
/// <param name="privateKey">私钥</param>
|
||||
/// <param name="originalString">待加密的字符串</param>
|
||||
/// <returns>加密后的数据</returns>
|
||||
public static string RSAEncrypSignature(string privateKey, string originalString)
|
||||
{
|
||||
string signature;
|
||||
using (RSACryptoServiceProvider rsa = new RSACryptoServiceProvider())
|
||||
{
|
||||
rsa.FromXmlString(privateKey); //私钥
|
||||
// 加密对象
|
||||
RSAPKCS1SignatureFormatter f = new RSAPKCS1SignatureFormatter(rsa);
|
||||
f.SetHashAlgorithm("SHA1");
|
||||
byte[] source = ASCIIEncoding.ASCII.GetBytes(originalString);
|
||||
SHA1Managed sha = new SHA1Managed();
|
||||
byte[] result = sha.ComputeHash(source);
|
||||
byte[] b = f.CreateSignature(result);
|
||||
signature = Convert.ToBase64String(b);
|
||||
}
|
||||
return signature;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 对私钥加密签名的字符串,使用公钥对其进行验证
|
||||
/// </summary>
|
||||
/// <param name="originalString">未加密的文本,如机器码</param>
|
||||
/// <param name="encrytedString">加密后的文本,如注册序列号</param>
|
||||
/// <returns>如果验证成功返回True,否则为False</returns>
|
||||
//public static bool Validate(string originalString, string encrytedString)
|
||||
//{
|
||||
// return Validate(originalString, encrytedString, UIConstants.PublicKey);
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// 对私钥加密的字符串,使用公钥对其进行验证
|
||||
/// </summary>
|
||||
/// <param name="originalString">未加密的文本,如机器码</param>
|
||||
/// <param name="encrytedString">加密后的文本,如注册序列号</param>
|
||||
/// <param name="publicKey">非对称加密的公钥</param>
|
||||
/// <returns>如果验证成功返回True,否则为False</returns>
|
||||
public static bool Validate(string originalString, string encrytedString, string publicKey)
|
||||
{
|
||||
bool bPassed = false;
|
||||
using (RSACryptoServiceProvider rsa = new RSACryptoServiceProvider())
|
||||
{
|
||||
try
|
||||
{
|
||||
rsa.FromXmlString(publicKey); //公钥
|
||||
RSAPKCS1SignatureDeformatter formatter = new RSAPKCS1SignatureDeformatter(rsa);
|
||||
formatter.SetHashAlgorithm("SHA1");
|
||||
|
||||
byte[] key = Convert.FromBase64String(encrytedString); //验证
|
||||
SHA1Managed sha = new SHA1Managed();
|
||||
byte[] name = sha.ComputeHash(ASCIIEncoding.ASCII.GetBytes(originalString));
|
||||
if (formatter.VerifySignature(name, key))
|
||||
{
|
||||
bPassed = true;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
return bPassed;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Hash 加密
|
||||
|
||||
/// <summary> Hash 加密 </summary>
|
||||
/// <param name="str2Hash"></param>
|
||||
/// <returns></returns>
|
||||
public static int HashEncrypt(string str2Hash)
|
||||
{
|
||||
const int salt = 100716; // 盐值
|
||||
str2Hash += "Commons"; // 增加一个常量字符串
|
||||
|
||||
int len = str2Hash.Length;
|
||||
int result = (str2Hash[len - 1] - 31) * 95 + salt;
|
||||
for (int i = 0; i < len - 1; i++)
|
||||
{
|
||||
result = (result * 95) + (str2Hash[i] - 32);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// MD5加密
|
||||
/// </summary>
|
||||
/// <param name="str">待加密字串</param>
|
||||
/// <returns>加密后的字串</returns>
|
||||
public static string ComputeMD5(string str)
|
||||
{
|
||||
byte[] hashValue = ComputeMD5Data(str);
|
||||
return BitConverter.ToString(hashValue).Replace("-", "");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// MD5加密
|
||||
/// </summary>
|
||||
/// <param name="input">待加密字串</param>
|
||||
/// <returns>加密后的字串</returns>
|
||||
public static byte[] ComputeMD5Data(string input)
|
||||
{
|
||||
byte[] buffer = Encoding.UTF8.GetBytes(input);
|
||||
return MD5.Create().ComputeHash(buffer);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// MD5加密
|
||||
/// </summary>
|
||||
/// <param name="data">待加密数据</param>
|
||||
/// <returns>加密后的字串</returns>
|
||||
public static byte[] ComputeMD5Data(byte[] data)
|
||||
{
|
||||
return MD5.Create().ComputeHash(data);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// MD5加密
|
||||
/// </summary>
|
||||
/// <param name="stream">待加密流</param>
|
||||
/// <returns>加密后的字串</returns>
|
||||
public static byte[] ComputeMD5Data(Stream stream)
|
||||
{
|
||||
return MD5.Create().ComputeHash(stream);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
@ -17,7 +17,7 @@ namespace WinformGeneralDeveloperFrame.Commons
|
|||
|
||||
public static DataTable SqlTable(string name)
|
||||
{
|
||||
string connstring = ConfigurationManager.ConnectionStrings["DB"].ConnectionString;
|
||||
string connstring = EncodeHelper.AES_Decrypt(ConfigurationManager.ConnectionStrings["DB"].ConnectionString);
|
||||
string sql = "";
|
||||
string url = "";
|
||||
DataTable dt1 = new DataTable();
|
||||
|
|
@ -45,5 +45,20 @@ namespace WinformGeneralDeveloperFrame.Commons
|
|||
}
|
||||
return dt;
|
||||
}
|
||||
|
||||
public static DataTable SqlTableBySql(string sql)
|
||||
{
|
||||
string connstring = EncodeHelper.AES_Decrypt(ConfigurationManager.ConnectionStrings["DB"].ConnectionString);
|
||||
DataTable dt = new DataTable();
|
||||
using (var con = new SqlConnection(connstring))
|
||||
{
|
||||
con.Open();
|
||||
SqlCommand cmd = new SqlCommand(sql, con);
|
||||
cmd.CommandType = CommandType.Text;
|
||||
SqlDataAdapter sqlda = new SqlDataAdapter(cmd);
|
||||
sqlda.Fill(dt);
|
||||
}
|
||||
return dt;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,11 +57,15 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="ConvertHelper.cs" />
|
||||
<Compile Include="Encrypt\Base64Util.cs" />
|
||||
<Compile Include="Encrypt\EncodeHelper.cs" />
|
||||
<Compile Include="Encrypt\QQEncryptUtil.cs" />
|
||||
<Compile Include="Encrypt\RSASecurityHelper.cs" />
|
||||
<Compile Include="ExtensionMethod.cs" />
|
||||
<Compile Include="FileDialogHelper.cs" />
|
||||
<Compile Include="FileUtil.cs" />
|
||||
<Compile Include="GetDataTableUtils.cs" />
|
||||
<Compile Include="MD5Utils.cs" />
|
||||
<Compile Include="Encrypt\MD5Utils.cs" />
|
||||
<Compile Include="ModelBindControlAttribute.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="ReflectionUtil.cs" />
|
||||
|
|
|
|||
|
|
@ -51,8 +51,7 @@
|
|||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
<connectionStrings>
|
||||
<add name="DB" connectionString="data source=.;initial catalog=winformdevfarme;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
|
||||
<add name="Model1" connectionString="data source=192.168.21.3;initial catalog=MESDEV;persist security info=True;user id=TEST;password=TEST123;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
|
||||
<add name="DB" connectionString="SB16Jt39MD21ugTdYbOTj5/d7+MqcDuVilvBLoJ8OAEXPbuSrV6hZrXx67xblmuQ7fKaMYG+dVdcpDz7biJQmcsuIgxY2UbQm9Be5Kg6Gt/XgxyNiyyQ/Ua7WcUFxGOhUup+z1uyRwL8WU5Gb0o6R8+flGQhYRk/O1O4dns2+sU=" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<entityFramework>
|
||||
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ namespace WinformGeneralDeveloperFrame.Start
|
|||
static void Main()
|
||||
{
|
||||
DevExpress.Skins.SkinManager.EnableFormSkins();
|
||||
UserLookAndFeel.Default.SetSkinStyle("Office 2010 Blue");
|
||||
UserLookAndFeel.Default.SetSkinStyle("Office 2007 Silver");
|
||||
BonusSkins.Register();
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Configuration;
|
||||
using System.Data.Entity;
|
||||
using System.Linq;
|
||||
using MES.Entity;
|
||||
using WinformGeneralDeveloperFrame.Commons;
|
||||
|
||||
//using MES.Entity;
|
||||
|
||||
|
|
@ -11,7 +13,7 @@ namespace WinformGeneralDeveloperFrame
|
|||
public partial class DB : DbContext
|
||||
{
|
||||
public DB()
|
||||
: base("name=DB")
|
||||
: base(EncodeHelper.AES_Decrypt(ConfigurationManager.ConnectionStrings["DB"].ConnectionString))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,15 +1,18 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Configuration;
|
||||
using System.Data.Entity;
|
||||
using System.Linq;
|
||||
using MES.Entity;
|
||||
using WinformGeneralDeveloperFrame.Commons;
|
||||
|
||||
namespace MES
|
||||
{
|
||||
public partial class MESDB : DbContext
|
||||
{
|
||||
public MESDB()
|
||||
: base("name=DB")
|
||||
//: base("name=DB")
|
||||
: base(EncodeHelper.AES_Decrypt(ConfigurationManager.ConnectionStrings["DB"].ConnectionString))
|
||||
{
|
||||
}
|
||||
public virtual DbSet<stockDataInfo> stockDataInfo { get; set; }
|
||||
|
|
@ -67,5 +70,12 @@ namespace MES
|
|||
|
||||
public virtual DbSet<workorderInfo> workorderInfo { get; set; }
|
||||
|
||||
public virtual DbSet<productionBOMInfo> productionBOMInfo { set; get; }
|
||||
|
||||
|
||||
public virtual DbSet<productionRequisitionInfo> productionRequisitionInfo { get; set; }
|
||||
|
||||
public virtual DbSet<productionRequisitionDetailInfo> productionRequisitionDetailInfo { set; get; }
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -37,7 +37,7 @@ namespace MES.Entity
|
|||
public int warehouse{set;get;}
|
||||
///版本号
|
||||
[ModelBindControl("txtversion")]
|
||||
public int version{set;get;}
|
||||
public string version{set;get;}
|
||||
///BOM编号
|
||||
[ModelBindControl("txtproductBOMcode")]
|
||||
public string productBOMcode{set;get;}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,61 @@
|
|||
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("productionBOM")]
|
||||
public partial class productionBOMInfo
|
||||
{
|
||||
///id
|
||||
[ModelBindControl("txtid")]
|
||||
public int id{set;get;}
|
||||
///工程BOM编号
|
||||
[ModelBindControl("txtprojectBOMcode")]
|
||||
public string projectBOMcode{set;get;}
|
||||
///生产BOM编号
|
||||
[ModelBindControl("txtproductionBOMcode")]
|
||||
public string productionBOMcode{set;get;}
|
||||
///产品生产数量
|
||||
[ModelBindControl("txtnumber")]
|
||||
public decimal number{set;get;}
|
||||
///物料编码
|
||||
[ModelBindControl("txtmaterialcode")]
|
||||
public string materialcode{set;get;}
|
||||
///物料名称
|
||||
[ModelBindControl("txtmaterialid")]
|
||||
public int materialid{set;get;}
|
||||
///规格型号
|
||||
[ModelBindControl("txtspec")]
|
||||
public string spec{set;get;}
|
||||
///物料类型
|
||||
[ModelBindControl("txtmaterialtype")]
|
||||
public int materialtype{set;get;}
|
||||
///单位用量
|
||||
[ModelBindControl("txtuintnumber")]
|
||||
public decimal uintnumber{set;get;}
|
||||
///需求总量
|
||||
[ModelBindControl("txtneednumber")]
|
||||
public decimal neednumber{set;get;}
|
||||
///计量单位
|
||||
[ModelBindControl("txtunit")]
|
||||
public int unit{set;get;}
|
||||
///单价
|
||||
[ModelBindControl("txtunitprice")]
|
||||
public decimal unitprice{set;get;}
|
||||
///总价
|
||||
[ModelBindControl("txttotalprice")]
|
||||
public decimal totalprice{set;get;}
|
||||
///仓库
|
||||
[ModelBindControl("txtwarehouse")]
|
||||
public int warehouse{set;get;}
|
||||
///备注
|
||||
[ModelBindControl("txtremark")]
|
||||
public string remark{set;get;}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
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("productionRequisitionDetail")]
|
||||
public partial class productionRequisitionDetailInfo
|
||||
{
|
||||
///id
|
||||
[ModelBindControl("txtid")]
|
||||
public int id{set;get;}
|
||||
///主表ID
|
||||
[ModelBindControl("txtmasterid")]
|
||||
public int masterid{set;get;}
|
||||
///领料单号
|
||||
[ModelBindControl("txtmastercode")]
|
||||
public string mastercode{set;get;}
|
||||
///领料明细单号
|
||||
[ModelBindControl("txtdetailcode")]
|
||||
public string detailcode{set;get;}
|
||||
///物料
|
||||
[ModelBindControl("txtmaterialid")]
|
||||
public int materialid{set;get;}
|
||||
///物料编码
|
||||
[ModelBindControl("txtmaterialcode")]
|
||||
public string materialcode{set;get;}
|
||||
///规格型号
|
||||
[ModelBindControl("txtmaterialspec")]
|
||||
public string materialspec{set;get;}
|
||||
///物料类型
|
||||
[ModelBindControl("txtmaterialtype")]
|
||||
public int materialtype{set;get;}
|
||||
///单位用量
|
||||
[ModelBindControl("txtunitnumber")]
|
||||
public decimal unitnumber{set;get;}
|
||||
///产品生产数量
|
||||
[ModelBindControl("txtproductnumber")]
|
||||
public decimal productnumber{set;get;}
|
||||
///领料数量
|
||||
[ModelBindControl("txtpicknumber")]
|
||||
public decimal picknumber{set;get;}
|
||||
///计量单位
|
||||
[ModelBindControl("txtunit")]
|
||||
public int unit{set;get;}
|
||||
///仓库
|
||||
[ModelBindControl("txtwarehouse")]
|
||||
public int warehouse{set;get;}
|
||||
///备注
|
||||
[ModelBindControl("txtremark")]
|
||||
public string remark{set;get;}
|
||||
///工单号
|
||||
[ModelBindControl("txtwocode")]
|
||||
public string wocode{set;get;}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
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("productionRequisition")]
|
||||
public partial class productionRequisitionInfo
|
||||
{
|
||||
///id
|
||||
[ModelBindControl("txtid")]
|
||||
public int id{set;get;}
|
||||
///领料单号
|
||||
[ModelBindControl("txtcode")]
|
||||
public string code{set;get;}
|
||||
///工单号
|
||||
[ModelBindControl("txtwocode")]
|
||||
public string wocode{set;get;}
|
||||
///销售单号
|
||||
[ModelBindControl("txtsalecode")]
|
||||
public string salecode{set;get;}
|
||||
///领料日期
|
||||
[ModelBindControl("txtpickingtime")]
|
||||
public DateTime pickingtime{set;get;}=DateTime.Now;
|
||||
///产品
|
||||
[ModelBindControl("txtproductID")]
|
||||
public int productID{set;get;}
|
||||
///产品编号
|
||||
[ModelBindControl("txtproductcode")]
|
||||
public string productcode{set;get;}
|
||||
///规格型号
|
||||
[ModelBindControl("txtproductspec")]
|
||||
public string productspec{set;get;}
|
||||
///生产数量
|
||||
[ModelBindControl("txtnumber")]
|
||||
public decimal number{set;get;}
|
||||
///计量单位
|
||||
[ModelBindControl("txtunit")]
|
||||
public int unit{set;get;}
|
||||
///领料部门
|
||||
[ModelBindControl("txtpickingdept")]
|
||||
public int pickingdept{set;get;}
|
||||
///制单人
|
||||
[ModelBindControl("txtcreatorId")]
|
||||
public int creatorId{set;get;}
|
||||
///制单日期
|
||||
[ModelBindControl("txtcreateTime")]
|
||||
public DateTime createTime{set;get;}=DateTime.Now;
|
||||
///备注
|
||||
[ModelBindControl("txtremark")]
|
||||
public string remark{set;get;}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -65,6 +65,10 @@ namespace MES.Entity
|
|||
///备注
|
||||
[ModelBindControl("txtremark")]
|
||||
public string remark{set;get;}
|
||||
|
||||
|
||||
///BOM
|
||||
[ModelBindControl("txtbomid")]
|
||||
public int bomid { set; get; }
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -269,7 +269,7 @@ namespace MES.Form
|
|||
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(992, 673);
|
||||
this.xtraTabControl1.Size = new System.Drawing.Size(1002, 679);
|
||||
this.xtraTabControl1.TabIndex = 1;
|
||||
this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
|
||||
this.tabDataList,
|
||||
|
|
@ -279,7 +279,7 @@ namespace MES.Form
|
|||
//
|
||||
this.tabDataList.Controls.Add(this.grdList);
|
||||
this.tabDataList.Name = "tabDataList";
|
||||
this.tabDataList.Size = new System.Drawing.Size(986, 644);
|
||||
this.tabDataList.Size = new System.Drawing.Size(997, 653);
|
||||
this.tabDataList.Text = "数据列表";
|
||||
//
|
||||
// grdList
|
||||
|
|
@ -288,7 +288,7 @@ namespace MES.Form
|
|||
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(986, 644);
|
||||
this.grdList.Size = new System.Drawing.Size(997, 653);
|
||||
this.grdList.TabIndex = 0;
|
||||
this.grdList.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
||||
this.grdListView});
|
||||
|
|
@ -314,7 +314,7 @@ namespace MES.Form
|
|||
//
|
||||
this.tabDataDetail.Controls.Add(this.panelControl2);
|
||||
this.tabDataDetail.Name = "tabDataDetail";
|
||||
this.tabDataDetail.Size = new System.Drawing.Size(986, 644);
|
||||
this.tabDataDetail.Size = new System.Drawing.Size(997, 653);
|
||||
this.tabDataDetail.Text = "数据编辑";
|
||||
//
|
||||
// panelControl2
|
||||
|
|
@ -323,7 +323,7 @@ namespace MES.Form
|
|||
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(986, 644);
|
||||
this.panelControl2.Size = new System.Drawing.Size(997, 653);
|
||||
this.panelControl2.TabIndex = 0;
|
||||
//
|
||||
// layoutControl1
|
||||
|
|
@ -342,7 +342,7 @@ namespace MES.Form
|
|||
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(982, 640);
|
||||
this.layoutControl1.Size = new System.Drawing.Size(993, 649);
|
||||
this.layoutControl1.TabIndex = 6;
|
||||
this.layoutControl1.Text = "layoutControl1";
|
||||
//
|
||||
|
|
@ -351,7 +351,7 @@ namespace MES.Form
|
|||
this.xtraTabControl2.Location = new System.Drawing.Point(12, 132);
|
||||
this.xtraTabControl2.Name = "xtraTabControl2";
|
||||
this.xtraTabControl2.SelectedTabPage = this.xtraTabPage1;
|
||||
this.xtraTabControl2.Size = new System.Drawing.Size(958, 496);
|
||||
this.xtraTabControl2.Size = new System.Drawing.Size(969, 505);
|
||||
this.xtraTabControl2.TabIndex = 10;
|
||||
this.xtraTabControl2.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
|
||||
this.xtraTabPage1});
|
||||
|
|
@ -360,7 +360,7 @@ namespace MES.Form
|
|||
//
|
||||
this.xtraTabPage1.Controls.Add(this.gridControl1);
|
||||
this.xtraTabPage1.Name = "xtraTabPage1";
|
||||
this.xtraTabPage1.Size = new System.Drawing.Size(952, 467);
|
||||
this.xtraTabPage1.Size = new System.Drawing.Size(964, 479);
|
||||
this.xtraTabPage1.Text = "采购明细";
|
||||
//
|
||||
// gridControl1
|
||||
|
|
@ -378,7 +378,7 @@ namespace MES.Form
|
|||
this.repositoryItemSearchLookUpEditrequisitioncode,
|
||||
this.repositoryItemGridLookUpEditrequisitioncode,
|
||||
this.repositoryItemTextEditrequisitioncode});
|
||||
this.gridControl1.Size = new System.Drawing.Size(952, 467);
|
||||
this.gridControl1.Size = new System.Drawing.Size(964, 479);
|
||||
this.gridControl1.TabIndex = 1;
|
||||
this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
||||
this.gridView1});
|
||||
|
|
@ -390,19 +390,19 @@ namespace MES.Form
|
|||
this.toolStripMenuItemAdd,
|
||||
this.toolStripMenuItemDel});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(181, 70);
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(113, 48);
|
||||
//
|
||||
// toolStripMenuItemAdd
|
||||
//
|
||||
this.toolStripMenuItemAdd.Name = "toolStripMenuItemAdd";
|
||||
this.toolStripMenuItemAdd.Size = new System.Drawing.Size(180, 22);
|
||||
this.toolStripMenuItemAdd.Size = new System.Drawing.Size(112, 22);
|
||||
this.toolStripMenuItemAdd.Text = "新增行";
|
||||
this.toolStripMenuItemAdd.Click += new System.EventHandler(this.toolStripMenuItemAdd_Click);
|
||||
//
|
||||
// toolStripMenuItemDel
|
||||
//
|
||||
this.toolStripMenuItemDel.Name = "toolStripMenuItemDel";
|
||||
this.toolStripMenuItemDel.Size = new System.Drawing.Size(180, 22);
|
||||
this.toolStripMenuItemDel.Size = new System.Drawing.Size(112, 22);
|
||||
this.toolStripMenuItemDel.Text = "删除行";
|
||||
this.toolStripMenuItemDel.Click += new System.EventHandler(this.toolStripMenuItemDel_Click);
|
||||
//
|
||||
|
|
@ -713,15 +713,15 @@ namespace MES.Form
|
|||
//
|
||||
this.txtid.Location = new System.Drawing.Point(75, 12);
|
||||
this.txtid.Name = "txtid";
|
||||
this.txtid.Size = new System.Drawing.Size(414, 20);
|
||||
this.txtid.Size = new System.Drawing.Size(419, 20);
|
||||
this.txtid.StyleController = this.layoutControl1;
|
||||
this.txtid.TabIndex = 1;
|
||||
//
|
||||
// txtbuyercode
|
||||
//
|
||||
this.txtbuyercode.Location = new System.Drawing.Point(556, 12);
|
||||
this.txtbuyercode.Location = new System.Drawing.Point(561, 12);
|
||||
this.txtbuyercode.Name = "txtbuyercode";
|
||||
this.txtbuyercode.Size = new System.Drawing.Size(414, 20);
|
||||
this.txtbuyercode.Size = new System.Drawing.Size(420, 20);
|
||||
this.txtbuyercode.StyleController = this.layoutControl1;
|
||||
this.txtbuyercode.TabIndex = 2;
|
||||
//
|
||||
|
|
@ -737,7 +737,7 @@ namespace MES.Form
|
|||
new DevExpress.XtraEditors.Controls.EditorButton()});
|
||||
this.txtbuyerdate.Properties.DisplayFormat.FormatString = "G";
|
||||
this.txtbuyerdate.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
|
||||
this.txtbuyerdate.Size = new System.Drawing.Size(414, 20);
|
||||
this.txtbuyerdate.Size = new System.Drawing.Size(419, 20);
|
||||
this.txtbuyerdate.StyleController = this.layoutControl1;
|
||||
this.txtbuyerdate.TabIndex = 3;
|
||||
//
|
||||
|
|
@ -752,15 +752,15 @@ namespace MES.Form
|
|||
this.txtsupplierid.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains;
|
||||
this.txtsupplierid.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;
|
||||
this.txtsupplierid.Properties.ValueMember = "ID";
|
||||
this.txtsupplierid.Size = new System.Drawing.Size(414, 20);
|
||||
this.txtsupplierid.Size = new System.Drawing.Size(419, 20);
|
||||
this.txtsupplierid.StyleController = this.layoutControl1;
|
||||
this.txtsupplierid.TabIndex = 4;
|
||||
//
|
||||
// txtsuppliercode
|
||||
//
|
||||
this.txtsuppliercode.Location = new System.Drawing.Point(556, 60);
|
||||
this.txtsuppliercode.Location = new System.Drawing.Point(561, 60);
|
||||
this.txtsuppliercode.Name = "txtsuppliercode";
|
||||
this.txtsuppliercode.Size = new System.Drawing.Size(414, 20);
|
||||
this.txtsuppliercode.Size = new System.Drawing.Size(420, 20);
|
||||
this.txtsuppliercode.StyleController = this.layoutControl1;
|
||||
this.txtsuppliercode.TabIndex = 5;
|
||||
//
|
||||
|
|
@ -768,7 +768,7 @@ namespace MES.Form
|
|||
//
|
||||
this.txtdeliverdate.EditValue = null;
|
||||
this.txtdeliverdate.ImeMode = System.Windows.Forms.ImeMode.Off;
|
||||
this.txtdeliverdate.Location = new System.Drawing.Point(556, 36);
|
||||
this.txtdeliverdate.Location = new System.Drawing.Point(561, 36);
|
||||
this.txtdeliverdate.Name = "txtdeliverdate";
|
||||
this.txtdeliverdate.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
|
|
@ -776,7 +776,7 @@ namespace MES.Form
|
|||
new DevExpress.XtraEditors.Controls.EditorButton()});
|
||||
this.txtdeliverdate.Properties.DisplayFormat.FormatString = "G";
|
||||
this.txtdeliverdate.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
|
||||
this.txtdeliverdate.Size = new System.Drawing.Size(414, 20);
|
||||
this.txtdeliverdate.Size = new System.Drawing.Size(420, 20);
|
||||
this.txtdeliverdate.StyleController = this.layoutControl1;
|
||||
this.txtdeliverdate.TabIndex = 6;
|
||||
//
|
||||
|
|
@ -791,15 +791,15 @@ namespace MES.Form
|
|||
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(414, 20);
|
||||
this.txtcreatorId.Size = new System.Drawing.Size(419, 20);
|
||||
this.txtcreatorId.StyleController = this.layoutControl1;
|
||||
this.txtcreatorId.TabIndex = 7;
|
||||
//
|
||||
// txttotalprice
|
||||
//
|
||||
this.txttotalprice.Location = new System.Drawing.Point(556, 84);
|
||||
this.txttotalprice.Location = new System.Drawing.Point(561, 84);
|
||||
this.txttotalprice.Name = "txttotalprice";
|
||||
this.txttotalprice.Size = new System.Drawing.Size(414, 20);
|
||||
this.txttotalprice.Size = new System.Drawing.Size(420, 20);
|
||||
this.txttotalprice.StyleController = this.layoutControl1;
|
||||
this.txttotalprice.TabIndex = 8;
|
||||
//
|
||||
|
|
@ -807,7 +807,7 @@ namespace MES.Form
|
|||
//
|
||||
this.txtremark.Location = new System.Drawing.Point(75, 108);
|
||||
this.txtremark.Name = "txtremark";
|
||||
this.txtremark.Size = new System.Drawing.Size(895, 20);
|
||||
this.txtremark.Size = new System.Drawing.Size(906, 20);
|
||||
this.txtremark.StyleController = this.layoutControl1;
|
||||
this.txtremark.TabIndex = 9;
|
||||
//
|
||||
|
|
@ -827,7 +827,7 @@ namespace MES.Form
|
|||
this.layoutControlItem5,
|
||||
this.layoutControlItem8});
|
||||
this.layoutControlGroup1.Name = "layoutControlGroup1";
|
||||
this.layoutControlGroup1.Size = new System.Drawing.Size(982, 640);
|
||||
this.layoutControlGroup1.Size = new System.Drawing.Size(993, 649);
|
||||
this.layoutControlGroup1.TextVisible = false;
|
||||
//
|
||||
// layoutControlItem1
|
||||
|
|
@ -836,7 +836,7 @@ namespace MES.Form
|
|||
this.layoutControlItem1.CustomizationFormText = "id";
|
||||
this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
|
||||
this.layoutControlItem1.Name = "layoutControlItem1";
|
||||
this.layoutControlItem1.Size = new System.Drawing.Size(481, 24);
|
||||
this.layoutControlItem1.Size = new System.Drawing.Size(486, 24);
|
||||
this.layoutControlItem1.Text = "id";
|
||||
this.layoutControlItem1.TextSize = new System.Drawing.Size(60, 14);
|
||||
//
|
||||
|
|
@ -846,7 +846,7 @@ namespace MES.Form
|
|||
this.layoutControlItem3.CustomizationFormText = "采购日期";
|
||||
this.layoutControlItem3.Location = new System.Drawing.Point(0, 24);
|
||||
this.layoutControlItem3.Name = "layoutControlItem3";
|
||||
this.layoutControlItem3.Size = new System.Drawing.Size(481, 24);
|
||||
this.layoutControlItem3.Size = new System.Drawing.Size(486, 24);
|
||||
this.layoutControlItem3.Text = "采购日期";
|
||||
this.layoutControlItem3.TextSize = new System.Drawing.Size(60, 14);
|
||||
//
|
||||
|
|
@ -856,7 +856,7 @@ namespace MES.Form
|
|||
this.layoutControlItem4.CustomizationFormText = "供应商";
|
||||
this.layoutControlItem4.Location = new System.Drawing.Point(0, 48);
|
||||
this.layoutControlItem4.Name = "layoutControlItem4";
|
||||
this.layoutControlItem4.Size = new System.Drawing.Size(481, 24);
|
||||
this.layoutControlItem4.Size = new System.Drawing.Size(486, 24);
|
||||
this.layoutControlItem4.Text = "供应商";
|
||||
this.layoutControlItem4.TextSize = new System.Drawing.Size(60, 14);
|
||||
//
|
||||
|
|
@ -866,7 +866,7 @@ namespace MES.Form
|
|||
this.layoutControlItem7.CustomizationFormText = "制单人";
|
||||
this.layoutControlItem7.Location = new System.Drawing.Point(0, 72);
|
||||
this.layoutControlItem7.Name = "layoutControlItem7";
|
||||
this.layoutControlItem7.Size = new System.Drawing.Size(481, 24);
|
||||
this.layoutControlItem7.Size = new System.Drawing.Size(486, 24);
|
||||
this.layoutControlItem7.Text = "制单人";
|
||||
this.layoutControlItem7.TextSize = new System.Drawing.Size(60, 14);
|
||||
//
|
||||
|
|
@ -876,7 +876,7 @@ namespace MES.Form
|
|||
this.layoutControlItem9.CustomizationFormText = "备注";
|
||||
this.layoutControlItem9.Location = new System.Drawing.Point(0, 96);
|
||||
this.layoutControlItem9.Name = "layoutControlItem9";
|
||||
this.layoutControlItem9.Size = new System.Drawing.Size(962, 24);
|
||||
this.layoutControlItem9.Size = new System.Drawing.Size(973, 24);
|
||||
this.layoutControlItem9.Text = "备注";
|
||||
this.layoutControlItem9.TextSize = new System.Drawing.Size(60, 14);
|
||||
//
|
||||
|
|
@ -885,7 +885,7 @@ namespace MES.Form
|
|||
this.layoutControlItem10.Control = this.xtraTabControl2;
|
||||
this.layoutControlItem10.Location = new System.Drawing.Point(0, 120);
|
||||
this.layoutControlItem10.Name = "layoutControlItem10";
|
||||
this.layoutControlItem10.Size = new System.Drawing.Size(962, 500);
|
||||
this.layoutControlItem10.Size = new System.Drawing.Size(973, 509);
|
||||
this.layoutControlItem10.TextSize = new System.Drawing.Size(0, 0);
|
||||
this.layoutControlItem10.TextVisible = false;
|
||||
//
|
||||
|
|
@ -893,9 +893,9 @@ namespace MES.Form
|
|||
//
|
||||
this.layoutControlItem2.Control = this.txtbuyercode;
|
||||
this.layoutControlItem2.CustomizationFormText = "采购单号";
|
||||
this.layoutControlItem2.Location = new System.Drawing.Point(481, 0);
|
||||
this.layoutControlItem2.Location = new System.Drawing.Point(486, 0);
|
||||
this.layoutControlItem2.Name = "layoutControlItem2";
|
||||
this.layoutControlItem2.Size = new System.Drawing.Size(481, 24);
|
||||
this.layoutControlItem2.Size = new System.Drawing.Size(487, 24);
|
||||
this.layoutControlItem2.Text = "采购单号";
|
||||
this.layoutControlItem2.TextSize = new System.Drawing.Size(60, 14);
|
||||
//
|
||||
|
|
@ -903,9 +903,9 @@ namespace MES.Form
|
|||
//
|
||||
this.layoutControlItem6.Control = this.txtdeliverdate;
|
||||
this.layoutControlItem6.CustomizationFormText = "完货日期";
|
||||
this.layoutControlItem6.Location = new System.Drawing.Point(481, 24);
|
||||
this.layoutControlItem6.Location = new System.Drawing.Point(486, 24);
|
||||
this.layoutControlItem6.Name = "layoutControlItem6";
|
||||
this.layoutControlItem6.Size = new System.Drawing.Size(481, 24);
|
||||
this.layoutControlItem6.Size = new System.Drawing.Size(487, 24);
|
||||
this.layoutControlItem6.Text = "完货日期";
|
||||
this.layoutControlItem6.TextSize = new System.Drawing.Size(60, 14);
|
||||
//
|
||||
|
|
@ -913,9 +913,9 @@ namespace MES.Form
|
|||
//
|
||||
this.layoutControlItem5.Control = this.txtsuppliercode;
|
||||
this.layoutControlItem5.CustomizationFormText = "供应商编码";
|
||||
this.layoutControlItem5.Location = new System.Drawing.Point(481, 48);
|
||||
this.layoutControlItem5.Location = new System.Drawing.Point(486, 48);
|
||||
this.layoutControlItem5.Name = "layoutControlItem5";
|
||||
this.layoutControlItem5.Size = new System.Drawing.Size(481, 24);
|
||||
this.layoutControlItem5.Size = new System.Drawing.Size(487, 24);
|
||||
this.layoutControlItem5.Text = "供应商编码";
|
||||
this.layoutControlItem5.TextSize = new System.Drawing.Size(60, 14);
|
||||
//
|
||||
|
|
@ -923,9 +923,9 @@ namespace MES.Form
|
|||
//
|
||||
this.layoutControlItem8.Control = this.txttotalprice;
|
||||
this.layoutControlItem8.CustomizationFormText = "金额";
|
||||
this.layoutControlItem8.Location = new System.Drawing.Point(481, 72);
|
||||
this.layoutControlItem8.Location = new System.Drawing.Point(486, 72);
|
||||
this.layoutControlItem8.Name = "layoutControlItem8";
|
||||
this.layoutControlItem8.Size = new System.Drawing.Size(481, 24);
|
||||
this.layoutControlItem8.Size = new System.Drawing.Size(487, 24);
|
||||
this.layoutControlItem8.Text = "金额";
|
||||
this.layoutControlItem8.TextSize = new System.Drawing.Size(60, 14);
|
||||
//
|
||||
|
|
@ -933,7 +933,7 @@ namespace MES.Form
|
|||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(992, 707);
|
||||
this.ClientSize = new System.Drawing.Size(1002, 713);
|
||||
this.Controls.Add(this.xtraTabControl1);
|
||||
this.Name = "Frmbuyer";
|
||||
this.Text = "采购单";
|
||||
|
|
|
|||
|
|
@ -86,14 +86,14 @@ namespace MES.Form
|
|||
this.txtremark = new DevExpress.XtraEditors.TextEdit();
|
||||
this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
|
||||
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtsupplierid)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcreatorId)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit();
|
||||
|
|
@ -127,14 +127,14 @@ namespace MES.Form
|
|||
((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// gridColumn1
|
||||
|
|
@ -244,7 +244,7 @@ namespace MES.Form
|
|||
//
|
||||
this.tabDataList.Controls.Add(this.grdList);
|
||||
this.tabDataList.Name = "tabDataList";
|
||||
this.tabDataList.Size = new System.Drawing.Size(1294, 737);
|
||||
this.tabDataList.Size = new System.Drawing.Size(1295, 740);
|
||||
this.tabDataList.Text = "数据列表";
|
||||
//
|
||||
// grdList
|
||||
|
|
@ -253,7 +253,7 @@ namespace MES.Form
|
|||
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.Size = new System.Drawing.Size(1295, 740);
|
||||
this.grdList.TabIndex = 0;
|
||||
this.grdList.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
||||
this.grdListView});
|
||||
|
|
@ -278,7 +278,7 @@ namespace MES.Form
|
|||
//
|
||||
this.tabDataDetail.Controls.Add(this.panelControl2);
|
||||
this.tabDataDetail.Name = "tabDataDetail";
|
||||
this.tabDataDetail.Size = new System.Drawing.Size(1294, 737);
|
||||
this.tabDataDetail.Size = new System.Drawing.Size(1295, 740);
|
||||
this.tabDataDetail.Text = "数据编辑";
|
||||
//
|
||||
// panelControl2
|
||||
|
|
@ -287,7 +287,7 @@ namespace MES.Form
|
|||
this.panelControl2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panelControl2.Location = new System.Drawing.Point(0, 0);
|
||||
this.panelControl2.Name = "panelControl2";
|
||||
this.panelControl2.Size = new System.Drawing.Size(1294, 737);
|
||||
this.panelControl2.Size = new System.Drawing.Size(1295, 740);
|
||||
this.panelControl2.TabIndex = 0;
|
||||
//
|
||||
// layoutControl1
|
||||
|
|
@ -305,7 +305,7 @@ namespace MES.Form
|
|||
this.layoutControl1.Location = new System.Drawing.Point(2, 2);
|
||||
this.layoutControl1.Name = "layoutControl1";
|
||||
this.layoutControl1.Root = this.layoutControlGroup1;
|
||||
this.layoutControl1.Size = new System.Drawing.Size(1290, 733);
|
||||
this.layoutControl1.Size = new System.Drawing.Size(1291, 736);
|
||||
this.layoutControl1.TabIndex = 6;
|
||||
this.layoutControl1.Text = "layoutControl1";
|
||||
//
|
||||
|
|
@ -314,7 +314,7 @@ namespace MES.Form
|
|||
this.xtraTabControl2.Location = new System.Drawing.Point(12, 132);
|
||||
this.xtraTabControl2.Name = "xtraTabControl2";
|
||||
this.xtraTabControl2.SelectedTabPage = this.xtraTabPage1;
|
||||
this.xtraTabControl2.Size = new System.Drawing.Size(1266, 589);
|
||||
this.xtraTabControl2.Size = new System.Drawing.Size(1267, 592);
|
||||
this.xtraTabControl2.TabIndex = 9;
|
||||
this.xtraTabControl2.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
|
||||
this.xtraTabPage1});
|
||||
|
|
@ -323,7 +323,7 @@ namespace MES.Form
|
|||
//
|
||||
this.xtraTabPage1.Controls.Add(this.gridControl1);
|
||||
this.xtraTabPage1.Name = "xtraTabPage1";
|
||||
this.xtraTabPage1.Size = new System.Drawing.Size(1260, 560);
|
||||
this.xtraTabPage1.Size = new System.Drawing.Size(1262, 566);
|
||||
this.xtraTabPage1.Text = "明细";
|
||||
//
|
||||
// gridControl1
|
||||
|
|
@ -338,7 +338,7 @@ namespace MES.Form
|
|||
this.repositoryItemLookUpEditunit,
|
||||
this.repositoryItemLookUpEditwarehouse,
|
||||
this.repositoryItemTextEditbuyerdetailcode});
|
||||
this.gridControl1.Size = new System.Drawing.Size(1260, 560);
|
||||
this.gridControl1.Size = new System.Drawing.Size(1262, 566);
|
||||
this.gridControl1.TabIndex = 1;
|
||||
this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
||||
this.gridView1});
|
||||
|
|
@ -349,19 +349,19 @@ namespace MES.Form
|
|||
this.toolStripMenuItemAdd,
|
||||
this.toolStripMenuItemDel});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(113, 48);
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(181, 70);
|
||||
//
|
||||
// toolStripMenuItemAdd
|
||||
//
|
||||
this.toolStripMenuItemAdd.Name = "toolStripMenuItemAdd";
|
||||
this.toolStripMenuItemAdd.Size = new System.Drawing.Size(112, 22);
|
||||
this.toolStripMenuItemAdd.Size = new System.Drawing.Size(180, 22);
|
||||
this.toolStripMenuItemAdd.Text = "新增行";
|
||||
this.toolStripMenuItemAdd.Click += new System.EventHandler(this.toolStripMenuItemAdd_Click);
|
||||
//
|
||||
// toolStripMenuItemDel
|
||||
//
|
||||
this.toolStripMenuItemDel.Name = "toolStripMenuItemDel";
|
||||
this.toolStripMenuItemDel.Size = new System.Drawing.Size(112, 22);
|
||||
this.toolStripMenuItemDel.Size = new System.Drawing.Size(180, 22);
|
||||
this.toolStripMenuItemDel.Text = "删除行";
|
||||
this.toolStripMenuItemDel.Click += new System.EventHandler(this.toolStripMenuItemDel_Click);
|
||||
//
|
||||
|
|
@ -579,7 +579,7 @@ namespace MES.Form
|
|||
new DevExpress.XtraEditors.Controls.EditorButton()});
|
||||
this.txtreturndate.Properties.DisplayFormat.FormatString = "G";
|
||||
this.txtreturndate.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
|
||||
this.txtreturndate.Size = new System.Drawing.Size(556, 20);
|
||||
this.txtreturndate.Size = new System.Drawing.Size(557, 20);
|
||||
this.txtreturndate.StyleController = this.layoutControl1;
|
||||
this.txtreturndate.TabIndex = 2;
|
||||
//
|
||||
|
|
@ -587,7 +587,7 @@ namespace MES.Form
|
|||
//
|
||||
this.txtsuppliercode.Location = new System.Drawing.Point(722, 36);
|
||||
this.txtsuppliercode.Name = "txtsuppliercode";
|
||||
this.txtsuppliercode.Size = new System.Drawing.Size(556, 20);
|
||||
this.txtsuppliercode.Size = new System.Drawing.Size(557, 20);
|
||||
this.txtsuppliercode.StyleController = this.layoutControl1;
|
||||
this.txtsuppliercode.TabIndex = 3;
|
||||
//
|
||||
|
|
@ -626,7 +626,7 @@ namespace MES.Form
|
|||
//
|
||||
this.txtreturnbuyercode.Location = new System.Drawing.Point(722, 12);
|
||||
this.txtreturnbuyercode.Name = "txtreturnbuyercode";
|
||||
this.txtreturnbuyercode.Size = new System.Drawing.Size(556, 20);
|
||||
this.txtreturnbuyercode.Size = new System.Drawing.Size(557, 20);
|
||||
this.txtreturnbuyercode.StyleController = this.layoutControl1;
|
||||
this.txtreturnbuyercode.TabIndex = 6;
|
||||
//
|
||||
|
|
@ -634,7 +634,7 @@ namespace MES.Form
|
|||
//
|
||||
this.txttotalprice.Location = new System.Drawing.Point(87, 84);
|
||||
this.txttotalprice.Name = "txttotalprice";
|
||||
this.txttotalprice.Size = new System.Drawing.Size(1191, 20);
|
||||
this.txttotalprice.Size = new System.Drawing.Size(1192, 20);
|
||||
this.txttotalprice.StyleController = this.layoutControl1;
|
||||
this.txttotalprice.TabIndex = 7;
|
||||
//
|
||||
|
|
@ -642,7 +642,7 @@ namespace MES.Form
|
|||
//
|
||||
this.txtremark.Location = new System.Drawing.Point(87, 108);
|
||||
this.txtremark.Name = "txtremark";
|
||||
this.txtremark.Size = new System.Drawing.Size(1191, 20);
|
||||
this.txtremark.Size = new System.Drawing.Size(1192, 20);
|
||||
this.txtremark.StyleController = this.layoutControl1;
|
||||
this.txtremark.TabIndex = 8;
|
||||
//
|
||||
|
|
@ -661,7 +661,7 @@ namespace MES.Form
|
|||
this.layoutControlItem4,
|
||||
this.layoutControlItem3});
|
||||
this.layoutControlGroup1.Name = "layoutControlGroup1";
|
||||
this.layoutControlGroup1.Size = new System.Drawing.Size(1290, 733);
|
||||
this.layoutControlGroup1.Size = new System.Drawing.Size(1291, 736);
|
||||
this.layoutControlGroup1.TextVisible = false;
|
||||
//
|
||||
// layoutControlItem1
|
||||
|
|
@ -674,16 +674,6 @@ namespace MES.Form
|
|||
this.layoutControlItem1.Text = "id";
|
||||
this.layoutControlItem1.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem3
|
||||
//
|
||||
this.layoutControlItem3.Control = this.txtsuppliercode;
|
||||
this.layoutControlItem3.CustomizationFormText = "供应商编号";
|
||||
this.layoutControlItem3.Location = new System.Drawing.Point(635, 24);
|
||||
this.layoutControlItem3.Name = "layoutControlItem3";
|
||||
this.layoutControlItem3.Size = new System.Drawing.Size(635, 24);
|
||||
this.layoutControlItem3.Text = "供应商编号";
|
||||
this.layoutControlItem3.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem5
|
||||
//
|
||||
this.layoutControlItem5.Control = this.txtcreatorId;
|
||||
|
|
@ -700,7 +690,7 @@ namespace MES.Form
|
|||
this.layoutControlItem7.CustomizationFormText = "金额";
|
||||
this.layoutControlItem7.Location = new System.Drawing.Point(0, 72);
|
||||
this.layoutControlItem7.Name = "layoutControlItem7";
|
||||
this.layoutControlItem7.Size = new System.Drawing.Size(1270, 24);
|
||||
this.layoutControlItem7.Size = new System.Drawing.Size(1271, 24);
|
||||
this.layoutControlItem7.Text = "金额";
|
||||
this.layoutControlItem7.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
|
|
@ -710,7 +700,7 @@ namespace MES.Form
|
|||
this.layoutControlItem8.CustomizationFormText = "备注";
|
||||
this.layoutControlItem8.Location = new System.Drawing.Point(0, 96);
|
||||
this.layoutControlItem8.Name = "layoutControlItem8";
|
||||
this.layoutControlItem8.Size = new System.Drawing.Size(1270, 24);
|
||||
this.layoutControlItem8.Size = new System.Drawing.Size(1271, 24);
|
||||
this.layoutControlItem8.Text = "备注";
|
||||
this.layoutControlItem8.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
|
|
@ -720,10 +710,29 @@ namespace MES.Form
|
|||
this.layoutControlItem6.CustomizationFormText = "采购退货单号";
|
||||
this.layoutControlItem6.Location = new System.Drawing.Point(635, 0);
|
||||
this.layoutControlItem6.Name = "layoutControlItem6";
|
||||
this.layoutControlItem6.Size = new System.Drawing.Size(635, 24);
|
||||
this.layoutControlItem6.Size = new System.Drawing.Size(636, 24);
|
||||
this.layoutControlItem6.Text = "采购退货单号";
|
||||
this.layoutControlItem6.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem2
|
||||
//
|
||||
this.layoutControlItem2.Control = this.txtreturndate;
|
||||
this.layoutControlItem2.CustomizationFormText = "退货日期";
|
||||
this.layoutControlItem2.Location = new System.Drawing.Point(635, 48);
|
||||
this.layoutControlItem2.Name = "layoutControlItem2";
|
||||
this.layoutControlItem2.Size = new System.Drawing.Size(636, 24);
|
||||
this.layoutControlItem2.Text = "退货日期";
|
||||
this.layoutControlItem2.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem9
|
||||
//
|
||||
this.layoutControlItem9.Control = this.xtraTabControl2;
|
||||
this.layoutControlItem9.Location = new System.Drawing.Point(0, 120);
|
||||
this.layoutControlItem9.Name = "layoutControlItem9";
|
||||
this.layoutControlItem9.Size = new System.Drawing.Size(1271, 596);
|
||||
this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0);
|
||||
this.layoutControlItem9.TextVisible = false;
|
||||
//
|
||||
// layoutControlItem4
|
||||
//
|
||||
this.layoutControlItem4.Control = this.txtsupplierid;
|
||||
|
|
@ -734,24 +743,15 @@ namespace MES.Form
|
|||
this.layoutControlItem4.Text = "供应商名称";
|
||||
this.layoutControlItem4.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem2
|
||||
// layoutControlItem3
|
||||
//
|
||||
this.layoutControlItem2.Control = this.txtreturndate;
|
||||
this.layoutControlItem2.CustomizationFormText = "退货日期";
|
||||
this.layoutControlItem2.Location = new System.Drawing.Point(635, 48);
|
||||
this.layoutControlItem2.Name = "layoutControlItem2";
|
||||
this.layoutControlItem2.Size = new System.Drawing.Size(635, 24);
|
||||
this.layoutControlItem2.Text = "退货日期";
|
||||
this.layoutControlItem2.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// layoutControlItem9
|
||||
//
|
||||
this.layoutControlItem9.Control = this.xtraTabControl2;
|
||||
this.layoutControlItem9.Location = new System.Drawing.Point(0, 120);
|
||||
this.layoutControlItem9.Name = "layoutControlItem9";
|
||||
this.layoutControlItem9.Size = new System.Drawing.Size(1270, 593);
|
||||
this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0);
|
||||
this.layoutControlItem9.TextVisible = false;
|
||||
this.layoutControlItem3.Control = this.txtsuppliercode;
|
||||
this.layoutControlItem3.CustomizationFormText = "供应商编号";
|
||||
this.layoutControlItem3.Location = new System.Drawing.Point(635, 24);
|
||||
this.layoutControlItem3.Name = "layoutControlItem3";
|
||||
this.layoutControlItem3.Size = new System.Drawing.Size(636, 24);
|
||||
this.layoutControlItem3.Text = "供应商编号";
|
||||
this.layoutControlItem3.TextSize = new System.Drawing.Size(72, 14);
|
||||
//
|
||||
// Frmbuyerreturn
|
||||
//
|
||||
|
|
@ -796,14 +796,14 @@ namespace MES.Form
|
|||
((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -358,10 +358,18 @@ namespace MES.Form
|
|||
|
||||
private void treeList1_ValidateNode(object sender, ValidateNodeEventArgs e)
|
||||
{
|
||||
treeList1.FocusedNode["money"] = decimal.Multiply(
|
||||
treeList1.FocusedNode["unitprice"].ToDecimal(0),
|
||||
treeList1.FocusedNode["unitusenumber"].ToDecimal(0));
|
||||
|
||||
if (e.Node.ParentNode != null)
|
||||
{
|
||||
e.Node["money"] = decimal.Multiply(
|
||||
e.Node["unitprice"].ToDecimal(0),
|
||||
e.Node["unitusenumber"].ToDecimal(0))* e.Node.ParentNode["unitusenumber"].ToDecimal(1);
|
||||
}
|
||||
else
|
||||
{
|
||||
e.Node["money"] = decimal.Multiply(
|
||||
e.Node["unitprice"].ToDecimal(0),
|
||||
e.Node["unitusenumber"].ToDecimal(0));
|
||||
}
|
||||
treeList1.BestFitColumns();
|
||||
decimal totalprice = 0;
|
||||
foreach (TreeListNode node in treeList1.Nodes)
|
||||
|
|
|
|||
|
|
@ -87,6 +87,7 @@ namespace MES.Form
|
|||
this.treeListColumn14 = new DevExpress.XtraTreeList.Columns.TreeListColumn();
|
||||
this.treeListColumn15 = new DevExpress.XtraTreeList.Columns.TreeListColumn();
|
||||
this.treeListColumn16 = new DevExpress.XtraTreeList.Columns.TreeListColumn();
|
||||
this.treeListColumn6 = new DevExpress.XtraTreeList.Columns.TreeListColumn();
|
||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.toolStripMenuItemAdd = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItemAddSon = new System.Windows.Forms.ToolStripMenuItem();
|
||||
|
|
@ -120,7 +121,6 @@ namespace MES.Form
|
|||
this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem16 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.treeListColumn6 = new DevExpress.XtraTreeList.Columns.TreeListColumn();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomerid)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtproductid)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtunit)).BeginInit();
|
||||
|
|
@ -328,7 +328,7 @@ namespace MES.Form
|
|||
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(1027, 710);
|
||||
this.xtraTabControl1.Size = new System.Drawing.Size(1037, 716);
|
||||
this.xtraTabControl1.TabIndex = 1;
|
||||
this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
|
||||
this.tabDataList,
|
||||
|
|
@ -338,7 +338,7 @@ namespace MES.Form
|
|||
//
|
||||
this.tabDataList.Controls.Add(this.grdList);
|
||||
this.tabDataList.Name = "tabDataList";
|
||||
this.tabDataList.Size = new System.Drawing.Size(1021, 681);
|
||||
this.tabDataList.Size = new System.Drawing.Size(1032, 690);
|
||||
this.tabDataList.Text = "数据列表";
|
||||
//
|
||||
// grdList
|
||||
|
|
@ -350,7 +350,7 @@ namespace MES.Form
|
|||
this.grdList.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
|
||||
this.repositoryItemtxtcreatorId,
|
||||
this.repositoryItemtxteditorId});
|
||||
this.grdList.Size = new System.Drawing.Size(1021, 681);
|
||||
this.grdList.Size = new System.Drawing.Size(1032, 690);
|
||||
this.grdList.TabIndex = 0;
|
||||
this.grdList.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
||||
this.grdListView});
|
||||
|
|
@ -440,7 +440,7 @@ namespace MES.Form
|
|||
//
|
||||
this.tabDataDetail.Controls.Add(this.panelControl2);
|
||||
this.tabDataDetail.Name = "tabDataDetail";
|
||||
this.tabDataDetail.Size = new System.Drawing.Size(1021, 681);
|
||||
this.tabDataDetail.Size = new System.Drawing.Size(1032, 690);
|
||||
this.tabDataDetail.Text = "数据编辑";
|
||||
//
|
||||
// panelControl2
|
||||
|
|
@ -449,7 +449,7 @@ namespace MES.Form
|
|||
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(1021, 681);
|
||||
this.panelControl2.Size = new System.Drawing.Size(1032, 690);
|
||||
this.panelControl2.TabIndex = 0;
|
||||
//
|
||||
// layoutControl1
|
||||
|
|
@ -475,14 +475,14 @@ namespace MES.Form
|
|||
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(1017, 677);
|
||||
this.layoutControl1.Size = new System.Drawing.Size(1028, 686);
|
||||
this.layoutControl1.TabIndex = 6;
|
||||
this.layoutControl1.Text = "layoutControl1";
|
||||
//
|
||||
// txteditTime
|
||||
//
|
||||
this.txteditTime.EditValue = null;
|
||||
this.txteditTime.Location = new System.Drawing.Point(562, 156);
|
||||
this.txteditTime.Location = new System.Drawing.Point(567, 156);
|
||||
this.txteditTime.Name = "txteditTime";
|
||||
this.txteditTime.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
|
|
@ -492,14 +492,14 @@ namespace MES.Form
|
|||
this.txteditTime.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
|
||||
this.txteditTime.Properties.EditFormat.FormatString = "G";
|
||||
this.txteditTime.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
|
||||
this.txteditTime.Size = new System.Drawing.Size(443, 20);
|
||||
this.txteditTime.Size = new System.Drawing.Size(449, 20);
|
||||
this.txteditTime.StyleController = this.layoutControl1;
|
||||
this.txteditTime.TabIndex = 1;
|
||||
//
|
||||
// txtcreateTime
|
||||
//
|
||||
this.txtcreateTime.EditValue = null;
|
||||
this.txtcreateTime.Location = new System.Drawing.Point(562, 132);
|
||||
this.txtcreateTime.Location = new System.Drawing.Point(567, 132);
|
||||
this.txtcreateTime.Name = "txtcreateTime";
|
||||
this.txtcreateTime.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
|
|
@ -509,7 +509,7 @@ namespace MES.Form
|
|||
this.txtcreateTime.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
|
||||
this.txtcreateTime.Properties.EditFormat.FormatString = "G";
|
||||
this.txtcreateTime.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
|
||||
this.txtcreateTime.Size = new System.Drawing.Size(443, 20);
|
||||
this.txtcreateTime.Size = new System.Drawing.Size(449, 20);
|
||||
this.txtcreateTime.StyleController = this.layoutControl1;
|
||||
this.txtcreateTime.TabIndex = 1;
|
||||
//
|
||||
|
|
@ -521,7 +521,7 @@ namespace MES.Form
|
|||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.txteditorId.Properties.DisplayMember = "Name";
|
||||
this.txteditorId.Properties.ValueMember = "ID";
|
||||
this.txteditorId.Size = new System.Drawing.Size(442, 20);
|
||||
this.txteditorId.Size = new System.Drawing.Size(447, 20);
|
||||
this.txteditorId.StyleController = this.layoutControl1;
|
||||
this.txteditorId.TabIndex = 1;
|
||||
//
|
||||
|
|
@ -533,7 +533,7 @@ namespace MES.Form
|
|||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.txtcreatorId.Properties.DisplayMember = "Name";
|
||||
this.txtcreatorId.Properties.ValueMember = "ID";
|
||||
this.txtcreatorId.Size = new System.Drawing.Size(442, 20);
|
||||
this.txtcreatorId.Size = new System.Drawing.Size(447, 20);
|
||||
this.txtcreatorId.StyleController = this.layoutControl1;
|
||||
this.txtcreatorId.TabIndex = 1;
|
||||
//
|
||||
|
|
@ -541,7 +541,7 @@ namespace MES.Form
|
|||
//
|
||||
this.txtunitcost.Location = new System.Drawing.Point(64, 180);
|
||||
this.txtunitcost.Name = "txtunitcost";
|
||||
this.txtunitcost.Size = new System.Drawing.Size(442, 20);
|
||||
this.txtunitcost.Size = new System.Drawing.Size(447, 20);
|
||||
this.txtunitcost.StyleController = this.layoutControl1;
|
||||
this.txtunitcost.TabIndex = 1;
|
||||
//
|
||||
|
|
@ -550,7 +550,7 @@ namespace MES.Form
|
|||
this.xtraTabControl2.Location = new System.Drawing.Point(12, 204);
|
||||
this.xtraTabControl2.Name = "xtraTabControl2";
|
||||
this.xtraTabControl2.SelectedTabPage = this.xtraTabPage1;
|
||||
this.xtraTabControl2.Size = new System.Drawing.Size(993, 461);
|
||||
this.xtraTabControl2.Size = new System.Drawing.Size(1004, 470);
|
||||
this.xtraTabControl2.TabIndex = 12;
|
||||
this.xtraTabControl2.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
|
||||
this.xtraTabPage1});
|
||||
|
|
@ -559,7 +559,7 @@ namespace MES.Form
|
|||
//
|
||||
this.xtraTabPage1.Controls.Add(this.treeList1);
|
||||
this.xtraTabPage1.Name = "xtraTabPage1";
|
||||
this.xtraTabPage1.Size = new System.Drawing.Size(987, 432);
|
||||
this.xtraTabPage1.Size = new System.Drawing.Size(999, 444);
|
||||
this.xtraTabPage1.Text = "物料清单";
|
||||
//
|
||||
// treeList1
|
||||
|
|
@ -590,7 +590,7 @@ namespace MES.Form
|
|||
this.treeList1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
|
||||
this.repositoryItemLookUpEditmaterialtype,
|
||||
this.repositoryItemLookUpEditmaterialname});
|
||||
this.treeList1.Size = new System.Drawing.Size(987, 432);
|
||||
this.treeList1.Size = new System.Drawing.Size(999, 444);
|
||||
this.treeList1.TabIndex = 0;
|
||||
this.treeList1.ValidateNode += new DevExpress.XtraTreeList.ValidateNodeEventHandler(this.treeList1_ValidateNode);
|
||||
//
|
||||
|
|
@ -739,6 +739,14 @@ namespace MES.Form
|
|||
this.treeListColumn16.Visible = true;
|
||||
this.treeListColumn16.VisibleIndex = 9;
|
||||
//
|
||||
// treeListColumn6
|
||||
//
|
||||
this.treeListColumn6.Caption = "明细编号";
|
||||
this.treeListColumn6.FieldName = "productBOMdetailcode";
|
||||
this.treeListColumn6.Name = "treeListColumn6";
|
||||
this.treeListColumn6.Visible = true;
|
||||
this.treeListColumn6.VisibleIndex = 10;
|
||||
//
|
||||
// contextMenuStrip1
|
||||
//
|
||||
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
|
|
@ -746,26 +754,26 @@ namespace MES.Form
|
|||
this.toolStripMenuItemAddSon,
|
||||
this.toolStripMenuItemDel});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(125, 70);
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(181, 92);
|
||||
//
|
||||
// toolStripMenuItemAdd
|
||||
//
|
||||
this.toolStripMenuItemAdd.Name = "toolStripMenuItemAdd";
|
||||
this.toolStripMenuItemAdd.Size = new System.Drawing.Size(124, 22);
|
||||
this.toolStripMenuItemAdd.Size = new System.Drawing.Size(180, 22);
|
||||
this.toolStripMenuItemAdd.Text = "新增";
|
||||
this.toolStripMenuItemAdd.Click += new System.EventHandler(this.toolStripMenuItemAdd_Click);
|
||||
//
|
||||
// toolStripMenuItemAddSon
|
||||
//
|
||||
this.toolStripMenuItemAddSon.Name = "toolStripMenuItemAddSon";
|
||||
this.toolStripMenuItemAddSon.Size = new System.Drawing.Size(124, 22);
|
||||
this.toolStripMenuItemAddSon.Size = new System.Drawing.Size(180, 22);
|
||||
this.toolStripMenuItemAddSon.Text = "新增子级";
|
||||
this.toolStripMenuItemAddSon.Click += new System.EventHandler(this.toolStripMenuItemAddSon_Click);
|
||||
//
|
||||
// toolStripMenuItemDel
|
||||
//
|
||||
this.toolStripMenuItemDel.Name = "toolStripMenuItemDel";
|
||||
this.toolStripMenuItemDel.Size = new System.Drawing.Size(124, 22);
|
||||
this.toolStripMenuItemDel.Size = new System.Drawing.Size(180, 22);
|
||||
this.toolStripMenuItemDel.Text = "删除";
|
||||
this.toolStripMenuItemDel.Click += new System.EventHandler(this.toolStripMenuItemDel_Click);
|
||||
//
|
||||
|
|
@ -773,7 +781,7 @@ namespace MES.Form
|
|||
//
|
||||
this.txtid.Location = new System.Drawing.Point(64, 12);
|
||||
this.txtid.Name = "txtid";
|
||||
this.txtid.Size = new System.Drawing.Size(442, 20);
|
||||
this.txtid.Size = new System.Drawing.Size(447, 20);
|
||||
this.txtid.StyleController = this.layoutControl1;
|
||||
this.txtid.TabIndex = 1;
|
||||
//
|
||||
|
|
@ -788,24 +796,24 @@ namespace MES.Form
|
|||
this.txtcustomerid.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains;
|
||||
this.txtcustomerid.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;
|
||||
this.txtcustomerid.Properties.ValueMember = "ID";
|
||||
this.txtcustomerid.Size = new System.Drawing.Size(442, 20);
|
||||
this.txtcustomerid.Size = new System.Drawing.Size(447, 20);
|
||||
this.txtcustomerid.StyleController = this.layoutControl1;
|
||||
this.txtcustomerid.TabIndex = 2;
|
||||
this.txtcustomerid.EditValueChanged += new System.EventHandler(this.txtcustomerid_EditValueChanged);
|
||||
//
|
||||
// txtcustomercode
|
||||
//
|
||||
this.txtcustomercode.Location = new System.Drawing.Point(562, 36);
|
||||
this.txtcustomercode.Location = new System.Drawing.Point(567, 36);
|
||||
this.txtcustomercode.Name = "txtcustomercode";
|
||||
this.txtcustomercode.Size = new System.Drawing.Size(443, 20);
|
||||
this.txtcustomercode.Size = new System.Drawing.Size(449, 20);
|
||||
this.txtcustomercode.StyleController = this.layoutControl1;
|
||||
this.txtcustomercode.TabIndex = 3;
|
||||
//
|
||||
// txtproductcode
|
||||
//
|
||||
this.txtproductcode.Location = new System.Drawing.Point(562, 60);
|
||||
this.txtproductcode.Location = new System.Drawing.Point(567, 60);
|
||||
this.txtproductcode.Name = "txtproductcode";
|
||||
this.txtproductcode.Size = new System.Drawing.Size(443, 20);
|
||||
this.txtproductcode.Size = new System.Drawing.Size(449, 20);
|
||||
this.txtproductcode.StyleController = this.layoutControl1;
|
||||
this.txtproductcode.TabIndex = 4;
|
||||
//
|
||||
|
|
@ -820,7 +828,7 @@ namespace MES.Form
|
|||
this.txtproductid.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains;
|
||||
this.txtproductid.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;
|
||||
this.txtproductid.Properties.ValueMember = "ID";
|
||||
this.txtproductid.Size = new System.Drawing.Size(442, 20);
|
||||
this.txtproductid.Size = new System.Drawing.Size(447, 20);
|
||||
this.txtproductid.StyleController = this.layoutControl1;
|
||||
this.txtproductid.TabIndex = 5;
|
||||
this.txtproductid.EditValueChanged += new System.EventHandler(this.txtproductid_EditValueChanged);
|
||||
|
|
@ -829,14 +837,14 @@ namespace MES.Form
|
|||
//
|
||||
this.txtspec.Location = new System.Drawing.Point(64, 84);
|
||||
this.txtspec.Name = "txtspec";
|
||||
this.txtspec.Size = new System.Drawing.Size(442, 20);
|
||||
this.txtspec.Size = new System.Drawing.Size(447, 20);
|
||||
this.txtspec.StyleController = this.layoutControl1;
|
||||
this.txtspec.TabIndex = 6;
|
||||
//
|
||||
// txtunit
|
||||
//
|
||||
this.txtunit.EditValue = "";
|
||||
this.txtunit.Location = new System.Drawing.Point(562, 84);
|
||||
this.txtunit.Location = new System.Drawing.Point(567, 84);
|
||||
this.txtunit.Name = "txtunit";
|
||||
this.txtunit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
|
|
@ -844,7 +852,7 @@ namespace MES.Form
|
|||
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(443, 20);
|
||||
this.txtunit.Size = new System.Drawing.Size(449, 20);
|
||||
this.txtunit.StyleController = this.layoutControl1;
|
||||
this.txtunit.TabIndex = 7;
|
||||
//
|
||||
|
|
@ -859,31 +867,31 @@ namespace MES.Form
|
|||
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(442, 20);
|
||||
this.txtwarehouse.Size = new System.Drawing.Size(447, 20);
|
||||
this.txtwarehouse.StyleController = this.layoutControl1;
|
||||
this.txtwarehouse.TabIndex = 8;
|
||||
//
|
||||
// txtversion
|
||||
//
|
||||
this.txtversion.Location = new System.Drawing.Point(562, 108);
|
||||
this.txtversion.Location = new System.Drawing.Point(567, 108);
|
||||
this.txtversion.Name = "txtversion";
|
||||
this.txtversion.Size = new System.Drawing.Size(443, 20);
|
||||
this.txtversion.Size = new System.Drawing.Size(449, 20);
|
||||
this.txtversion.StyleController = this.layoutControl1;
|
||||
this.txtversion.TabIndex = 9;
|
||||
//
|
||||
// txtproductBOMcode
|
||||
//
|
||||
this.txtproductBOMcode.Location = new System.Drawing.Point(562, 12);
|
||||
this.txtproductBOMcode.Location = new System.Drawing.Point(567, 12);
|
||||
this.txtproductBOMcode.Name = "txtproductBOMcode";
|
||||
this.txtproductBOMcode.Size = new System.Drawing.Size(443, 20);
|
||||
this.txtproductBOMcode.Size = new System.Drawing.Size(449, 20);
|
||||
this.txtproductBOMcode.StyleController = this.layoutControl1;
|
||||
this.txtproductBOMcode.TabIndex = 10;
|
||||
//
|
||||
// txtremark
|
||||
//
|
||||
this.txtremark.Location = new System.Drawing.Point(562, 180);
|
||||
this.txtremark.Location = new System.Drawing.Point(567, 180);
|
||||
this.txtremark.Name = "txtremark";
|
||||
this.txtremark.Size = new System.Drawing.Size(443, 20);
|
||||
this.txtremark.Size = new System.Drawing.Size(449, 20);
|
||||
this.txtremark.StyleController = this.layoutControl1;
|
||||
this.txtremark.TabIndex = 11;
|
||||
//
|
||||
|
|
@ -910,7 +918,7 @@ namespace MES.Form
|
|||
this.layoutControlItem15,
|
||||
this.layoutControlItem16});
|
||||
this.layoutControlGroup1.Name = "layoutControlGroup1";
|
||||
this.layoutControlGroup1.Size = new System.Drawing.Size(1017, 677);
|
||||
this.layoutControlGroup1.Size = new System.Drawing.Size(1028, 686);
|
||||
this.layoutControlGroup1.TextVisible = false;
|
||||
//
|
||||
// layoutControlItem1
|
||||
|
|
@ -919,7 +927,7 @@ namespace MES.Form
|
|||
this.layoutControlItem1.CustomizationFormText = "id";
|
||||
this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
|
||||
this.layoutControlItem1.Name = "layoutControlItem1";
|
||||
this.layoutControlItem1.Size = new System.Drawing.Size(498, 24);
|
||||
this.layoutControlItem1.Size = new System.Drawing.Size(503, 24);
|
||||
this.layoutControlItem1.Text = "id";
|
||||
this.layoutControlItem1.TextSize = new System.Drawing.Size(49, 14);
|
||||
//
|
||||
|
|
@ -929,7 +937,7 @@ namespace MES.Form
|
|||
this.layoutControlItem2.CustomizationFormText = "客户";
|
||||
this.layoutControlItem2.Location = new System.Drawing.Point(0, 24);
|
||||
this.layoutControlItem2.Name = "layoutControlItem2";
|
||||
this.layoutControlItem2.Size = new System.Drawing.Size(498, 24);
|
||||
this.layoutControlItem2.Size = new System.Drawing.Size(503, 24);
|
||||
this.layoutControlItem2.Text = "客户";
|
||||
this.layoutControlItem2.TextSize = new System.Drawing.Size(49, 14);
|
||||
//
|
||||
|
|
@ -939,7 +947,7 @@ namespace MES.Form
|
|||
this.layoutControlItem6.CustomizationFormText = "规格型号";
|
||||
this.layoutControlItem6.Location = new System.Drawing.Point(0, 72);
|
||||
this.layoutControlItem6.Name = "layoutControlItem6";
|
||||
this.layoutControlItem6.Size = new System.Drawing.Size(498, 24);
|
||||
this.layoutControlItem6.Size = new System.Drawing.Size(503, 24);
|
||||
this.layoutControlItem6.Text = "规格型号";
|
||||
this.layoutControlItem6.TextSize = new System.Drawing.Size(49, 14);
|
||||
//
|
||||
|
|
@ -949,7 +957,7 @@ namespace MES.Form
|
|||
this.layoutControlItem8.CustomizationFormText = "仓库";
|
||||
this.layoutControlItem8.Location = new System.Drawing.Point(0, 96);
|
||||
this.layoutControlItem8.Name = "layoutControlItem8";
|
||||
this.layoutControlItem8.Size = new System.Drawing.Size(498, 24);
|
||||
this.layoutControlItem8.Size = new System.Drawing.Size(503, 24);
|
||||
this.layoutControlItem8.Text = "仓库";
|
||||
this.layoutControlItem8.TextSize = new System.Drawing.Size(49, 14);
|
||||
//
|
||||
|
|
@ -957,9 +965,9 @@ namespace MES.Form
|
|||
//
|
||||
this.layoutControlItem11.Control = this.txtremark;
|
||||
this.layoutControlItem11.CustomizationFormText = "备注";
|
||||
this.layoutControlItem11.Location = new System.Drawing.Point(498, 168);
|
||||
this.layoutControlItem11.Location = new System.Drawing.Point(503, 168);
|
||||
this.layoutControlItem11.Name = "layoutControlItem11";
|
||||
this.layoutControlItem11.Size = new System.Drawing.Size(499, 24);
|
||||
this.layoutControlItem11.Size = new System.Drawing.Size(505, 24);
|
||||
this.layoutControlItem11.Text = "备注";
|
||||
this.layoutControlItem11.TextSize = new System.Drawing.Size(49, 14);
|
||||
//
|
||||
|
|
@ -967,9 +975,9 @@ namespace MES.Form
|
|||
//
|
||||
this.layoutControlItem3.Control = this.txtcustomercode;
|
||||
this.layoutControlItem3.CustomizationFormText = "客户编码";
|
||||
this.layoutControlItem3.Location = new System.Drawing.Point(498, 24);
|
||||
this.layoutControlItem3.Location = new System.Drawing.Point(503, 24);
|
||||
this.layoutControlItem3.Name = "layoutControlItem3";
|
||||
this.layoutControlItem3.Size = new System.Drawing.Size(499, 24);
|
||||
this.layoutControlItem3.Size = new System.Drawing.Size(505, 24);
|
||||
this.layoutControlItem3.Text = "客户编码";
|
||||
this.layoutControlItem3.TextSize = new System.Drawing.Size(49, 14);
|
||||
//
|
||||
|
|
@ -977,9 +985,9 @@ namespace MES.Form
|
|||
//
|
||||
this.layoutControlItem10.Control = this.txtproductBOMcode;
|
||||
this.layoutControlItem10.CustomizationFormText = "BOM编号";
|
||||
this.layoutControlItem10.Location = new System.Drawing.Point(498, 0);
|
||||
this.layoutControlItem10.Location = new System.Drawing.Point(503, 0);
|
||||
this.layoutControlItem10.Name = "layoutControlItem10";
|
||||
this.layoutControlItem10.Size = new System.Drawing.Size(499, 24);
|
||||
this.layoutControlItem10.Size = new System.Drawing.Size(505, 24);
|
||||
this.layoutControlItem10.Text = "BOM编号";
|
||||
this.layoutControlItem10.TextSize = new System.Drawing.Size(49, 14);
|
||||
//
|
||||
|
|
@ -987,9 +995,9 @@ namespace MES.Form
|
|||
//
|
||||
this.layoutControlItem7.Control = this.txtunit;
|
||||
this.layoutControlItem7.CustomizationFormText = "计量单位";
|
||||
this.layoutControlItem7.Location = new System.Drawing.Point(498, 72);
|
||||
this.layoutControlItem7.Location = new System.Drawing.Point(503, 72);
|
||||
this.layoutControlItem7.Name = "layoutControlItem7";
|
||||
this.layoutControlItem7.Size = new System.Drawing.Size(499, 24);
|
||||
this.layoutControlItem7.Size = new System.Drawing.Size(505, 24);
|
||||
this.layoutControlItem7.Text = "计量单位";
|
||||
this.layoutControlItem7.TextSize = new System.Drawing.Size(49, 14);
|
||||
//
|
||||
|
|
@ -997,9 +1005,9 @@ namespace MES.Form
|
|||
//
|
||||
this.layoutControlItem9.Control = this.txtversion;
|
||||
this.layoutControlItem9.CustomizationFormText = "版本号";
|
||||
this.layoutControlItem9.Location = new System.Drawing.Point(498, 96);
|
||||
this.layoutControlItem9.Location = new System.Drawing.Point(503, 96);
|
||||
this.layoutControlItem9.Name = "layoutControlItem9";
|
||||
this.layoutControlItem9.Size = new System.Drawing.Size(499, 24);
|
||||
this.layoutControlItem9.Size = new System.Drawing.Size(505, 24);
|
||||
this.layoutControlItem9.Text = "版本号";
|
||||
this.layoutControlItem9.TextSize = new System.Drawing.Size(49, 14);
|
||||
//
|
||||
|
|
@ -1008,7 +1016,7 @@ namespace MES.Form
|
|||
this.layoutControlItem12.Control = this.xtraTabControl2;
|
||||
this.layoutControlItem12.Location = new System.Drawing.Point(0, 192);
|
||||
this.layoutControlItem12.Name = "layoutControlItem12";
|
||||
this.layoutControlItem12.Size = new System.Drawing.Size(997, 465);
|
||||
this.layoutControlItem12.Size = new System.Drawing.Size(1008, 474);
|
||||
this.layoutControlItem12.TextSize = new System.Drawing.Size(0, 0);
|
||||
this.layoutControlItem12.TextVisible = false;
|
||||
//
|
||||
|
|
@ -1018,7 +1026,7 @@ namespace MES.Form
|
|||
this.layoutControlItem5.CustomizationFormText = "产品";
|
||||
this.layoutControlItem5.Location = new System.Drawing.Point(0, 48);
|
||||
this.layoutControlItem5.Name = "layoutControlItem5";
|
||||
this.layoutControlItem5.Size = new System.Drawing.Size(498, 24);
|
||||
this.layoutControlItem5.Size = new System.Drawing.Size(503, 24);
|
||||
this.layoutControlItem5.Text = "产品";
|
||||
this.layoutControlItem5.TextSize = new System.Drawing.Size(49, 14);
|
||||
//
|
||||
|
|
@ -1026,9 +1034,9 @@ namespace MES.Form
|
|||
//
|
||||
this.layoutControlItem4.Control = this.txtproductcode;
|
||||
this.layoutControlItem4.CustomizationFormText = "产品编号";
|
||||
this.layoutControlItem4.Location = new System.Drawing.Point(498, 48);
|
||||
this.layoutControlItem4.Location = new System.Drawing.Point(503, 48);
|
||||
this.layoutControlItem4.Name = "layoutControlItem4";
|
||||
this.layoutControlItem4.Size = new System.Drawing.Size(499, 24);
|
||||
this.layoutControlItem4.Size = new System.Drawing.Size(505, 24);
|
||||
this.layoutControlItem4.Text = "产品编号";
|
||||
this.layoutControlItem4.TextSize = new System.Drawing.Size(49, 14);
|
||||
//
|
||||
|
|
@ -1037,7 +1045,7 @@ namespace MES.Form
|
|||
this.txtunitcost111.Control = this.txtunitcost;
|
||||
this.txtunitcost111.Location = new System.Drawing.Point(0, 168);
|
||||
this.txtunitcost111.Name = "txtunitcost111";
|
||||
this.txtunitcost111.Size = new System.Drawing.Size(498, 24);
|
||||
this.txtunitcost111.Size = new System.Drawing.Size(503, 24);
|
||||
this.txtunitcost111.Text = "单位成本";
|
||||
this.txtunitcost111.TextSize = new System.Drawing.Size(49, 14);
|
||||
//
|
||||
|
|
@ -1046,7 +1054,7 @@ namespace MES.Form
|
|||
this.layoutControlItem13.Control = this.txtcreatorId;
|
||||
this.layoutControlItem13.Location = new System.Drawing.Point(0, 120);
|
||||
this.layoutControlItem13.Name = "layoutControlItem13";
|
||||
this.layoutControlItem13.Size = new System.Drawing.Size(498, 24);
|
||||
this.layoutControlItem13.Size = new System.Drawing.Size(503, 24);
|
||||
this.layoutControlItem13.Text = "创建人";
|
||||
this.layoutControlItem13.TextSize = new System.Drawing.Size(49, 14);
|
||||
//
|
||||
|
|
@ -1055,41 +1063,33 @@ namespace MES.Form
|
|||
this.layoutControlItem14.Control = this.txteditorId;
|
||||
this.layoutControlItem14.Location = new System.Drawing.Point(0, 144);
|
||||
this.layoutControlItem14.Name = "layoutControlItem14";
|
||||
this.layoutControlItem14.Size = new System.Drawing.Size(498, 24);
|
||||
this.layoutControlItem14.Size = new System.Drawing.Size(503, 24);
|
||||
this.layoutControlItem14.Text = "编辑人";
|
||||
this.layoutControlItem14.TextSize = new System.Drawing.Size(49, 14);
|
||||
//
|
||||
// layoutControlItem15
|
||||
//
|
||||
this.layoutControlItem15.Control = this.txtcreateTime;
|
||||
this.layoutControlItem15.Location = new System.Drawing.Point(498, 120);
|
||||
this.layoutControlItem15.Location = new System.Drawing.Point(503, 120);
|
||||
this.layoutControlItem15.Name = "layoutControlItem15";
|
||||
this.layoutControlItem15.Size = new System.Drawing.Size(499, 24);
|
||||
this.layoutControlItem15.Size = new System.Drawing.Size(505, 24);
|
||||
this.layoutControlItem15.Text = "创建时间";
|
||||
this.layoutControlItem15.TextSize = new System.Drawing.Size(49, 14);
|
||||
//
|
||||
// layoutControlItem16
|
||||
//
|
||||
this.layoutControlItem16.Control = this.txteditTime;
|
||||
this.layoutControlItem16.Location = new System.Drawing.Point(498, 144);
|
||||
this.layoutControlItem16.Location = new System.Drawing.Point(503, 144);
|
||||
this.layoutControlItem16.Name = "layoutControlItem16";
|
||||
this.layoutControlItem16.Size = new System.Drawing.Size(499, 24);
|
||||
this.layoutControlItem16.Size = new System.Drawing.Size(505, 24);
|
||||
this.layoutControlItem16.Text = "编辑时间";
|
||||
this.layoutControlItem16.TextSize = new System.Drawing.Size(49, 14);
|
||||
//
|
||||
// treeListColumn6
|
||||
//
|
||||
this.treeListColumn6.Caption = "明细编号";
|
||||
this.treeListColumn6.FieldName = "productBOMdetailcode";
|
||||
this.treeListColumn6.Name = "treeListColumn6";
|
||||
this.treeListColumn6.Visible = true;
|
||||
this.treeListColumn6.VisibleIndex = 10;
|
||||
//
|
||||
// FrmproductBOM
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1027, 744);
|
||||
this.ClientSize = new System.Drawing.Size(1037, 750);
|
||||
this.Controls.Add(this.xtraTabControl1);
|
||||
this.Name = "FrmproductBOM";
|
||||
this.Text = "产品BOM";
|
||||
|
|
|
|||
|
|
@ -0,0 +1,218 @@
|
|||
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 FrmproductionBOM : FrmBaseForm
|
||||
{
|
||||
private Dictionary<string, string> fieldDictionary = new Dictionary<string, string>();
|
||||
public FrmproductionBOM()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
private void FrmproductionBOM_Load(object sender, EventArgs e)
|
||||
{
|
||||
InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new productionBOMInfo());
|
||||
InitSearchDicData();
|
||||
}
|
||||
/// <summary>
|
||||
/// 数据源初始化
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private void Init()
|
||||
{
|
||||
txtmaterialid.Properties.DataSource = GetDataTableUtils.SqlTable("物料");
|
||||
repositoryItemtxtmaterialid.DataSource= GetDataTableUtils.SqlTable("物料");
|
||||
txtmaterialtype.Properties.DataSource = GetDataTableUtils.SqlTable("物料类别");
|
||||
repositoryItemtxtmaterialtype.DataSource= GetDataTableUtils.SqlTable("物料类别");
|
||||
txtunit.Properties.DataSource = GetDataTableUtils.SqlTable("计量单位");
|
||||
repositoryItemtxtunit.DataSource= GetDataTableUtils.SqlTable("计量单位");
|
||||
txtwarehouse.Properties.DataSource = GetDataTableUtils.SqlTable("仓库");
|
||||
repositoryItemtxtwarehouse.DataSource= GetDataTableUtils.SqlTable("仓库");
|
||||
}
|
||||
/// <summary>
|
||||
/// 搜索字段
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private void InitSearchDicData()
|
||||
{
|
||||
fieldDictionary.Add("工程BOM编号","projectBOMcode");
|
||||
fieldDictionary.Add("生产BOM编号","productionBOMcode");
|
||||
fieldDictionary.Add("物料编码","materialcode");
|
||||
fieldDictionary.Add("物料名称","materialid");
|
||||
}
|
||||
|
||||
public override void InitgrdListDataSource()
|
||||
{
|
||||
using (var con=new MESDB())///
|
||||
{
|
||||
grdList.DataSource=con.productionBOMInfo.ToList();
|
||||
}
|
||||
Init();
|
||||
}
|
||||
/// <summary>
|
||||
/// 字段为空校验
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool CheckInput()
|
||||
{
|
||||
if(string.IsNullOrEmpty(txtprojectBOMcode.EditValue.ToString()))
|
||||
{
|
||||
"工程BOM编号不能为空".ShowWarning();
|
||||
txtprojectBOMcode.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtproductionBOMcode.EditValue.ToString()))
|
||||
{
|
||||
"生产BOM编号不能为空".ShowWarning();
|
||||
txtproductionBOMcode.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtnumber.EditValue.ToString()))
|
||||
{
|
||||
"产品生产数量不能为空".ShowWarning();
|
||||
txtnumber.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtmaterialcode.EditValue.ToString()))
|
||||
{
|
||||
"物料编码不能为空".ShowWarning();
|
||||
txtmaterialcode.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtmaterialid.EditValue.ToString()))
|
||||
{
|
||||
"物料名称不能为空".ShowWarning();
|
||||
txtmaterialid.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtspec.EditValue.ToString()))
|
||||
{
|
||||
"规格型号不能为空".ShowWarning();
|
||||
txtspec.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtmaterialtype.EditValue.ToString()))
|
||||
{
|
||||
"物料类型不能为空".ShowWarning();
|
||||
txtmaterialtype.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtuintnumber.EditValue.ToString()))
|
||||
{
|
||||
"单位用量不能为空".ShowWarning();
|
||||
txtuintnumber.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtneednumber.EditValue.ToString()))
|
||||
{
|
||||
"需求总量不能为空".ShowWarning();
|
||||
txtneednumber.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtunit.EditValue.ToString()))
|
||||
{
|
||||
"计量单位不能为空".ShowWarning();
|
||||
txtunit.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtunitprice.EditValue.ToString()))
|
||||
{
|
||||
"单价不能为空".ShowWarning();
|
||||
txtunitprice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txttotalprice.EditValue.ToString()))
|
||||
{
|
||||
"总价不能为空".ShowWarning();
|
||||
txttotalprice.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtwarehouse.EditValue.ToString()))
|
||||
{
|
||||
"仓库不能为空".ShowWarning();
|
||||
txtwarehouse.Focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
/// <summary>
|
||||
/// 保存
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool SaveFunction()
|
||||
{
|
||||
try
|
||||
{
|
||||
productionBOMInfo info= (productionBOMInfo)this.ControlDataToModel(new productionBOMInfo());
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
db.productionBOMInfo.AddOrUpdate(info);
|
||||
db.SaveChanges();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.Message.ShowError();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
/// <summary>
|
||||
/// 删除
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool DelFunction()
|
||||
{
|
||||
try
|
||||
{
|
||||
productionBOMInfo info = (productionBOMInfo)this.ControlDataToModel(new productionBOMInfo());
|
||||
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.productionBOMInfo.SqlQuery("select * from productionBOM").ToList();
|
||||
}
|
||||
else
|
||||
{
|
||||
grdList.DataSource = db.productionBOMInfo.SqlQuery($"select * from productionBOM where {sql}").ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,864 @@
|
|||
|
||||
using DevExpress.XtraEditors;
|
||||
using DevExpress.XtraLayout;
|
||||
using DevExpress.XtraTab;
|
||||
|
||||
namespace MES.Form
|
||||
{
|
||||
partial class FrmproductionBOM
|
||||
{
|
||||
/// <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.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemtxtmaterialid = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemtxtmaterialtype = 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.repositoryItemtxtunit = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.gridColumn12 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn13 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn14 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemtxtwarehouse = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
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.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
|
||||
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.txtid = new DevExpress.XtraEditors.TextEdit();
|
||||
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.txtprojectBOMcode = new DevExpress.XtraEditors.TextEdit();
|
||||
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.txtproductionBOMcode = new DevExpress.XtraEditors.TextEdit();
|
||||
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.txtnumber = new DevExpress.XtraEditors.TextEdit();
|
||||
this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.txtmaterialcode = new DevExpress.XtraEditors.TextEdit();
|
||||
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.txtmaterialid = new DevExpress.XtraEditors.LookUpEdit();
|
||||
this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.txtspec = new DevExpress.XtraEditors.TextEdit();
|
||||
this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.txtmaterialtype = new DevExpress.XtraEditors.LookUpEdit();
|
||||
this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.txtuintnumber = new DevExpress.XtraEditors.TextEdit();
|
||||
this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.txtneednumber = new DevExpress.XtraEditors.TextEdit();
|
||||
this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.txtunit = new DevExpress.XtraEditors.LookUpEdit();
|
||||
this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.txtunitprice = new DevExpress.XtraEditors.TextEdit();
|
||||
this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.txttotalprice = new DevExpress.XtraEditors.TextEdit();
|
||||
this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.txtwarehouse = new DevExpress.XtraEditors.LookUpEdit();
|
||||
this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.txtremark = new DevExpress.XtraEditors.TextEdit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtmaterialid)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtmaterialtype)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtunit)).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.layoutControlGroup1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtprojectBOMcode.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtproductionBOMcode.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtnumber.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtmaterialcode.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtmaterialid.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtspec.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtmaterialtype.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtuintnumber.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtneednumber.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtunit.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtunitprice.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txttotalprice.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtwarehouse.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// gridColumn1
|
||||
//
|
||||
this.gridColumn1.Caption = "id";
|
||||
this.gridColumn1.FieldName = "id";
|
||||
this.gridColumn1.Name = "gridColumn1";
|
||||
//
|
||||
// gridColumn2
|
||||
//
|
||||
this.gridColumn2.Caption = "工程BOM编号";
|
||||
this.gridColumn2.FieldName = "projectBOMcode";
|
||||
this.gridColumn2.Name = "gridColumn2";
|
||||
this.gridColumn2.Visible = true;
|
||||
this.gridColumn2.VisibleIndex = 0;
|
||||
this.gridColumn2.Width = 201;
|
||||
//
|
||||
// gridColumn3
|
||||
//
|
||||
this.gridColumn3.Caption = "生产BOM编号";
|
||||
this.gridColumn3.FieldName = "productionBOMcode";
|
||||
this.gridColumn3.Name = "gridColumn3";
|
||||
this.gridColumn3.Visible = true;
|
||||
this.gridColumn3.VisibleIndex = 1;
|
||||
this.gridColumn3.Width = 201;
|
||||
//
|
||||
// gridColumn4
|
||||
//
|
||||
this.gridColumn4.Caption = "产品生产数量";
|
||||
this.gridColumn4.FieldName = "number";
|
||||
this.gridColumn4.Name = "gridColumn4";
|
||||
this.gridColumn4.Visible = true;
|
||||
this.gridColumn4.VisibleIndex = 2;
|
||||
this.gridColumn4.Width = 201;
|
||||
//
|
||||
// gridColumn5
|
||||
//
|
||||
this.gridColumn5.Caption = "物料编码";
|
||||
this.gridColumn5.FieldName = "materialcode";
|
||||
this.gridColumn5.Name = "gridColumn5";
|
||||
this.gridColumn5.Visible = true;
|
||||
this.gridColumn5.VisibleIndex = 3;
|
||||
this.gridColumn5.Width = 201;
|
||||
//
|
||||
// gridColumn6
|
||||
//
|
||||
this.gridColumn6.Caption = "物料名称";
|
||||
this.gridColumn6.ColumnEdit = this.repositoryItemtxtmaterialid;
|
||||
this.gridColumn6.FieldName = "materialid";
|
||||
this.gridColumn6.Name = "gridColumn6";
|
||||
this.gridColumn6.Visible = true;
|
||||
this.gridColumn6.VisibleIndex = 4;
|
||||
this.gridColumn6.Width = 201;
|
||||
//
|
||||
// repositoryItemtxtmaterialid
|
||||
//
|
||||
this.repositoryItemtxtmaterialid.AutoHeight = false;
|
||||
this.repositoryItemtxtmaterialid.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.repositoryItemtxtmaterialid.DisplayMember = "Name";
|
||||
this.repositoryItemtxtmaterialid.Name = "repositoryItemtxtmaterialid";
|
||||
this.repositoryItemtxtmaterialid.ValueMember = "ID";
|
||||
//
|
||||
// gridColumn7
|
||||
//
|
||||
this.gridColumn7.Caption = "规格型号";
|
||||
this.gridColumn7.FieldName = "spec";
|
||||
this.gridColumn7.Name = "gridColumn7";
|
||||
this.gridColumn7.Visible = true;
|
||||
this.gridColumn7.VisibleIndex = 5;
|
||||
this.gridColumn7.Width = 201;
|
||||
//
|
||||
// gridColumn8
|
||||
//
|
||||
this.gridColumn8.Caption = "物料类型";
|
||||
this.gridColumn8.ColumnEdit = this.repositoryItemtxtmaterialtype;
|
||||
this.gridColumn8.FieldName = "materialtype";
|
||||
this.gridColumn8.Name = "gridColumn8";
|
||||
this.gridColumn8.Visible = true;
|
||||
this.gridColumn8.VisibleIndex = 6;
|
||||
this.gridColumn8.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";
|
||||
//
|
||||
// gridColumn9
|
||||
//
|
||||
this.gridColumn9.Caption = "单位用量";
|
||||
this.gridColumn9.FieldName = "uintnumber";
|
||||
this.gridColumn9.Name = "gridColumn9";
|
||||
this.gridColumn9.Visible = true;
|
||||
this.gridColumn9.VisibleIndex = 7;
|
||||
this.gridColumn9.Width = 201;
|
||||
//
|
||||
// gridColumn10
|
||||
//
|
||||
this.gridColumn10.Caption = "需求总量";
|
||||
this.gridColumn10.FieldName = "neednumber";
|
||||
this.gridColumn10.Name = "gridColumn10";
|
||||
this.gridColumn10.Visible = true;
|
||||
this.gridColumn10.VisibleIndex = 8;
|
||||
this.gridColumn10.Width = 201;
|
||||
//
|
||||
// gridColumn11
|
||||
//
|
||||
this.gridColumn11.Caption = "计量单位";
|
||||
this.gridColumn11.ColumnEdit = this.repositoryItemtxtunit;
|
||||
this.gridColumn11.FieldName = "unit";
|
||||
this.gridColumn11.Name = "gridColumn11";
|
||||
this.gridColumn11.Visible = true;
|
||||
this.gridColumn11.VisibleIndex = 9;
|
||||
this.gridColumn11.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";
|
||||
//
|
||||
// gridColumn12
|
||||
//
|
||||
this.gridColumn12.Caption = "单价";
|
||||
this.gridColumn12.FieldName = "unitprice";
|
||||
this.gridColumn12.Name = "gridColumn12";
|
||||
this.gridColumn12.Visible = true;
|
||||
this.gridColumn12.VisibleIndex = 10;
|
||||
this.gridColumn12.Width = 201;
|
||||
//
|
||||
// gridColumn13
|
||||
//
|
||||
this.gridColumn13.Caption = "总价";
|
||||
this.gridColumn13.FieldName = "totalprice";
|
||||
this.gridColumn13.Name = "gridColumn13";
|
||||
this.gridColumn13.Visible = true;
|
||||
this.gridColumn13.VisibleIndex = 11;
|
||||
this.gridColumn13.Width = 201;
|
||||
//
|
||||
// gridColumn14
|
||||
//
|
||||
this.gridColumn14.Caption = "仓库";
|
||||
this.gridColumn14.ColumnEdit = this.repositoryItemtxtwarehouse;
|
||||
this.gridColumn14.FieldName = "warehouse";
|
||||
this.gridColumn14.Name = "gridColumn14";
|
||||
this.gridColumn14.Visible = true;
|
||||
this.gridColumn14.VisibleIndex = 12;
|
||||
this.gridColumn14.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";
|
||||
//
|
||||
// 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(1310, 772);
|
||||
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(1305, 746);
|
||||
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(1305, 746);
|
||||
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(1294, 737);
|
||||
this.tabDataDetail.Text = "数据编辑";
|
||||
//
|
||||
// panelControl2
|
||||
//
|
||||
this.panelControl2.Controls.Add(this.layoutControl1);
|
||||
this.panelControl2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panelControl2.Location = new System.Drawing.Point(0, 0);
|
||||
this.panelControl2.Name = "panelControl2";
|
||||
this.panelControl2.Size = new System.Drawing.Size(1294, 737);
|
||||
this.panelControl2.TabIndex = 0;
|
||||
//
|
||||
// layoutControl1
|
||||
//
|
||||
this.layoutControl1.Controls.Add(this.txtid);
|
||||
this.layoutControl1.Controls.Add(this.txtprojectBOMcode);
|
||||
this.layoutControl1.Controls.Add(this.txtproductionBOMcode);
|
||||
this.layoutControl1.Controls.Add(this.txtnumber);
|
||||
this.layoutControl1.Controls.Add(this.txtmaterialcode);
|
||||
this.layoutControl1.Controls.Add(this.txtmaterialid);
|
||||
this.layoutControl1.Controls.Add(this.txtspec);
|
||||
this.layoutControl1.Controls.Add(this.txtmaterialtype);
|
||||
this.layoutControl1.Controls.Add(this.txtuintnumber);
|
||||
this.layoutControl1.Controls.Add(this.txtneednumber);
|
||||
this.layoutControl1.Controls.Add(this.txtunit);
|
||||
this.layoutControl1.Controls.Add(this.txtunitprice);
|
||||
this.layoutControl1.Controls.Add(this.txttotalprice);
|
||||
this.layoutControl1.Controls.Add(this.txtwarehouse);
|
||||
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(1290, 733);
|
||||
this.layoutControl1.TabIndex = 6;
|
||||
this.layoutControl1.Text = "layoutControl1";
|
||||
//
|
||||
// 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.layoutControlItem3,
|
||||
this.layoutControlItem4,
|
||||
this.layoutControlItem5,
|
||||
this.layoutControlItem6,
|
||||
this.layoutControlItem7,
|
||||
this.layoutControlItem8,
|
||||
this.layoutControlItem9,
|
||||
this.layoutControlItem10,
|
||||
this.layoutControlItem11,
|
||||
this.layoutControlItem12,
|
||||
this.layoutControlItem13,
|
||||
this.layoutControlItem14,
|
||||
this.layoutControlItem15});
|
||||
this.layoutControlGroup1.Name = "layoutControlGroup1";
|
||||
this.layoutControlGroup1.Size = new System.Drawing.Size(1290, 733);
|
||||
this.layoutControlGroup1.TextVisible = false;
|
||||
//
|
||||
// layoutControlItem1
|
||||
//
|
||||
this.layoutControlItem1.Control = this.txtid;
|
||||
this.layoutControlItem1.CustomizationFormText = "id";
|
||||
this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
|
||||
this.layoutControlItem1.Name = "layoutControlItem1";
|
||||
this.layoutControlItem1.Size = new System.Drawing.Size(1270, 24);
|
||||
this.layoutControlItem1.Text = "id";
|
||||
this.layoutControlItem1.TextSize = new System.Drawing.Size(73, 14);
|
||||
//
|
||||
// txtid
|
||||
//
|
||||
this.txtid.Location = new System.Drawing.Point(88, 12);
|
||||
this.txtid.Name = "txtid";
|
||||
this.txtid.Size = new System.Drawing.Size(1190, 20);
|
||||
this.txtid.StyleController = this.layoutControl1;
|
||||
this.txtid.TabIndex = 1;
|
||||
//
|
||||
// layoutControlItem2
|
||||
//
|
||||
this.layoutControlItem2.Control = this.txtprojectBOMcode;
|
||||
this.layoutControlItem2.CustomizationFormText = "工程BOM编号";
|
||||
this.layoutControlItem2.Location = new System.Drawing.Point(0, 24);
|
||||
this.layoutControlItem2.Name = "layoutControlItem2";
|
||||
this.layoutControlItem2.Size = new System.Drawing.Size(1270, 24);
|
||||
this.layoutControlItem2.Text = "工程BOM编号";
|
||||
this.layoutControlItem2.TextSize = new System.Drawing.Size(73, 14);
|
||||
//
|
||||
// txtprojectBOMcode
|
||||
//
|
||||
this.txtprojectBOMcode.Location = new System.Drawing.Point(88, 36);
|
||||
this.txtprojectBOMcode.Name = "txtprojectBOMcode";
|
||||
this.txtprojectBOMcode.Size = new System.Drawing.Size(1190, 20);
|
||||
this.txtprojectBOMcode.StyleController = this.layoutControl1;
|
||||
this.txtprojectBOMcode.TabIndex = 2;
|
||||
//
|
||||
// layoutControlItem3
|
||||
//
|
||||
this.layoutControlItem3.Control = this.txtproductionBOMcode;
|
||||
this.layoutControlItem3.CustomizationFormText = "生产BOM编号";
|
||||
this.layoutControlItem3.Location = new System.Drawing.Point(0, 48);
|
||||
this.layoutControlItem3.Name = "layoutControlItem3";
|
||||
this.layoutControlItem3.Size = new System.Drawing.Size(1270, 24);
|
||||
this.layoutControlItem3.Text = "生产BOM编号";
|
||||
this.layoutControlItem3.TextSize = new System.Drawing.Size(73, 14);
|
||||
//
|
||||
// txtproductionBOMcode
|
||||
//
|
||||
this.txtproductionBOMcode.Location = new System.Drawing.Point(88, 60);
|
||||
this.txtproductionBOMcode.Name = "txtproductionBOMcode";
|
||||
this.txtproductionBOMcode.Size = new System.Drawing.Size(1190, 20);
|
||||
this.txtproductionBOMcode.StyleController = this.layoutControl1;
|
||||
this.txtproductionBOMcode.TabIndex = 3;
|
||||
//
|
||||
// layoutControlItem4
|
||||
//
|
||||
this.layoutControlItem4.Control = this.txtnumber;
|
||||
this.layoutControlItem4.CustomizationFormText = "产品生产数量";
|
||||
this.layoutControlItem4.Location = new System.Drawing.Point(0, 72);
|
||||
this.layoutControlItem4.Name = "layoutControlItem4";
|
||||
this.layoutControlItem4.Size = new System.Drawing.Size(1270, 24);
|
||||
this.layoutControlItem4.Text = "产品生产数量";
|
||||
this.layoutControlItem4.TextSize = new System.Drawing.Size(73, 14);
|
||||
//
|
||||
// txtnumber
|
||||
//
|
||||
this.txtnumber.Location = new System.Drawing.Point(88, 84);
|
||||
this.txtnumber.Name = "txtnumber";
|
||||
this.txtnumber.Size = new System.Drawing.Size(1190, 20);
|
||||
this.txtnumber.StyleController = this.layoutControl1;
|
||||
this.txtnumber.TabIndex = 4;
|
||||
//
|
||||
// layoutControlItem5
|
||||
//
|
||||
this.layoutControlItem5.Control = this.txtmaterialcode;
|
||||
this.layoutControlItem5.CustomizationFormText = "物料编码";
|
||||
this.layoutControlItem5.Location = new System.Drawing.Point(0, 96);
|
||||
this.layoutControlItem5.Name = "layoutControlItem5";
|
||||
this.layoutControlItem5.Size = new System.Drawing.Size(1270, 24);
|
||||
this.layoutControlItem5.Text = "物料编码";
|
||||
this.layoutControlItem5.TextSize = new System.Drawing.Size(73, 14);
|
||||
//
|
||||
// txtmaterialcode
|
||||
//
|
||||
this.txtmaterialcode.Location = new System.Drawing.Point(88, 108);
|
||||
this.txtmaterialcode.Name = "txtmaterialcode";
|
||||
this.txtmaterialcode.Size = new System.Drawing.Size(1190, 20);
|
||||
this.txtmaterialcode.StyleController = this.layoutControl1;
|
||||
this.txtmaterialcode.TabIndex = 5;
|
||||
//
|
||||
// layoutControlItem6
|
||||
//
|
||||
this.layoutControlItem6.Control = this.txtmaterialid;
|
||||
this.layoutControlItem6.CustomizationFormText = "物料名称";
|
||||
this.layoutControlItem6.Location = new System.Drawing.Point(0, 120);
|
||||
this.layoutControlItem6.Name = "layoutControlItem6";
|
||||
this.layoutControlItem6.Size = new System.Drawing.Size(1270, 24);
|
||||
this.layoutControlItem6.Text = "物料名称";
|
||||
this.layoutControlItem6.TextSize = new System.Drawing.Size(73, 14);
|
||||
//
|
||||
// txtmaterialid
|
||||
//
|
||||
this.txtmaterialid.EditValue = "";
|
||||
this.txtmaterialid.Location = new System.Drawing.Point(88, 132);
|
||||
this.txtmaterialid.Name = "txtmaterialid";
|
||||
this.txtmaterialid.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.txtmaterialid.Properties.DisplayMember = "Name";
|
||||
this.txtmaterialid.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains;
|
||||
this.txtmaterialid.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;
|
||||
this.txtmaterialid.Properties.ValueMember = "ID";
|
||||
this.txtmaterialid.Size = new System.Drawing.Size(1190, 20);
|
||||
this.txtmaterialid.StyleController = this.layoutControl1;
|
||||
this.txtmaterialid.TabIndex = 6;
|
||||
//
|
||||
// layoutControlItem7
|
||||
//
|
||||
this.layoutControlItem7.Control = this.txtspec;
|
||||
this.layoutControlItem7.CustomizationFormText = "规格型号";
|
||||
this.layoutControlItem7.Location = new System.Drawing.Point(0, 144);
|
||||
this.layoutControlItem7.Name = "layoutControlItem7";
|
||||
this.layoutControlItem7.Size = new System.Drawing.Size(1270, 24);
|
||||
this.layoutControlItem7.Text = "规格型号";
|
||||
this.layoutControlItem7.TextSize = new System.Drawing.Size(73, 14);
|
||||
//
|
||||
// txtspec
|
||||
//
|
||||
this.txtspec.Location = new System.Drawing.Point(88, 156);
|
||||
this.txtspec.Name = "txtspec";
|
||||
this.txtspec.Size = new System.Drawing.Size(1190, 20);
|
||||
this.txtspec.StyleController = this.layoutControl1;
|
||||
this.txtspec.TabIndex = 7;
|
||||
//
|
||||
// layoutControlItem8
|
||||
//
|
||||
this.layoutControlItem8.Control = this.txtmaterialtype;
|
||||
this.layoutControlItem8.CustomizationFormText = "物料类型";
|
||||
this.layoutControlItem8.Location = new System.Drawing.Point(0, 168);
|
||||
this.layoutControlItem8.Name = "layoutControlItem8";
|
||||
this.layoutControlItem8.Size = new System.Drawing.Size(1270, 24);
|
||||
this.layoutControlItem8.Text = "物料类型";
|
||||
this.layoutControlItem8.TextSize = new System.Drawing.Size(73, 14);
|
||||
//
|
||||
// txtmaterialtype
|
||||
//
|
||||
this.txtmaterialtype.EditValue = "";
|
||||
this.txtmaterialtype.Location = new System.Drawing.Point(88, 180);
|
||||
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(1190, 20);
|
||||
this.txtmaterialtype.StyleController = this.layoutControl1;
|
||||
this.txtmaterialtype.TabIndex = 8;
|
||||
//
|
||||
// layoutControlItem9
|
||||
//
|
||||
this.layoutControlItem9.Control = this.txtuintnumber;
|
||||
this.layoutControlItem9.CustomizationFormText = "单位用量";
|
||||
this.layoutControlItem9.Location = new System.Drawing.Point(0, 192);
|
||||
this.layoutControlItem9.Name = "layoutControlItem9";
|
||||
this.layoutControlItem9.Size = new System.Drawing.Size(1270, 24);
|
||||
this.layoutControlItem9.Text = "单位用量";
|
||||
this.layoutControlItem9.TextSize = new System.Drawing.Size(73, 14);
|
||||
//
|
||||
// txtuintnumber
|
||||
//
|
||||
this.txtuintnumber.Location = new System.Drawing.Point(88, 204);
|
||||
this.txtuintnumber.Name = "txtuintnumber";
|
||||
this.txtuintnumber.Size = new System.Drawing.Size(1190, 20);
|
||||
this.txtuintnumber.StyleController = this.layoutControl1;
|
||||
this.txtuintnumber.TabIndex = 9;
|
||||
//
|
||||
// layoutControlItem10
|
||||
//
|
||||
this.layoutControlItem10.Control = this.txtneednumber;
|
||||
this.layoutControlItem10.CustomizationFormText = "需求总量";
|
||||
this.layoutControlItem10.Location = new System.Drawing.Point(0, 216);
|
||||
this.layoutControlItem10.Name = "layoutControlItem10";
|
||||
this.layoutControlItem10.Size = new System.Drawing.Size(1270, 24);
|
||||
this.layoutControlItem10.Text = "需求总量";
|
||||
this.layoutControlItem10.TextSize = new System.Drawing.Size(73, 14);
|
||||
//
|
||||
// txtneednumber
|
||||
//
|
||||
this.txtneednumber.Location = new System.Drawing.Point(88, 228);
|
||||
this.txtneednumber.Name = "txtneednumber";
|
||||
this.txtneednumber.Size = new System.Drawing.Size(1190, 20);
|
||||
this.txtneednumber.StyleController = this.layoutControl1;
|
||||
this.txtneednumber.TabIndex = 10;
|
||||
//
|
||||
// layoutControlItem11
|
||||
//
|
||||
this.layoutControlItem11.Control = this.txtunit;
|
||||
this.layoutControlItem11.CustomizationFormText = "计量单位";
|
||||
this.layoutControlItem11.Location = new System.Drawing.Point(0, 240);
|
||||
this.layoutControlItem11.Name = "layoutControlItem11";
|
||||
this.layoutControlItem11.Size = new System.Drawing.Size(1270, 24);
|
||||
this.layoutControlItem11.Text = "计量单位";
|
||||
this.layoutControlItem11.TextSize = new System.Drawing.Size(73, 14);
|
||||
//
|
||||
// txtunit
|
||||
//
|
||||
this.txtunit.EditValue = "";
|
||||
this.txtunit.Location = new System.Drawing.Point(88, 252);
|
||||
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(1190, 20);
|
||||
this.txtunit.StyleController = this.layoutControl1;
|
||||
this.txtunit.TabIndex = 11;
|
||||
//
|
||||
// layoutControlItem12
|
||||
//
|
||||
this.layoutControlItem12.Control = this.txtunitprice;
|
||||
this.layoutControlItem12.CustomizationFormText = "单价";
|
||||
this.layoutControlItem12.Location = new System.Drawing.Point(0, 264);
|
||||
this.layoutControlItem12.Name = "layoutControlItem12";
|
||||
this.layoutControlItem12.Size = new System.Drawing.Size(1270, 24);
|
||||
this.layoutControlItem12.Text = "单价";
|
||||
this.layoutControlItem12.TextSize = new System.Drawing.Size(73, 14);
|
||||
//
|
||||
// txtunitprice
|
||||
//
|
||||
this.txtunitprice.Location = new System.Drawing.Point(88, 276);
|
||||
this.txtunitprice.Name = "txtunitprice";
|
||||
this.txtunitprice.Size = new System.Drawing.Size(1190, 20);
|
||||
this.txtunitprice.StyleController = this.layoutControl1;
|
||||
this.txtunitprice.TabIndex = 12;
|
||||
//
|
||||
// layoutControlItem13
|
||||
//
|
||||
this.layoutControlItem13.Control = this.txttotalprice;
|
||||
this.layoutControlItem13.CustomizationFormText = "总价";
|
||||
this.layoutControlItem13.Location = new System.Drawing.Point(0, 288);
|
||||
this.layoutControlItem13.Name = "layoutControlItem13";
|
||||
this.layoutControlItem13.Size = new System.Drawing.Size(1270, 24);
|
||||
this.layoutControlItem13.Text = "总价";
|
||||
this.layoutControlItem13.TextSize = new System.Drawing.Size(73, 14);
|
||||
//
|
||||
// txttotalprice
|
||||
//
|
||||
this.txttotalprice.Location = new System.Drawing.Point(88, 300);
|
||||
this.txttotalprice.Name = "txttotalprice";
|
||||
this.txttotalprice.Size = new System.Drawing.Size(1190, 20);
|
||||
this.txttotalprice.StyleController = this.layoutControl1;
|
||||
this.txttotalprice.TabIndex = 13;
|
||||
//
|
||||
// layoutControlItem14
|
||||
//
|
||||
this.layoutControlItem14.Control = this.txtwarehouse;
|
||||
this.layoutControlItem14.CustomizationFormText = "仓库";
|
||||
this.layoutControlItem14.Location = new System.Drawing.Point(0, 312);
|
||||
this.layoutControlItem14.Name = "layoutControlItem14";
|
||||
this.layoutControlItem14.Size = new System.Drawing.Size(1270, 24);
|
||||
this.layoutControlItem14.Text = "仓库";
|
||||
this.layoutControlItem14.TextSize = new System.Drawing.Size(73, 14);
|
||||
//
|
||||
// txtwarehouse
|
||||
//
|
||||
this.txtwarehouse.EditValue = "";
|
||||
this.txtwarehouse.Location = new System.Drawing.Point(88, 324);
|
||||
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(1190, 20);
|
||||
this.txtwarehouse.StyleController = this.layoutControl1;
|
||||
this.txtwarehouse.TabIndex = 14;
|
||||
//
|
||||
// layoutControlItem15
|
||||
//
|
||||
this.layoutControlItem15.Control = this.txtremark;
|
||||
this.layoutControlItem15.CustomizationFormText = "备注";
|
||||
this.layoutControlItem15.Location = new System.Drawing.Point(0, 336);
|
||||
this.layoutControlItem15.Name = "layoutControlItem15";
|
||||
this.layoutControlItem15.Size = new System.Drawing.Size(1270, 377);
|
||||
this.layoutControlItem15.Text = "备注";
|
||||
this.layoutControlItem15.TextSize = new System.Drawing.Size(73, 14);
|
||||
//
|
||||
// txtremark
|
||||
//
|
||||
this.txtremark.Location = new System.Drawing.Point(88, 348);
|
||||
this.txtremark.Name = "txtremark";
|
||||
this.txtremark.Size = new System.Drawing.Size(1190, 20);
|
||||
this.txtremark.StyleController = this.layoutControl1;
|
||||
this.txtremark.TabIndex = 15;
|
||||
//
|
||||
// FrmproductionBOM
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1310, 806);
|
||||
this.Controls.Add(this.xtraTabControl1);
|
||||
this.Name = "FrmproductionBOM";
|
||||
this.Text = "FrmproductionBOM";
|
||||
this.Load += new System.EventHandler(this.FrmproductionBOM_Load);
|
||||
this.Controls.SetChildIndex(this.xtraTabControl1, 0);
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtmaterialid)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtmaterialtype)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtunit)).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.layoutControlGroup1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtprojectBOMcode.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtproductionBOMcode.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtnumber.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtmaterialcode.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtmaterialid.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtspec.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtmaterialtype.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtuintnumber.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtneednumber.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtunit.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtunitprice.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txttotalprice.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtwarehouse.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).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 txtprojectBOMcode;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtproductionBOMcode;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtnumber;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtmaterialcode;
|
||||
private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtmaterialid;
|
||||
|
||||
private DevExpress.XtraEditors.LookUpEdit txtmaterialid;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtspec;
|
||||
private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtmaterialtype;
|
||||
|
||||
private DevExpress.XtraEditors.LookUpEdit txtmaterialtype;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtuintnumber;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtneednumber;
|
||||
private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtunit;
|
||||
|
||||
private DevExpress.XtraEditors.LookUpEdit txtunit;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txtunitprice;
|
||||
///////////////////////////////
|
||||
private DevExpress.XtraEditors.TextEdit txttotalprice;
|
||||
private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtwarehouse;
|
||||
|
||||
private DevExpress.XtraEditors.LookUpEdit txtwarehouse;
|
||||
///////////////////////////////
|
||||
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,385 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using WinformGeneralDeveloperFrame;
|
||||
using WinformGeneralDeveloperFrame.Commons;
|
||||
using DevExpress.XtraLayout;
|
||||
using MES.Entity;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity;
|
||||
using CCWin.SkinClass;
|
||||
using DevExpress.XtraEditors;
|
||||
|
||||
namespace MES.Form
|
||||
{
|
||||
public partial class FrmproductionRequisition : FrmBaseForm
|
||||
{
|
||||
private Dictionary<string, string> fieldDictionary = new Dictionary<string, string>();
|
||||
public FrmproductionRequisition()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
private void FrmproductionRequisition_Load(object sender, EventArgs e)
|
||||
{
|
||||
InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new productionRequisitionInfo(),gridControl1,new string[]{ "txtcode" });
|
||||
InitSearchDicData();
|
||||
repositoryItemLookUpEditmaterialid.EditValueChanged += RepositoryItemLookUpEditmaterialid_EditValueChanged;
|
||||
}
|
||||
|
||||
private void RepositoryItemLookUpEditmaterialid_EditValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
LookUpEdit lookUpEdit = sender as LookUpEdit;
|
||||
DataRowView data=lookUpEdit.GetSelectedDataRow() as DataRowView;
|
||||
using (var db=new MESDB())
|
||||
{
|
||||
int id = data.Row["ID"].ToInt32();
|
||||
int BOMid = data.Row["BOMid"].ToInt32();
|
||||
productBOMdetailInfo productBoMdetail = db.productBOMdetailInfo.Where(p =>
|
||||
p.materialid == id&& p.productBOMid == BOMid).ToList().First();
|
||||
gridView1.GetFocusedDataRow()["materialcode"] = productBoMdetail.materialcode;
|
||||
gridView1.GetFocusedDataRow()["materialspec"] = productBoMdetail.materialspec;
|
||||
gridView1.GetFocusedDataRow()["materialtype"] = productBoMdetail.materialtype;
|
||||
gridView1.GetFocusedDataRow()["unitnumber"] = productBoMdetail.unitusenumber;
|
||||
|
||||
gridView1.GetFocusedDataRow()["productnumber"] = txtnumber.Text;
|
||||
gridView1.GetFocusedDataRow()["unit"] = productBoMdetail.unit;
|
||||
gridView1.GetFocusedDataRow()["warehouse"] = productBoMdetail.warehouse;
|
||||
// gridView1.GetFocusedDataRow()["unitnumber"] = productBoMdetail.materialcode;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 数据源初始化
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private void Init()
|
||||
{
|
||||
txtproductID.Properties.DataSource = GetDataTableUtils.SqlTable("产品");
|
||||
repositoryItemtxtproductID.DataSource= GetDataTableUtils.SqlTable("产品");
|
||||
txtunit.Properties.DataSource = GetDataTableUtils.SqlTable("计量单位");
|
||||
repositoryItemtxtunit.DataSource= GetDataTableUtils.SqlTable("计量单位");
|
||||
txtpickingdept.Properties.DataSource = GetDataTableUtils.SqlTable("部门");
|
||||
repositoryItemTreeListtxtpickingdept.DataSource= GetDataTableUtils.SqlTable("部门");
|
||||
txtcreatorId.Properties.DataSource = GetDataTableUtils.SqlTable("用户");
|
||||
repositoryItemtxtcreatorId.DataSource= GetDataTableUtils.SqlTable("用户");
|
||||
|
||||
repositoryItemLookUpEditwarehouse.DataSource = GetDataTableUtils.SqlTable("仓库");
|
||||
repositoryItemLookUpEditunit.DataSource = GetDataTableUtils.SqlTable("计量单位");
|
||||
repositoryItemLookUpEditmaterialid.DataSource = GetDataTableUtils.SqlTable("物料");
|
||||
repositoryItemLookUpEditmaterialtype.DataSource = GetDataTableUtils.SqlTable("物料类别");
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 搜索字段
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private void InitSearchDicData()
|
||||
{
|
||||
fieldDictionary.Add("领料单号","code");
|
||||
fieldDictionary.Add("工单号","wocode");
|
||||
fieldDictionary.Add("销售单号","salecode");
|
||||
}
|
||||
|
||||
public override void InitgrdListDataSource()
|
||||
{
|
||||
using (var con=new MESDB())///
|
||||
{
|
||||
grdList.DataSource=con.productionRequisitionInfo.ToList();
|
||||
}
|
||||
Init();
|
||||
}
|
||||
/// <summary>
|
||||
/// 字段为空校验
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool CheckInput()
|
||||
{
|
||||
if(string.IsNullOrEmpty(txtwocode.EditValue.ToString()))
|
||||
{
|
||||
"工单号不能为空".ShowWarning();
|
||||
txtwocode.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtpickingtime.EditValue.ToString()))
|
||||
{
|
||||
"领料日期不能为空".ShowWarning();
|
||||
txtpickingtime.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtproductID.EditValue.ToString()))
|
||||
{
|
||||
"产品不能为空".ShowWarning();
|
||||
txtproductID.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtproductcode.EditValue.ToString()))
|
||||
{
|
||||
"产品编号不能为空".ShowWarning();
|
||||
txtproductcode.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtproductspec.EditValue.ToString()))
|
||||
{
|
||||
"规格型号不能为空".ShowWarning();
|
||||
txtproductspec.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtnumber.EditValue.ToString()))
|
||||
{
|
||||
"生产数量不能为空".ShowWarning();
|
||||
txtnumber.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtunit.EditValue.ToString()))
|
||||
{
|
||||
"计量单位不能为空".ShowWarning();
|
||||
txtunit.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtpickingdept.EditValue.ToString()))
|
||||
{
|
||||
"领料部门不能为空".ShowWarning();
|
||||
txtpickingdept.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;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
/// <summary>
|
||||
/// 保存
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool SaveFunction()
|
||||
{
|
||||
string code = "MOO" + DateTime.Now.GetDateTimeCode();
|
||||
|
||||
DataTable dt = gridControl1.DataSource as DataTable;
|
||||
try
|
||||
{
|
||||
productionRequisitionInfo info = (productionRequisitionInfo)this.ControlDataToModel(new productionRequisitionInfo());
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
using (var tran = db.Database.BeginTransaction())
|
||||
{
|
||||
try
|
||||
{
|
||||
Dictionary<string, List<productionRequisitionDetailInfo>> dic =
|
||||
dt.GetDataTableData<productionRequisitionDetailInfo>();
|
||||
if (info.id == 0) //新增
|
||||
{
|
||||
info.code = code;
|
||||
db.productionRequisitionInfo.Add(info);
|
||||
db.SaveChanges();
|
||||
txtid.Text = info.id.ToString();
|
||||
txtcode.Text = code;
|
||||
if (dt != null)
|
||||
{
|
||||
List<productionRequisitionDetailInfo> detaiListAdd =
|
||||
dic["Add"];
|
||||
int num = 0;
|
||||
detaiListAdd.ForEach(a =>
|
||||
{
|
||||
num++;
|
||||
string codedetail = "MOOD" + DateTime.Now.GetDateTimeCode() + num;
|
||||
a.masterid = info.id;
|
||||
a.mastercode = info.code;
|
||||
a.wocode = info.wocode;
|
||||
a.detailcode = codedetail;
|
||||
});
|
||||
db.productionRequisitionDetailInfo.AddRange(detaiListAdd);
|
||||
db.SaveChanges();
|
||||
}
|
||||
}
|
||||
else //更新
|
||||
{
|
||||
db.Entry(info).State = EntityState.Modified;
|
||||
db.SaveChanges();
|
||||
if (dt != null)
|
||||
{
|
||||
List<productionRequisitionDetailInfo> detaiListAdd =
|
||||
dic["Add"];
|
||||
int num = 0;
|
||||
detaiListAdd.ForEach(a =>
|
||||
{
|
||||
a.masterid = info.id;
|
||||
a.mastercode = info.code;
|
||||
num++;
|
||||
string codedetail = "MOOD" + DateTime.Now.GetDateTimeCode() + num;
|
||||
a.detailcode = codedetail;
|
||||
a.wocode = info.wocode;
|
||||
});
|
||||
db.productionRequisitionDetailInfo.AddRange(detaiListAdd);
|
||||
|
||||
List<productionRequisitionDetailInfo> detaiListEdit =
|
||||
dic["Edit"];
|
||||
|
||||
detaiListEdit.ForEach((a) =>
|
||||
{
|
||||
//a.buyercode = info.buyercode;
|
||||
db.Entry(a).State = EntityState.Modified;
|
||||
});
|
||||
|
||||
List<productionRequisitionDetailInfo> detaiListDel =
|
||||
dic["Del"];
|
||||
detaiListDel.ForEach((a) => { db.Entry(a).State = EntityState.Deleted; });
|
||||
db.SaveChanges();
|
||||
}
|
||||
}
|
||||
|
||||
tran.Commit();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
tran.Rollback();
|
||||
ex.Message.ShowError();
|
||||
return false;
|
||||
}
|
||||
finally
|
||||
{
|
||||
tran.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ex.Message.ShowError();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
/// <summary>
|
||||
/// 删除
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool DelFunction()
|
||||
{
|
||||
try
|
||||
{
|
||||
productionRequisitionInfo info = (productionRequisitionInfo)this.ControlDataToModel(new productionRequisitionInfo());
|
||||
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.productionRequisitionInfo.SqlQuery("select * from productionRequisition").ToList();
|
||||
}
|
||||
else
|
||||
{
|
||||
grdList.DataSource = db.productionRequisitionInfo.SqlQuery($"select * from productionRequisition where {sql}").ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void EditFunction()
|
||||
{
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
var list = db.workorderInfo.Where(p => p.wordordercode == txtwocode.Text.ToUpper().Trim()).ToList();
|
||||
{
|
||||
workorderInfo info = list.First();
|
||||
|
||||
repositoryItemLookUpEditmaterialid.DataSource = GetDataTableUtils.SqlTableBySql(
|
||||
$"SELECT B.id ID,B.name Name,b.code Code,a.productBOMid BOMid FROM [winformdevfarme].[dbo].[productBOMdetail] A LEFT JOIN [winformdevfarme].[dbo].material B ON A.materialid = B.id where a.productBOMid = {info.bomid}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void gridControlMouseDoubleClickFunction(object sender, EventArgs e)
|
||||
{
|
||||
productionRequisitionInfo info = grdListView.GetFocusedRow() as productionRequisitionInfo;
|
||||
if (info != null)
|
||||
{
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
gridControl1.DataSource = db.productionRequisitionDetailInfo.Where(p => p.masterid== info.id).ToList().ToDataTable();
|
||||
gridView1.BestFitColumns();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void AddFunction()
|
||||
{
|
||||
txtpickingdept.EditValue = AppInfo.LoginUserInfo.deptId;
|
||||
gridControl1.DataSource = new List<productionRequisitionDetailInfo>().ToDataTable();
|
||||
}
|
||||
|
||||
private void toolStripMenuItemAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
gridView1.AddNewRow();
|
||||
}
|
||||
|
||||
private void toolStripMenuItemDel_Click(object sender, EventArgs e)
|
||||
{
|
||||
gridView1.DeleteRow(gridView1.FocusedRowHandle);
|
||||
}
|
||||
private void txtwocode_KeyPress(object sender, KeyPressEventArgs e)
|
||||
{
|
||||
if (e.KeyChar == 13)
|
||||
{
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
var list = db.workorderInfo.Where(p => p.wordordercode == txtwocode.Text.ToUpper().Trim()).ToList();
|
||||
if (list.Count == 0)
|
||||
{
|
||||
"工单号不存在!".ShowTips();
|
||||
}
|
||||
else
|
||||
{
|
||||
workorderInfo info = list.First();
|
||||
txtsalecode.Text = info.salecode;
|
||||
txtproductID.EditValue = info.productid;
|
||||
txtproductcode.Text = info.productcode;
|
||||
txtproductspec.Text = info.spec;
|
||||
txtnumber.EditValue = info.productnumber;
|
||||
txtunit.EditValue = info.unit;
|
||||
|
||||
repositoryItemLookUpEditmaterialid.DataSource = GetDataTableUtils.SqlTableBySql($"SELECT B.id ID,B.name Name,b.code Code,a.productBOMid BOMid FROM [winformdevfarme].[dbo].[productBOMdetail] A LEFT JOIN [winformdevfarme].[dbo].material B ON A.materialid = B.id where a.productBOMid = {info.bomid}");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,123 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
|
|
@ -284,7 +284,7 @@ namespace MES.Form
|
|||
this.xtraTabControl1.Location = new System.Drawing.Point(0, 34);
|
||||
this.xtraTabControl1.Name = "xtraTabControl1";
|
||||
this.xtraTabControl1.SelectedTabPage = this.tabDataList;
|
||||
this.xtraTabControl1.Size = new System.Drawing.Size(1300, 766);
|
||||
this.xtraTabControl1.Size = new System.Drawing.Size(1310, 772);
|
||||
this.xtraTabControl1.TabIndex = 1;
|
||||
this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
|
||||
this.tabDataList,
|
||||
|
|
@ -294,7 +294,7 @@ namespace MES.Form
|
|||
//
|
||||
this.tabDataList.Controls.Add(this.grdList);
|
||||
this.tabDataList.Name = "tabDataList";
|
||||
this.tabDataList.Size = new System.Drawing.Size(1294, 737);
|
||||
this.tabDataList.Size = new System.Drawing.Size(1305, 746);
|
||||
this.tabDataList.Text = "数据列表";
|
||||
//
|
||||
// grdList
|
||||
|
|
@ -303,7 +303,7 @@ namespace MES.Form
|
|||
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.Size = new System.Drawing.Size(1305, 746);
|
||||
this.grdList.TabIndex = 0;
|
||||
this.grdList.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
||||
this.grdListView});
|
||||
|
|
@ -855,7 +855,7 @@ namespace MES.Form
|
|||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1300, 800);
|
||||
this.ClientSize = new System.Drawing.Size(1310, 806);
|
||||
this.Controls.Add(this.xtraTabControl1);
|
||||
this.Name = "Frmquotation";
|
||||
this.Text = "客户报价单";
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ namespace MES.Form
|
|||
this.gridColumn21 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemLookUpEditunit = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.gridColumn22 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn23 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemGridLookUpEdit = new DevExpress.XtraEditors.Repository.RepositoryItemGridLookUpEdit();
|
||||
this.repositoryItemGridLookUpEdit1View = new DevExpress.XtraGrid.Views.Grid.GridView();
|
||||
this.txtid = new DevExpress.XtraEditors.TextEdit();
|
||||
|
|
@ -100,7 +101,6 @@ namespace MES.Form
|
|||
this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.gridColumn23 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomerid)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomertype)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcontactuser)).BeginInit();
|
||||
|
|
@ -284,7 +284,7 @@ namespace MES.Form
|
|||
this.xtraTabControl1.Location = new System.Drawing.Point(0, 34);
|
||||
this.xtraTabControl1.Name = "xtraTabControl1";
|
||||
this.xtraTabControl1.SelectedTabPage = this.tabDataList;
|
||||
this.xtraTabControl1.Size = new System.Drawing.Size(1300, 766);
|
||||
this.xtraTabControl1.Size = new System.Drawing.Size(1310, 772);
|
||||
this.xtraTabControl1.TabIndex = 1;
|
||||
this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
|
||||
this.tabDataList,
|
||||
|
|
@ -294,7 +294,7 @@ namespace MES.Form
|
|||
//
|
||||
this.tabDataList.Controls.Add(this.grdList);
|
||||
this.tabDataList.Name = "tabDataList";
|
||||
this.tabDataList.Size = new System.Drawing.Size(1294, 737);
|
||||
this.tabDataList.Size = new System.Drawing.Size(1305, 746);
|
||||
this.tabDataList.Text = "数据列表";
|
||||
//
|
||||
// grdList
|
||||
|
|
@ -303,7 +303,7 @@ namespace MES.Form
|
|||
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.Size = new System.Drawing.Size(1305, 746);
|
||||
this.grdList.TabIndex = 0;
|
||||
this.grdList.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
||||
this.grdListView});
|
||||
|
|
@ -573,6 +573,15 @@ namespace MES.Form
|
|||
this.gridColumn22.VisibleIndex = 10;
|
||||
this.gridColumn22.Width = 201;
|
||||
//
|
||||
// gridColumn23
|
||||
//
|
||||
this.gridColumn23.Caption = "明细单号";
|
||||
this.gridColumn23.FieldName = "returnsaledetailcode";
|
||||
this.gridColumn23.Name = "gridColumn23";
|
||||
this.gridColumn23.OptionsColumn.AllowEdit = false;
|
||||
this.gridColumn23.Visible = true;
|
||||
this.gridColumn23.VisibleIndex = 0;
|
||||
//
|
||||
// repositoryItemGridLookUpEdit
|
||||
//
|
||||
this.repositoryItemGridLookUpEdit.AutoHeight = false;
|
||||
|
|
@ -834,20 +843,11 @@ namespace MES.Form
|
|||
this.layoutControlItem11.TextSize = new System.Drawing.Size(0, 0);
|
||||
this.layoutControlItem11.TextVisible = false;
|
||||
//
|
||||
// gridColumn23
|
||||
//
|
||||
this.gridColumn23.Caption = "明细单号";
|
||||
this.gridColumn23.FieldName = "returnsaledetailcode";
|
||||
this.gridColumn23.Name = "gridColumn23";
|
||||
this.gridColumn23.OptionsColumn.AllowEdit = false;
|
||||
this.gridColumn23.Visible = true;
|
||||
this.gridColumn23.VisibleIndex = 0;
|
||||
//
|
||||
// Frmreturnsale
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1300, 800);
|
||||
this.ClientSize = new System.Drawing.Size(1310, 806);
|
||||
this.Controls.Add(this.xtraTabControl1);
|
||||
this.Name = "Frmreturnsale";
|
||||
this.Text = "销售退货单";
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ namespace MES.Form
|
|||
this.gridColumn35 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn36 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn37 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.gridColumn38 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.repositoryItemtxtproductid = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit();
|
||||
this.txtid = new DevExpress.XtraEditors.TextEdit();
|
||||
this.txtsaleordercode = new DevExpress.XtraEditors.TextEdit();
|
||||
|
|
@ -123,7 +124,6 @@ namespace MES.Form
|
|||
this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem();
|
||||
this.gridColumn38 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomerid)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomertype)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcontactuser)).BeginInit();
|
||||
|
|
@ -364,7 +364,7 @@ namespace MES.Form
|
|||
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(944, 636);
|
||||
this.xtraTabControl1.Size = new System.Drawing.Size(954, 642);
|
||||
this.xtraTabControl1.TabIndex = 1;
|
||||
this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
|
||||
this.tabDataList,
|
||||
|
|
@ -374,7 +374,7 @@ namespace MES.Form
|
|||
//
|
||||
this.tabDataList.Controls.Add(this.grdList);
|
||||
this.tabDataList.Name = "tabDataList";
|
||||
this.tabDataList.Size = new System.Drawing.Size(938, 607);
|
||||
this.tabDataList.Size = new System.Drawing.Size(949, 616);
|
||||
this.tabDataList.Text = "数据列表";
|
||||
//
|
||||
// grdList
|
||||
|
|
@ -383,7 +383,7 @@ namespace MES.Form
|
|||
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(938, 607);
|
||||
this.grdList.Size = new System.Drawing.Size(949, 616);
|
||||
this.grdList.TabIndex = 0;
|
||||
this.grdList.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
||||
this.grdListView});
|
||||
|
|
@ -783,6 +783,15 @@ namespace MES.Form
|
|||
this.gridColumn37.VisibleIndex = 21;
|
||||
this.gridColumn37.Width = 201;
|
||||
//
|
||||
// gridColumn38
|
||||
//
|
||||
this.gridColumn38.Caption = "明细单号";
|
||||
this.gridColumn38.FieldName = "saledetailcode";
|
||||
this.gridColumn38.Name = "gridColumn38";
|
||||
this.gridColumn38.OptionsColumn.AllowEdit = false;
|
||||
this.gridColumn38.Visible = true;
|
||||
this.gridColumn38.VisibleIndex = 0;
|
||||
//
|
||||
// repositoryItemtxtproductid
|
||||
//
|
||||
this.repositoryItemtxtproductid.AutoHeight = false;
|
||||
|
|
@ -1127,20 +1136,11 @@ namespace MES.Form
|
|||
this.layoutControlItem14.Text = "备注";
|
||||
this.layoutControlItem14.TextSize = new System.Drawing.Size(48, 14);
|
||||
//
|
||||
// gridColumn38
|
||||
//
|
||||
this.gridColumn38.Caption = "明细单号";
|
||||
this.gridColumn38.FieldName = "saledetailcode";
|
||||
this.gridColumn38.Name = "gridColumn38";
|
||||
this.gridColumn38.OptionsColumn.AllowEdit = false;
|
||||
this.gridColumn38.Visible = true;
|
||||
this.gridColumn38.VisibleIndex = 0;
|
||||
//
|
||||
// Frmsale
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(944, 670);
|
||||
this.ClientSize = new System.Drawing.Size(954, 676);
|
||||
this.Controls.Add(this.xtraTabControl1);
|
||||
this.Name = "Frmsale";
|
||||
this.Text = "销售订单";
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@ using DevExpress.XtraLayout;
|
|||
using MES.Entity;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity;
|
||||
using CCWin.SkinClass;
|
||||
|
||||
namespace MES.Form
|
||||
{
|
||||
public partial class Frmworkorder : FrmBaseForm
|
||||
|
|
@ -23,7 +25,7 @@ namespace MES.Form
|
|||
}
|
||||
private void Frmworkorder_Load(object sender, EventArgs e)
|
||||
{
|
||||
InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new workorderInfo());
|
||||
InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new workorderInfo(),gridControl1,new []{ "txtwordordercode", "txtsalecode" });
|
||||
InitSearchDicData();
|
||||
}
|
||||
/// <summary>
|
||||
|
|
@ -32,8 +34,8 @@ namespace MES.Form
|
|||
/// <returns></returns>
|
||||
private void Init()
|
||||
{
|
||||
txtworkordertype.Properties.DataSource = GetDataTableUtils.SqlTable("部门");
|
||||
repositoryItemtxtworkordertype.DataSource= GetDataTableUtils.SqlTable("部门");
|
||||
txtworkordertype.Properties.DataSource = GetDataTableUtils.SqlTable("工单类型");
|
||||
repositoryItemtxtworkordertype.DataSource= GetDataTableUtils.SqlTable("工单类型");
|
||||
txtproductdept.Properties.DataSource = GetDataTableUtils.SqlTable("部门");
|
||||
repositoryItemtxtproductdept.DataSource= GetDataTableUtils.SqlTable("部门");
|
||||
txtproductid.Properties.DataSource = GetDataTableUtils.SqlTable("产品");
|
||||
|
|
@ -43,8 +45,11 @@ namespace MES.Form
|
|||
txtwarehouse.Properties.DataSource = GetDataTableUtils.SqlTable("仓库");
|
||||
repositoryItemtxtwarehouse.DataSource= GetDataTableUtils.SqlTable("仓库");
|
||||
txtcreatorId.Properties.DataSource = GetDataTableUtils.SqlTable("用户");
|
||||
repositoryItemtxtcreatorId.DataSource= GetDataTableUtils.SqlTable("用户");
|
||||
}
|
||||
repositoryItemtxtcreatorId.DataSource= GetDataTableUtils.SqlTable("用户");
|
||||
txtproducttype.Properties.DataSource = GetDataTableUtils.SqlTable("产品类别");
|
||||
repositoryItemLookUpEditmaterialid.DataSource = GetDataTableUtils.SqlTable("物料");
|
||||
repositoryItemLookUpEditmaterialtype.DataSource = GetDataTableUtils.SqlTable("物料类别");
|
||||
}
|
||||
/// <summary>
|
||||
/// 搜索字段
|
||||
/// </summary>
|
||||
|
|
@ -73,7 +78,7 @@ namespace MES.Form
|
|||
|
||||
public override void InitgrdListDataSource()
|
||||
{
|
||||
using (var con=new MESDB())///
|
||||
using (var con=new MESDB())
|
||||
{
|
||||
grdList.DataSource=con.workorderInfo.ToList();
|
||||
}
|
||||
|
|
@ -85,24 +90,24 @@ namespace MES.Form
|
|||
/// <returns></returns>
|
||||
public override bool CheckInput()
|
||||
{
|
||||
if(string.IsNullOrEmpty(txtwordordercode.EditValue.ToString()))
|
||||
{
|
||||
"工单号不能为空".ShowWarning();
|
||||
txtwordordercode.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtsalecode.EditValue.ToString()))
|
||||
{
|
||||
"销售单号不能为空".ShowWarning();
|
||||
txtsalecode.Focus();
|
||||
return false;
|
||||
}
|
||||
if(string.IsNullOrEmpty(txtsaledetailcode.EditValue.ToString()))
|
||||
{
|
||||
"销售明细单号不能为空".ShowWarning();
|
||||
txtsaledetailcode.Focus();
|
||||
return false;
|
||||
}
|
||||
//if(string.IsNullOrEmpty(txtwordordercode.EditValue.ToString()))
|
||||
//{
|
||||
// "工单号不能为空".ShowWarning();
|
||||
// txtwordordercode.Focus();
|
||||
// return false;
|
||||
//}
|
||||
//if(string.IsNullOrEmpty(txtsalecode.EditValue.ToString()))
|
||||
//{
|
||||
// "销售单号不能为空".ShowWarning();
|
||||
// txtsalecode.Focus();
|
||||
// return false;
|
||||
//}
|
||||
//if(string.IsNullOrEmpty(txtsaledetailcode.EditValue.ToString()))
|
||||
//{
|
||||
// "销售明细单号不能为空".ShowWarning();
|
||||
// txtsaledetailcode.Focus();
|
||||
// return false;
|
||||
//}
|
||||
if(string.IsNullOrEmpty(txtworkordertype.EditValue.ToString()))
|
||||
{
|
||||
"工单类型不能为空".ShowWarning();
|
||||
|
|
@ -192,10 +197,21 @@ namespace MES.Form
|
|||
try
|
||||
{
|
||||
workorderInfo info= (workorderInfo)this.ControlDataToModel(new workorderInfo());
|
||||
using (var db = new MESDB())
|
||||
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
db.workorderInfo.AddOrUpdate(info);
|
||||
db.SaveChanges();
|
||||
if (info.id == 0) //新增
|
||||
{
|
||||
string code = "GD" + DateTime.Now.GetDateTimeCode();
|
||||
info.wordordercode = code;
|
||||
db.workorderInfo.Add(info);
|
||||
db.SaveChanges();
|
||||
}
|
||||
else
|
||||
{
|
||||
db.Entry(info).State = EntityState.Modified;
|
||||
db.SaveChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
@ -250,5 +266,120 @@ namespace MES.Form
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void AddFunction()
|
||||
{
|
||||
gridControl1.DataSource = null;
|
||||
}
|
||||
|
||||
public override void gridControlMouseDoubleClickFunction(object sender, EventArgs e)
|
||||
{
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
productBOMInfo info = db.productBOMInfo.Find(txtbomid.EditValue);
|
||||
List<productBOMdetailInfo> boMdetailInfo =
|
||||
db.productBOMdetailInfo.Where(p => p.productBOMid == info.id).ToList();
|
||||
List<productionBOMInfo> list = new List<productionBOMInfo>();
|
||||
foreach (var item in boMdetailInfo)
|
||||
{
|
||||
productionBOMInfo info1 = new productionBOMInfo()
|
||||
{
|
||||
number = txtproductnumber.Text.ToDecimal(1),
|
||||
materialcode = item.materialcode,
|
||||
materialid = item.materialid,
|
||||
materialtype = item.materialtype,
|
||||
spec = item.materialspec,
|
||||
uintnumber = item.unitusenumber,
|
||||
neednumber = item.unitusenumber * txtproductnumber.Text.ToDecimal(1),
|
||||
unit = item.unit,
|
||||
unitprice = item.unitprice,
|
||||
totalprice = item.unitprice * txtproductnumber.Text.ToDecimal(1) * item.unitusenumber,
|
||||
warehouse = item.warehouse,
|
||||
remark = item.remark
|
||||
};
|
||||
list.Add(info1);
|
||||
}
|
||||
|
||||
gridControl1.DataSource = list;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void txtsaledetailcode_KeyPress(object sender, KeyPressEventArgs e)
|
||||
{
|
||||
if (e.KeyChar == 13)
|
||||
{
|
||||
using (var db=new MESDB())
|
||||
{
|
||||
var list= db.saledetailInfo
|
||||
.Where(p => p.saledetailcode == txtsaledetailcode.Text.ToUpper()).ToList();
|
||||
if (list.Count > 0)
|
||||
{
|
||||
saledetailInfo info = list[0];
|
||||
txtsalecode.Text = info.salecode;
|
||||
txtproductid.EditValue = info.productid;
|
||||
txtproductcode.Text = info.productcode;
|
||||
txtspec.Text = info.productspec;
|
||||
txtproductnumber.Text = info.salenumber.ToString();
|
||||
txtunit.EditValue = info.unit;
|
||||
txtdeliverdate.DateTime = info.deliverdate;
|
||||
txtwarehouse.EditValue = info.warehouse;
|
||||
txtbomid.Properties.DataSource = db.productBOMInfo.Where(p => p.productid == info.productid)
|
||||
.Select(p => new { ID=p.productid,Name=p.version}).ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void txtproductid_EditValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
productInfo info = db.productInfo.Find(txtproductid.EditValue);
|
||||
var list = db.productBOMInfo.Where(p => p.productid == info.id)
|
||||
.Select(p => new {ID = p.id, Name = p.version}).ToList();
|
||||
txtbomid.Properties.DataSource = list;
|
||||
txtproducttype.EditValue = info.producttype;
|
||||
txtproductcode.Text = info.productcode;
|
||||
txtunit.EditValue = info.unit;
|
||||
txtwarehouse.EditValue = info.warehouse;
|
||||
}
|
||||
}
|
||||
|
||||
private void toolStripMenuItem1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(txtproductid.Text) && !string.IsNullOrEmpty(txtbomid.Text))
|
||||
{
|
||||
using (var db = new MESDB())
|
||||
{
|
||||
productBOMInfo info = db.productBOMInfo.Find(txtbomid.EditValue);
|
||||
List<productBOMdetailInfo> boMdetailInfo =
|
||||
db.productBOMdetailInfo.Where(p => p.productBOMid == info.id).ToList();
|
||||
List<productionBOMInfo> list = new List<productionBOMInfo>();
|
||||
foreach (var item in boMdetailInfo)
|
||||
{
|
||||
productionBOMInfo info1 = new productionBOMInfo()
|
||||
{
|
||||
number = txtproductnumber.Text.ToDecimal(1),
|
||||
materialcode = item.materialcode,
|
||||
materialid = item.materialid,
|
||||
materialtype = item.materialtype,
|
||||
spec = item.materialspec,
|
||||
uintnumber=item.unitusenumber,
|
||||
neednumber=item.unitusenumber * txtproductnumber.Text.ToDecimal(1),
|
||||
unit=item.unit,
|
||||
unitprice=item.unitprice,
|
||||
totalprice = item.unitprice * txtproductnumber.Text.ToDecimal(1)* item.unitusenumber,
|
||||
warehouse = item.warehouse,
|
||||
remark = item.remark
|
||||
};
|
||||
list.Add(info1);
|
||||
}
|
||||
|
||||
gridControl1.DataSource = list;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -117,4 +117,7 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
|
|
@ -19,6 +19,7 @@ using MES.Entity;
|
|||
using WinformGeneralDeveloperFrame.Commons;
|
||||
using MES;
|
||||
|
||||
|
||||
namespace WinformGeneralDeveloperFrame
|
||||
{
|
||||
public partial class FrmBaseForm : XtraForm
|
||||
|
|
@ -47,6 +48,12 @@ namespace WinformGeneralDeveloperFrame
|
|||
InitFrom(xtraTab, gridControl, gridView, controlGroups);
|
||||
this.DataType = DataType;
|
||||
}
|
||||
public void InitFrom(XtraTabControl xtraTab, GridControl gridControl, GridView gridView, LayoutControlGroup[] controlGroups, object DataType, string[] readcontrols)
|
||||
{
|
||||
InitFrom(xtraTab, gridControl, gridView, controlGroups);
|
||||
this.DataType = DataType;
|
||||
readonlycon = readcontrols;
|
||||
}
|
||||
public void InitFrom(XtraTabControl xtraTab, GridControl gridControl, GridView gridView, LayoutControlGroup[] controlGroups)
|
||||
{
|
||||
initTools();
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ namespace WinformGeneralDeveloperFrame
|
|||
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
||||
this.bsi_UserName = new DevExpress.XtraBars.BarStaticItem();
|
||||
this.barStaticItem1 = new DevExpress.XtraBars.BarStaticItem();
|
||||
this.defaultLookAndFeel1 = new DevExpress.LookAndFeel.DefaultLookAndFeel(this.components);
|
||||
((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemTimeEdit1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xtraTabbedMdiManager1)).BeginInit();
|
||||
|
|
@ -61,7 +62,12 @@ namespace WinformGeneralDeveloperFrame
|
|||
//
|
||||
// ribbonControl1
|
||||
//
|
||||
resources.ApplyResources(this.ribbonControl1, "ribbonControl1");
|
||||
this.ribbonControl1.ExpandCollapseItem.Id = 0;
|
||||
this.ribbonControl1.ExpandCollapseItem.ImageOptions.ImageIndex = ((int)(resources.GetObject("ribbonControl1.ExpandCollapseItem.ImageOptions.ImageIndex")));
|
||||
this.ribbonControl1.ExpandCollapseItem.ImageOptions.LargeImageIndex = ((int)(resources.GetObject("ribbonControl1.ExpandCollapseItem.ImageOptions.LargeImageIndex")));
|
||||
this.ribbonControl1.ExpandCollapseItem.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("ribbonControl1.ExpandCollapseItem.ImageOptions.SvgImage")));
|
||||
this.ribbonControl1.ExpandCollapseItem.SearchTags = resources.GetString("ribbonControl1.ExpandCollapseItem.SearchTags");
|
||||
this.ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] {
|
||||
this.ribbonControl1.ExpandCollapseItem,
|
||||
this.ribbonControl1.SearchEditItem,
|
||||
|
|
@ -77,7 +83,6 @@ namespace WinformGeneralDeveloperFrame
|
|||
this.barButtonItem2,
|
||||
this.barStaticItem2,
|
||||
this.barButtonItem3});
|
||||
this.ribbonControl1.Location = new System.Drawing.Point(0, 0);
|
||||
this.ribbonControl1.MaxItemId = 13;
|
||||
this.ribbonControl1.Name = "ribbonControl1";
|
||||
this.ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] {
|
||||
|
|
@ -85,105 +90,141 @@ namespace WinformGeneralDeveloperFrame
|
|||
this.ribbonControl1.QuickToolbarItemLinks.Add(this.ribbonGalleryBarItem1);
|
||||
this.ribbonControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
|
||||
this.repositoryItemTimeEdit1});
|
||||
this.ribbonControl1.Size = new System.Drawing.Size(1157, 148);
|
||||
this.ribbonControl1.StatusBar = this.ribbonStatusBar1;
|
||||
this.ribbonControl1.Click += new System.EventHandler(this.ribbonControl1_Click);
|
||||
//
|
||||
// ribbonGalleryBarItem1
|
||||
//
|
||||
this.ribbonGalleryBarItem1.Caption = "ribbonGalleryBarItem1";
|
||||
resources.ApplyResources(this.ribbonGalleryBarItem1, "ribbonGalleryBarItem1");
|
||||
this.ribbonGalleryBarItem1.Id = 1;
|
||||
this.ribbonGalleryBarItem1.ImageOptions.ImageIndex = ((int)(resources.GetObject("ribbonGalleryBarItem1.ImageOptions.ImageIndex")));
|
||||
this.ribbonGalleryBarItem1.ImageOptions.LargeImageIndex = ((int)(resources.GetObject("ribbonGalleryBarItem1.ImageOptions.LargeImageIndex")));
|
||||
this.ribbonGalleryBarItem1.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("ribbonGalleryBarItem1.ImageOptions.SvgImage")));
|
||||
this.ribbonGalleryBarItem1.Name = "ribbonGalleryBarItem1";
|
||||
//
|
||||
// skinPaletteRibbonGalleryBarItem1
|
||||
//
|
||||
resources.ApplyResources(this.skinPaletteRibbonGalleryBarItem1, "skinPaletteRibbonGalleryBarItem1");
|
||||
this.skinPaletteRibbonGalleryBarItem1.Alignment = DevExpress.XtraBars.BarItemLinkAlignment.Right;
|
||||
this.skinPaletteRibbonGalleryBarItem1.Caption = "skinPaletteRibbonGalleryBarItem1";
|
||||
this.skinPaletteRibbonGalleryBarItem1.Id = 2;
|
||||
this.skinPaletteRibbonGalleryBarItem1.ImageOptions.ImageIndex = ((int)(resources.GetObject("skinPaletteRibbonGalleryBarItem1.ImageOptions.ImageIndex")));
|
||||
this.skinPaletteRibbonGalleryBarItem1.ImageOptions.LargeImageIndex = ((int)(resources.GetObject("skinPaletteRibbonGalleryBarItem1.ImageOptions.LargeImageIndex")));
|
||||
this.skinPaletteRibbonGalleryBarItem1.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("skinPaletteRibbonGalleryBarItem1.ImageOptions.SvgImage")));
|
||||
this.skinPaletteRibbonGalleryBarItem1.Name = "skinPaletteRibbonGalleryBarItem1";
|
||||
//
|
||||
// barEditItem1
|
||||
//
|
||||
resources.ApplyResources(this.barEditItem1, "barEditItem1");
|
||||
this.barEditItem1.Alignment = DevExpress.XtraBars.BarItemLinkAlignment.Right;
|
||||
this.barEditItem1.Caption = "barEditItem1";
|
||||
this.barEditItem1.Edit = this.repositoryItemTimeEdit1;
|
||||
this.barEditItem1.Id = 3;
|
||||
this.barEditItem1.ImageOptions.ImageIndex = ((int)(resources.GetObject("barEditItem1.ImageOptions.ImageIndex")));
|
||||
this.barEditItem1.ImageOptions.LargeImageIndex = ((int)(resources.GetObject("barEditItem1.ImageOptions.LargeImageIndex")));
|
||||
this.barEditItem1.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("barEditItem1.ImageOptions.SvgImage")));
|
||||
this.barEditItem1.Name = "barEditItem1";
|
||||
//
|
||||
// repositoryItemTimeEdit1
|
||||
//
|
||||
this.repositoryItemTimeEdit1.AutoHeight = false;
|
||||
resources.ApplyResources(this.repositoryItemTimeEdit1, "repositoryItemTimeEdit1");
|
||||
this.repositoryItemTimeEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(((DevExpress.XtraEditors.Controls.ButtonPredefines)(resources.GetObject("repositoryItemTimeEdit1.Buttons"))))});
|
||||
this.repositoryItemTimeEdit1.Mask.EditMask = resources.GetString("repositoryItemTimeEdit1.Mask.EditMask");
|
||||
this.repositoryItemTimeEdit1.Name = "repositoryItemTimeEdit1";
|
||||
//
|
||||
// bsi_Date
|
||||
//
|
||||
resources.ApplyResources(this.bsi_Date, "bsi_Date");
|
||||
this.bsi_Date.Alignment = DevExpress.XtraBars.BarItemLinkAlignment.Right;
|
||||
this.bsi_Date.Caption = "DateTime";
|
||||
this.bsi_Date.Id = 4;
|
||||
this.bsi_Date.ImageOptions.Image = global::WinformGeneralDeveloperFrame.Properties.Resources.time_16x16;
|
||||
this.bsi_Date.ImageOptions.ImageIndex = ((int)(resources.GetObject("bsi_Date.ImageOptions.ImageIndex")));
|
||||
this.bsi_Date.ImageOptions.LargeImage = global::WinformGeneralDeveloperFrame.Properties.Resources.time_32x32;
|
||||
this.bsi_Date.ImageOptions.LargeImageIndex = ((int)(resources.GetObject("bsi_Date.ImageOptions.LargeImageIndex")));
|
||||
this.bsi_Date.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("bsi_Date.ImageOptions.SvgImage")));
|
||||
this.bsi_Date.Name = "bsi_Date";
|
||||
this.bsi_Date.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
|
||||
//
|
||||
// barListItem1
|
||||
//
|
||||
this.barListItem1.Caption = "barListItem1";
|
||||
resources.ApplyResources(this.barListItem1, "barListItem1");
|
||||
this.barListItem1.Id = 5;
|
||||
this.barListItem1.ImageOptions.ImageIndex = ((int)(resources.GetObject("barListItem1.ImageOptions.ImageIndex")));
|
||||
this.barListItem1.ImageOptions.LargeImageIndex = ((int)(resources.GetObject("barListItem1.ImageOptions.LargeImageIndex")));
|
||||
this.barListItem1.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("barListItem1.ImageOptions.SvgImage")));
|
||||
this.barListItem1.Name = "barListItem1";
|
||||
//
|
||||
// barUserName
|
||||
//
|
||||
this.barUserName.Caption = "用户名:admin";
|
||||
resources.ApplyResources(this.barUserName, "barUserName");
|
||||
this.barUserName.Id = 6;
|
||||
this.barUserName.ImageOptions.Image = global::WinformGeneralDeveloperFrame.Properties.Resources.bocustomer_16x16;
|
||||
this.barUserName.ImageOptions.ImageIndex = ((int)(resources.GetObject("barUserName.ImageOptions.ImageIndex")));
|
||||
this.barUserName.ImageOptions.LargeImage = global::WinformGeneralDeveloperFrame.Properties.Resources.bocustomer_32x321;
|
||||
this.barUserName.ImageOptions.LargeImageIndex = ((int)(resources.GetObject("barUserName.ImageOptions.LargeImageIndex")));
|
||||
this.barUserName.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("barUserName.ImageOptions.SvgImage")));
|
||||
this.barUserName.Name = "barUserName";
|
||||
this.barUserName.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
|
||||
//
|
||||
// barStaticItem3
|
||||
//
|
||||
this.barStaticItem3.Caption = "barStaticItem3";
|
||||
resources.ApplyResources(this.barStaticItem3, "barStaticItem3");
|
||||
this.barStaticItem3.Id = 7;
|
||||
this.barStaticItem3.ImageOptions.ImageIndex = ((int)(resources.GetObject("barStaticItem3.ImageOptions.ImageIndex")));
|
||||
this.barStaticItem3.ImageOptions.LargeImageIndex = ((int)(resources.GetObject("barStaticItem3.ImageOptions.LargeImageIndex")));
|
||||
this.barStaticItem3.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("barStaticItem3.ImageOptions.SvgImage")));
|
||||
this.barStaticItem3.Name = "barStaticItem3";
|
||||
//
|
||||
// btnabout
|
||||
//
|
||||
this.btnabout.Caption = "关于";
|
||||
resources.ApplyResources(this.btnabout, "btnabout");
|
||||
this.btnabout.Id = 8;
|
||||
this.btnabout.ImageOptions.Image = global::WinformGeneralDeveloperFrame.Properties.Resources.operatingsystem_16x16;
|
||||
this.btnabout.ImageOptions.ImageIndex = ((int)(resources.GetObject("btnabout.ImageOptions.ImageIndex")));
|
||||
this.btnabout.ImageOptions.LargeImage = global::WinformGeneralDeveloperFrame.Properties.Resources.operatingsystem_32x32;
|
||||
this.btnabout.ImageOptions.LargeImageIndex = ((int)(resources.GetObject("btnabout.ImageOptions.LargeImageIndex")));
|
||||
this.btnabout.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnabout.ImageOptions.SvgImage")));
|
||||
this.btnabout.Name = "btnabout";
|
||||
this.btnabout.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonItemStyles.Large;
|
||||
//
|
||||
// barButtonItem1
|
||||
//
|
||||
this.barButtonItem1.Caption = "bug反馈 ";
|
||||
resources.ApplyResources(this.barButtonItem1, "barButtonItem1");
|
||||
this.barButtonItem1.Id = 9;
|
||||
this.barButtonItem1.ImageOptions.Image = global::WinformGeneralDeveloperFrame.Properties.Resources.mail_16x16;
|
||||
this.barButtonItem1.ImageOptions.ImageIndex = ((int)(resources.GetObject("barButtonItem1.ImageOptions.ImageIndex")));
|
||||
this.barButtonItem1.ImageOptions.LargeImage = global::WinformGeneralDeveloperFrame.Properties.Resources.mail_32x32;
|
||||
this.barButtonItem1.ImageOptions.LargeImageIndex = ((int)(resources.GetObject("barButtonItem1.ImageOptions.LargeImageIndex")));
|
||||
this.barButtonItem1.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("barButtonItem1.ImageOptions.SvgImage")));
|
||||
this.barButtonItem1.Name = "barButtonItem1";
|
||||
this.barButtonItem1.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem1_ItemClick);
|
||||
//
|
||||
// barButtonItem2
|
||||
//
|
||||
this.barButtonItem2.Caption = "barButtonItem2";
|
||||
resources.ApplyResources(this.barButtonItem2, "barButtonItem2");
|
||||
this.barButtonItem2.Id = 10;
|
||||
this.barButtonItem2.ImageOptions.ImageIndex = ((int)(resources.GetObject("barButtonItem2.ImageOptions.ImageIndex")));
|
||||
this.barButtonItem2.ImageOptions.LargeImageIndex = ((int)(resources.GetObject("barButtonItem2.ImageOptions.LargeImageIndex")));
|
||||
this.barButtonItem2.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("barButtonItem2.ImageOptions.SvgImage")));
|
||||
this.barButtonItem2.Name = "barButtonItem2";
|
||||
//
|
||||
// barStaticItem2
|
||||
//
|
||||
this.barStaticItem2.Caption = "barStaticItem2";
|
||||
resources.ApplyResources(this.barStaticItem2, "barStaticItem2");
|
||||
this.barStaticItem2.Id = 11;
|
||||
this.barStaticItem2.ImageOptions.ImageIndex = ((int)(resources.GetObject("barStaticItem2.ImageOptions.ImageIndex")));
|
||||
this.barStaticItem2.ImageOptions.LargeImageIndex = ((int)(resources.GetObject("barStaticItem2.ImageOptions.LargeImageIndex")));
|
||||
this.barStaticItem2.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("barStaticItem2.ImageOptions.SvgImage")));
|
||||
this.barStaticItem2.Name = "barStaticItem2";
|
||||
//
|
||||
// barButtonItem3
|
||||
//
|
||||
this.barButtonItem3.Caption = "注销";
|
||||
resources.ApplyResources(this.barButtonItem3, "barButtonItem3");
|
||||
this.barButtonItem3.Id = 12;
|
||||
this.barButtonItem3.ImageOptions.Image = global::WinformGeneralDeveloperFrame.Properties.Resources.removepivotfield_16x16;
|
||||
this.barButtonItem3.ImageOptions.ImageIndex = ((int)(resources.GetObject("barButtonItem3.ImageOptions.ImageIndex")));
|
||||
this.barButtonItem3.ImageOptions.LargeImage = global::WinformGeneralDeveloperFrame.Properties.Resources.removepivotfield_32x32;
|
||||
this.barButtonItem3.ImageOptions.LargeImageIndex = ((int)(resources.GetObject("barButtonItem3.ImageOptions.LargeImageIndex")));
|
||||
this.barButtonItem3.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("barButtonItem3.ImageOptions.SvgImage")));
|
||||
this.barButtonItem3.Name = "barButtonItem3";
|
||||
this.barButtonItem3.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barButtonItem3_ItemClick);
|
||||
//
|
||||
|
|
@ -192,7 +233,7 @@ namespace WinformGeneralDeveloperFrame
|
|||
this.ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] {
|
||||
this.ribbonPageGroup1});
|
||||
this.ribbonPage1.Name = "ribbonPage1";
|
||||
this.ribbonPage1.Text = "帮助";
|
||||
resources.ApplyResources(this.ribbonPage1, "ribbonPage1");
|
||||
//
|
||||
// ribbonPageGroup1
|
||||
//
|
||||
|
|
@ -203,12 +244,11 @@ namespace WinformGeneralDeveloperFrame
|
|||
//
|
||||
// ribbonStatusBar1
|
||||
//
|
||||
resources.ApplyResources(this.ribbonStatusBar1, "ribbonStatusBar1");
|
||||
this.ribbonStatusBar1.ItemLinks.Add(this.bsi_Date);
|
||||
this.ribbonStatusBar1.ItemLinks.Add(this.barUserName);
|
||||
this.ribbonStatusBar1.Location = new System.Drawing.Point(0, 766);
|
||||
this.ribbonStatusBar1.Name = "ribbonStatusBar1";
|
||||
this.ribbonStatusBar1.Ribbon = this.ribbonControl1;
|
||||
this.ribbonStatusBar1.Size = new System.Drawing.Size(1157, 32);
|
||||
//
|
||||
// xtraTabbedMdiManager1
|
||||
//
|
||||
|
|
@ -216,16 +256,12 @@ namespace WinformGeneralDeveloperFrame
|
|||
//
|
||||
// navBarControl1
|
||||
//
|
||||
resources.ApplyResources(this.navBarControl1, "navBarControl1");
|
||||
this.navBarControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.HotFlat;
|
||||
this.navBarControl1.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.navBarControl1.Location = new System.Drawing.Point(0, 148);
|
||||
this.navBarControl1.Name = "navBarControl1";
|
||||
this.navBarControl1.OptionsNavPane.ExpandedWidth = 184;
|
||||
this.navBarControl1.OptionsNavPane.ExpandedWidth = ((int)(resources.GetObject("resource.ExpandedWidth")));
|
||||
this.navBarControl1.PaintStyleKind = DevExpress.XtraNavBar.NavBarViewKind.NavigationPane;
|
||||
this.navBarControl1.Size = new System.Drawing.Size(184, 618);
|
||||
this.navBarControl1.StoreDefaultPaintStyleName = true;
|
||||
this.navBarControl1.TabIndex = 8;
|
||||
this.navBarControl1.Text = "navBarControl1";
|
||||
this.navBarControl1.Click += new System.EventHandler(this.navBarControl1_Click);
|
||||
//
|
||||
// timer1
|
||||
|
|
@ -236,34 +272,46 @@ namespace WinformGeneralDeveloperFrame
|
|||
//
|
||||
// bsi_UserName
|
||||
//
|
||||
this.bsi_UserName.Caption = "用戶名: 管理員";
|
||||
resources.ApplyResources(this.bsi_UserName, "bsi_UserName");
|
||||
this.bsi_UserName.Id = 29;
|
||||
this.bsi_UserName.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("bsi_UserName.ImageOptions.Image")));
|
||||
this.bsi_UserName.ImageOptions.ImageIndex = ((int)(resources.GetObject("bsi_UserName.ImageOptions.ImageIndex")));
|
||||
this.bsi_UserName.ImageOptions.LargeImageIndex = ((int)(resources.GetObject("bsi_UserName.ImageOptions.LargeImageIndex")));
|
||||
this.bsi_UserName.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("bsi_UserName.ImageOptions.SvgImage")));
|
||||
this.bsi_UserName.Name = "bsi_UserName";
|
||||
this.bsi_UserName.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
|
||||
//
|
||||
// barStaticItem1
|
||||
//
|
||||
this.barStaticItem1.Caption = "用戶名: 管理員";
|
||||
resources.ApplyResources(this.barStaticItem1, "barStaticItem1");
|
||||
this.barStaticItem1.Id = 29;
|
||||
this.barStaticItem1.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("barStaticItem1.ImageOptions.Image")));
|
||||
this.barStaticItem1.ImageOptions.ImageIndex = ((int)(resources.GetObject("barStaticItem1.ImageOptions.ImageIndex")));
|
||||
this.barStaticItem1.ImageOptions.LargeImageIndex = ((int)(resources.GetObject("barStaticItem1.ImageOptions.LargeImageIndex")));
|
||||
this.barStaticItem1.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("barStaticItem1.ImageOptions.SvgImage")));
|
||||
this.barStaticItem1.Name = "barStaticItem1";
|
||||
this.barStaticItem1.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph;
|
||||
//
|
||||
// defaultLookAndFeel1
|
||||
//
|
||||
this.defaultLookAndFeel1.LookAndFeel.SkinName = "Office 2007 Silver";
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
|
||||
resources.ApplyResources(this, "$this");
|
||||
this.Appearance.BackColor = System.Drawing.Color.White;
|
||||
this.Appearance.ForeColor = System.Drawing.Color.Transparent;
|
||||
this.Appearance.Options.UseBackColor = true;
|
||||
this.Appearance.Options.UseForeColor = true;
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1157, 798);
|
||||
this.Controls.Add(this.navBarControl1);
|
||||
this.Controls.Add(this.ribbonStatusBar1);
|
||||
this.Controls.Add(this.ribbonControl1);
|
||||
this.IsMdiContainer = true;
|
||||
this.Name = "MainForm";
|
||||
this.Ribbon = this.ribbonControl1;
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.StatusBar = this.ribbonStatusBar1;
|
||||
this.Text = "主界面";
|
||||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
|
||||
this.Load += new System.EventHandler(this.MainForm_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemTimeEdit1)).EndInit();
|
||||
|
|
@ -298,6 +346,7 @@ namespace WinformGeneralDeveloperFrame
|
|||
private DevExpress.XtraBars.BarButtonItem barButtonItem2;
|
||||
private DevExpress.XtraBars.BarStaticItem barStaticItem2;
|
||||
private DevExpress.XtraBars.BarButtonItem barButtonItem3;
|
||||
private DevExpress.LookAndFeel.DefaultLookAndFeel defaultLookAndFeel1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -117,61 +117,194 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="xtraTabbedMdiManager1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>219, 17</value>
|
||||
</metadata>
|
||||
<data name="skinPaletteRibbonGalleryBarItem1.Caption" xml:space="preserve">
|
||||
<value>skinPaletteRibbonGalleryBarItem1</value>
|
||||
</data>
|
||||
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="bsi_UserName.ImageOptions.LargeImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name="skinPaletteRibbonGalleryBarItem1.ImageOptions.LargeImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name=">>barStaticItem1.Name" xml:space="preserve">
|
||||
<value>barStaticItem1</value>
|
||||
</data>
|
||||
<data name=">>ribbonControl1.ZOrder" xml:space="preserve">
|
||||
<value>3</value>
|
||||
</data>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="barEditItem1.ImageOptions.SvgImage" type="System.Resources.ResXNullRef, System.Windows.Forms">
|
||||
<value />
|
||||
</data>
|
||||
<data name="barButtonItem1.Caption" xml:space="preserve">
|
||||
<value>bug反馈 </value>
|
||||
</data>
|
||||
<data name=">>barStaticItem3.Name" xml:space="preserve">
|
||||
<value>barStaticItem3</value>
|
||||
</data>
|
||||
<data name="barUserName.ImageOptions.ImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name="barButtonItem3.ImageOptions.SvgImage" type="System.Resources.ResXNullRef, System.Windows.Forms">
|
||||
<value />
|
||||
</data>
|
||||
<data name="ribbonControl1.ExpandCollapseItem.SearchTags" type="System.Resources.ResXNullRef, System.Windows.Forms">
|
||||
<value />
|
||||
</data>
|
||||
<data name="barStaticItem2.Caption" xml:space="preserve">
|
||||
<value>barStaticItem2</value>
|
||||
</data>
|
||||
<data name=">>barButtonItem1.Name" xml:space="preserve">
|
||||
<value>barButtonItem1</value>
|
||||
</data>
|
||||
<data name=">>ribbonStatusBar1.ZOrder" xml:space="preserve">
|
||||
<value>1</value>
|
||||
</data>
|
||||
<data name="skinPaletteRibbonGalleryBarItem1.ImageOptions.ImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name=">>ribbonStatusBar1.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraBars.Ribbon.RibbonStatusBar, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name="btnabout.Caption" xml:space="preserve">
|
||||
<value>关于</value>
|
||||
</data>
|
||||
<data name=">>ribbonStatusBar1.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>barListItem1.Name" xml:space="preserve">
|
||||
<value>barListItem1</value>
|
||||
</data>
|
||||
<data name=">>defaultLookAndFeel1.Name" xml:space="preserve">
|
||||
<value>defaultLookAndFeel1</value>
|
||||
</data>
|
||||
<data name="barUserName.ImageOptions.SvgImage" type="System.Resources.ResXNullRef, System.Windows.Forms">
|
||||
<value />
|
||||
</data>
|
||||
<data name=">>bsi_Date.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraBars.BarStaticItem, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name="barEditItem1.Caption" xml:space="preserve">
|
||||
<value>barEditItem1</value>
|
||||
</data>
|
||||
<data name="barUserName.Caption" xml:space="preserve">
|
||||
<value>用户名:admin</value>
|
||||
</data>
|
||||
<data name=">>barUserName.Name" xml:space="preserve">
|
||||
<value>barUserName</value>
|
||||
</data>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="bsi_UserName.ImageOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
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
|
||||
</value>
|
||||
<data name="navBarControl1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>184, 626</value>
|
||||
</data>
|
||||
<data name="ribbonGalleryBarItem1.ImageOptions.LargeImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name=">>barButtonItem3.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraBars.BarButtonItem, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name="barButtonItem2.ImageOptions.LargeImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name="skinPaletteRibbonGalleryBarItem1.ImageOptions.SvgImage" type="System.Resources.ResXNullRef, System.Windows.Forms">
|
||||
<value />
|
||||
</data>
|
||||
<data name=">>barEditItem1.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraBars.BarEditItem, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name="repositoryItemTimeEdit1.AutoHeight" type="System.Boolean, mscorlib">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name=">>bsi_UserName.Name" xml:space="preserve">
|
||||
<value>bsi_UserName</value>
|
||||
</data>
|
||||
<data name=">>ribbonPage1.Name" xml:space="preserve">
|
||||
<value>ribbonPage1</value>
|
||||
</data>
|
||||
<data name="barButtonItem2.ImageOptions.ImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name=">>barStaticItem1.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraBars.BarStaticItem, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name=">>navBarControl1.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraNavBar.NavBarControl, DevExpress.XtraNavBar.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name="barStaticItem3.Caption" xml:space="preserve">
|
||||
<value>barStaticItem3</value>
|
||||
</data>
|
||||
<data name=">>ribbonControl1.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>skinPaletteRibbonGalleryBarItem1.Name" xml:space="preserve">
|
||||
<value>skinPaletteRibbonGalleryBarItem1</value>
|
||||
</data>
|
||||
<data name="barListItem1.Caption" xml:space="preserve">
|
||||
<value>barListItem1</value>
|
||||
</data>
|
||||
<data name=">>ribbonPageGroup1.Name" xml:space="preserve">
|
||||
<value>ribbonPageGroup1</value>
|
||||
</data>
|
||||
<data name="barStaticItem2.ImageOptions.SvgImage" type="System.Resources.ResXNullRef, System.Windows.Forms">
|
||||
<value />
|
||||
</data>
|
||||
<data name="barStaticItem2.ImageOptions.LargeImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name=">>barListItem1.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraBars.BarListItem, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
|
||||
<value>1165, 798</value>
|
||||
</data>
|
||||
<data name="barStaticItem2.ImageOptions.ImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name="barButtonItem2.ImageOptions.SvgImage" type="System.Resources.ResXNullRef, System.Windows.Forms">
|
||||
<value />
|
||||
</data>
|
||||
<data name=">>navBarControl1.ZOrder" xml:space="preserve">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<data name="bsi_UserName.Caption" xml:space="preserve">
|
||||
<value>用戶名: 管理員</value>
|
||||
</data>
|
||||
<data name="barButtonItem3.ImageOptions.LargeImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name="resource.ExpandedWidth" type="System.Int32, mscorlib">
|
||||
<value>184</value>
|
||||
</data>
|
||||
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
|
||||
<value>7, 14</value>
|
||||
</data>
|
||||
<data name=">>bsi_Date.Name" xml:space="preserve">
|
||||
<value>bsi_Date</value>
|
||||
</data>
|
||||
<data name=">>ribbonControl1.Name" xml:space="preserve">
|
||||
<value>ribbonControl1</value>
|
||||
</data>
|
||||
<data name="barStaticItem1.ImageOptions.SvgImage" type="System.Resources.ResXNullRef, System.Windows.Forms">
|
||||
<value />
|
||||
</data>
|
||||
<data name=">>barButtonItem2.Name" xml:space="preserve">
|
||||
<value>barButtonItem2</value>
|
||||
</data>
|
||||
<data name="barButtonItem2.Caption" xml:space="preserve">
|
||||
<value>barButtonItem2</value>
|
||||
</data>
|
||||
<data name="barListItem1.ImageOptions.SvgImage" type="System.Resources.ResXNullRef, System.Windows.Forms">
|
||||
<value />
|
||||
</data>
|
||||
<data name=">>skinPaletteRibbonGalleryBarItem1.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraBars.SkinPaletteRibbonGalleryBarItem, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name="btnabout.ImageOptions.ImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name="ribbonGalleryBarItem1.ImageOptions.SvgImage" type="System.Resources.ResXNullRef, System.Windows.Forms">
|
||||
<value />
|
||||
</data>
|
||||
<data name="barStaticItem1.ImageOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
|
|
@ -222,4 +355,279 @@
|
|||
YzbnA2IOwfwxv8w/S5gS57g/AGl5Af+OTEZOAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
|
||||
<value>CenterScreen</value>
|
||||
</data>
|
||||
<data name="ribbonGalleryBarItem1.Caption" xml:space="preserve">
|
||||
<value>ribbonGalleryBarItem1</value>
|
||||
</data>
|
||||
<data name="barListItem1.ImageOptions.ImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name=">>barEditItem1.Name" xml:space="preserve">
|
||||
<value>barEditItem1</value>
|
||||
</data>
|
||||
<data name="ribbonControl1.ExpandCollapseItem.ImageOptions.SvgImage" type="System.Resources.ResXNullRef, System.Windows.Forms">
|
||||
<value />
|
||||
</data>
|
||||
<data name="barUserName.ImageOptions.LargeImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name=">>ribbonGalleryBarItem1.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraBars.RibbonGalleryBarItem, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name=">>barStaticItem3.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraBars.BarStaticItem, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name="barStaticItem3.ImageOptions.SvgImage" type="System.Resources.ResXNullRef, System.Windows.Forms">
|
||||
<value />
|
||||
</data>
|
||||
<data name="bsi_UserName.ImageOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
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
|
||||
</value>
|
||||
</data>
|
||||
<data name="bsi_Date.ImageOptions.SvgImage" type="System.Resources.ResXNullRef, System.Windows.Forms">
|
||||
<value />
|
||||
</data>
|
||||
<data name="bsi_Date.ImageOptions.ImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name=">>ribbonGalleryBarItem1.Name" xml:space="preserve">
|
||||
<value>ribbonGalleryBarItem1</value>
|
||||
</data>
|
||||
<data name=">>barUserName.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraBars.BarStaticItem, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name="barButtonItem1.ImageOptions.SvgImage" type="System.Resources.ResXNullRef, System.Windows.Forms">
|
||||
<value />
|
||||
</data>
|
||||
<data name=">>defaultLookAndFeel1.Type" xml:space="preserve">
|
||||
<value>DevExpress.LookAndFeel.DefaultLookAndFeel, DevExpress.Utils.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name=">>btnabout.Name" xml:space="preserve">
|
||||
<value>btnabout</value>
|
||||
</data>
|
||||
<data name="barEditItem1.ImageOptions.LargeImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name="ribbonPage1.Text" xml:space="preserve">
|
||||
<value>帮助</value>
|
||||
</data>
|
||||
<data name="barButtonItem1.ImageOptions.ImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name="repositoryItemTimeEdit1.Mask.EditMask" xml:space="preserve">
|
||||
<value>T</value>
|
||||
</data>
|
||||
<data name="barStaticItem1.ImageOptions.LargeImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name="ribbonStatusBar1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>0, 775</value>
|
||||
</data>
|
||||
<data name=">>ribbonStatusBar1.Name" xml:space="preserve">
|
||||
<value>ribbonStatusBar1</value>
|
||||
</data>
|
||||
<data name=">>barStaticItem2.Name" xml:space="preserve">
|
||||
<value>barStaticItem2</value>
|
||||
</data>
|
||||
<data name="barButtonItem3.Caption" xml:space="preserve">
|
||||
<value>注销</value>
|
||||
</data>
|
||||
<data name=">>ribbonPageGroup1.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraBars.Ribbon.RibbonPageGroup, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name="ribbonStatusBar1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>1165, 23</value>
|
||||
</data>
|
||||
<data name="bsi_UserName.ImageOptions.ImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name=">>bsi_UserName.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraBars.BarStaticItem, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name="navBarControl1.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
|
||||
<value>Left</value>
|
||||
</data>
|
||||
<data name=">>xtraTabbedMdiManager1.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraTabbedMdi.XtraTabbedMdiManager, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name=">>$this.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraBars.Ribbon.RibbonForm, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name="barEditItem1.ImageOptions.ImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name=">>$this.Name" xml:space="preserve">
|
||||
<value>MainForm</value>
|
||||
</data>
|
||||
<data name="navBarControl1.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>8</value>
|
||||
</data>
|
||||
<data name=">>navBarControl1.Name" xml:space="preserve">
|
||||
<value>navBarControl1</value>
|
||||
</data>
|
||||
<data name="barListItem1.ImageOptions.LargeImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name=">>repositoryItemTimeEdit1.Name" xml:space="preserve">
|
||||
<value>repositoryItemTimeEdit1</value>
|
||||
</data>
|
||||
<data name="barButtonItem3.ImageOptions.ImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name="ribbonControl1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>1165, 149</value>
|
||||
</data>
|
||||
<data name=">>barButtonItem1.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraBars.BarButtonItem, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name=">>barButtonItem2.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraBars.BarButtonItem, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name="navBarControl1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>0, 149</value>
|
||||
</data>
|
||||
<data name=">>ribbonPage1.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraBars.Ribbon.RibbonPage, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name=">>navBarControl1.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name="ribbonControl1.ExpandCollapseItem.ImageOptions.LargeImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name=">>btnabout.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraBars.BarButtonItem, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name="ribbonControl1.ExpandCollapseItem.ImageOptions.ImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name="ribbonControl1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>0, 0</value>
|
||||
</data>
|
||||
<data name=">>barButtonItem3.Name" xml:space="preserve">
|
||||
<value>barButtonItem3</value>
|
||||
</data>
|
||||
<data name=">>ribbonControl1.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraBars.Ribbon.RibbonControl, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name=">>timer1.Name" xml:space="preserve">
|
||||
<value>timer1</value>
|
||||
</data>
|
||||
<data name="$this.Text" xml:space="preserve">
|
||||
<value>主界面</value>
|
||||
</data>
|
||||
<data name=">>repositoryItemTimeEdit1.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraEditors.Repository.RepositoryItemTimeEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name="barStaticItem3.ImageOptions.LargeImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name="barStaticItem3.ImageOptions.ImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name=">>timer1.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Timer, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>barStaticItem2.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraBars.BarStaticItem, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name="barStaticItem1.Caption" xml:space="preserve">
|
||||
<value>用戶名: 管理員</value>
|
||||
</data>
|
||||
<data name="bsi_Date.Caption" xml:space="preserve">
|
||||
<value>DateTime</value>
|
||||
</data>
|
||||
<data name="bsi_Date.ImageOptions.LargeImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name="barButtonItem1.ImageOptions.LargeImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name="barStaticItem1.ImageOptions.ImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name="ribbonGalleryBarItem1.ImageOptions.ImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<data name="btnabout.ImageOptions.LargeImageIndex" type="System.Int32, mscorlib">
|
||||
<value>-1</value>
|
||||
</data>
|
||||
<assembly alias="DevExpress.Utils.v19.2" name="DevExpress.Utils.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||
<data name="repositoryItemTimeEdit1.Buttons" type="DevExpress.XtraEditors.Controls.ButtonPredefines, DevExpress.Utils.v19.2">
|
||||
<value>Combo</value>
|
||||
</data>
|
||||
<data name="bsi_UserName.ImageOptions.SvgImage" type="System.Resources.ResXNullRef, System.Windows.Forms">
|
||||
<value />
|
||||
</data>
|
||||
<data name="btnabout.ImageOptions.SvgImage" type="System.Resources.ResXNullRef, System.Windows.Forms">
|
||||
<value />
|
||||
</data>
|
||||
<data name="navBarControl1.Text" xml:space="preserve">
|
||||
<value>navBarControl1</value>
|
||||
</data>
|
||||
<data name=">>xtraTabbedMdiManager1.Name" xml:space="preserve">
|
||||
<value>xtraTabbedMdiManager1</value>
|
||||
</data>
|
||||
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>zh-CN</value>
|
||||
</metadata>
|
||||
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>219, 17</value>
|
||||
</metadata>
|
||||
<metadata name="xtraTabbedMdiManager1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="defaultLookAndFeel1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>309, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
|
|
@ -0,0 +1,219 @@
|
|||
<?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>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="bsi_UserName.ImageOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
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
|
||||
</value>
|
||||
</data>
|
||||
<data name="barStaticItem1.ImageOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
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
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
||||
|
|
@ -149,6 +149,9 @@
|
|||
<Compile Include="Entity\productBOMdetailInfo.cs" />
|
||||
<Compile Include="Entity\productBOMInfo.cs" />
|
||||
<Compile Include="Entity\productInfo.cs" />
|
||||
<Compile Include="Entity\productionBOMInfo.cs" />
|
||||
<Compile Include="Entity\productionRequisitionDetailInfo.cs" />
|
||||
<Compile Include="Entity\productionRequisitionInfo.cs" />
|
||||
<Compile Include="Entity\quotationdetailInfo.cs" />
|
||||
<Compile Include="Entity\quotationInfo.cs" />
|
||||
<Compile Include="Entity\requisitiondetailInfo.cs" />
|
||||
|
|
@ -223,6 +226,18 @@
|
|||
<Compile Include="Form\FrmproductBOM.designer.cs">
|
||||
<DependentUpon>FrmproductBOM.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Form\FrmproductionBOM.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form\FrmproductionBOM.designer.cs">
|
||||
<DependentUpon>FrmproductionBOM.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Form\FrmproductionRequisition.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form\FrmproductionRequisition.designer.cs">
|
||||
<DependentUpon>FrmproductionRequisition.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Form\Frmquotation.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
|
|
@ -448,6 +463,12 @@
|
|||
<EmbeddedResource Include="Form\FrmproductBOM.resx">
|
||||
<DependentUpon>FrmproductBOM.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Form\FrmproductionBOM.resx">
|
||||
<DependentUpon>FrmproductionBOM.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Form\FrmproductionRequisition.resx">
|
||||
<DependentUpon>FrmproductionRequisition.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Form\Frmquotation.resx">
|
||||
<DependentUpon>Frmquotation.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
|
@ -532,6 +553,9 @@
|
|||
<EmbeddedResource Include="MainForm.resx">
|
||||
<DependentUpon>MainForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="MainForm.zh-CN.resx">
|
||||
<DependentUpon>MainForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\licenses.licx" />
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
|
|
|
|||
Loading…
Reference in New Issue