18213 lines
1.1 MiB
18213 lines
1.1 MiB
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// 이 코드는 도구를 사용하여 생성되었습니다.
|
|
// 런타임 버전:4.0.30319.42000
|
|
//
|
|
// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면
|
|
// 이러한 변경 내용이 손실됩니다.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
#pragma warning disable 1591
|
|
|
|
namespace Project {
|
|
|
|
|
|
/// <summary>
|
|
///Represents a strongly typed in-memory cache of data.
|
|
///</summary>
|
|
[global::System.Serializable()]
|
|
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[global::System.ComponentModel.ToolboxItem(true)]
|
|
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
|
|
[global::System.Xml.Serialization.XmlRootAttribute("dsMSSQL")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
|
|
public partial class dsMSSQL : global::System.Data.DataSet {
|
|
|
|
private UsersDataTable tableUsers;
|
|
|
|
private ProjectsDataTable tableProjects;
|
|
|
|
private ItemsDataTable tableItems;
|
|
|
|
private InventoryDataTable tableInventory;
|
|
|
|
private LineCodeDataTable tableLineCode;
|
|
|
|
private UserGroupDataTable tableUserGroup;
|
|
|
|
private SPMasterDataTable tableSPMaster;
|
|
|
|
private EETGW_GroupUserDataTable tableEETGW_GroupUser;
|
|
|
|
private vGroupUserDataTable tablevGroupUser;
|
|
|
|
private JobReportDataTable tableJobReport;
|
|
|
|
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public dsMSSQL() {
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
|
|
base.Tables.CollectionChanged += schemaChangedHandler;
|
|
base.Relations.CollectionChanged += schemaChangedHandler;
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected dsMSSQL(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
base(info, context, false) {
|
|
if ((this.IsBinarySerialized(info, context) == true)) {
|
|
this.InitVars(false);
|
|
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
|
|
this.Tables.CollectionChanged += schemaChangedHandler1;
|
|
this.Relations.CollectionChanged += schemaChangedHandler1;
|
|
return;
|
|
}
|
|
string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
|
|
if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
|
|
global::System.Data.DataSet ds = new global::System.Data.DataSet();
|
|
ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
|
|
if ((ds.Tables["Users"] != null)) {
|
|
base.Tables.Add(new UsersDataTable(ds.Tables["Users"]));
|
|
}
|
|
if ((ds.Tables["Projects"] != null)) {
|
|
base.Tables.Add(new ProjectsDataTable(ds.Tables["Projects"]));
|
|
}
|
|
if ((ds.Tables["Items"] != null)) {
|
|
base.Tables.Add(new ItemsDataTable(ds.Tables["Items"]));
|
|
}
|
|
if ((ds.Tables["Inventory"] != null)) {
|
|
base.Tables.Add(new InventoryDataTable(ds.Tables["Inventory"]));
|
|
}
|
|
if ((ds.Tables["LineCode"] != null)) {
|
|
base.Tables.Add(new LineCodeDataTable(ds.Tables["LineCode"]));
|
|
}
|
|
if ((ds.Tables["UserGroup"] != null)) {
|
|
base.Tables.Add(new UserGroupDataTable(ds.Tables["UserGroup"]));
|
|
}
|
|
if ((ds.Tables["SPMaster"] != null)) {
|
|
base.Tables.Add(new SPMasterDataTable(ds.Tables["SPMaster"]));
|
|
}
|
|
if ((ds.Tables["EETGW_GroupUser"] != null)) {
|
|
base.Tables.Add(new EETGW_GroupUserDataTable(ds.Tables["EETGW_GroupUser"]));
|
|
}
|
|
if ((ds.Tables["vGroupUser"] != null)) {
|
|
base.Tables.Add(new vGroupUserDataTable(ds.Tables["vGroupUser"]));
|
|
}
|
|
if ((ds.Tables["JobReport"] != null)) {
|
|
base.Tables.Add(new JobReportDataTable(ds.Tables["JobReport"]));
|
|
}
|
|
this.DataSetName = ds.DataSetName;
|
|
this.Prefix = ds.Prefix;
|
|
this.Namespace = ds.Namespace;
|
|
this.Locale = ds.Locale;
|
|
this.CaseSensitive = ds.CaseSensitive;
|
|
this.EnforceConstraints = ds.EnforceConstraints;
|
|
this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
|
|
this.InitVars();
|
|
}
|
|
else {
|
|
this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
|
|
}
|
|
this.GetSerializationData(info, context);
|
|
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
|
|
base.Tables.CollectionChanged += schemaChangedHandler;
|
|
this.Relations.CollectionChanged += schemaChangedHandler;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public UsersDataTable Users {
|
|
get {
|
|
return this.tableUsers;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public ProjectsDataTable Projects {
|
|
get {
|
|
return this.tableProjects;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public ItemsDataTable Items {
|
|
get {
|
|
return this.tableItems;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public InventoryDataTable Inventory {
|
|
get {
|
|
return this.tableInventory;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public LineCodeDataTable LineCode {
|
|
get {
|
|
return this.tableLineCode;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public UserGroupDataTable UserGroup {
|
|
get {
|
|
return this.tableUserGroup;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public SPMasterDataTable SPMaster {
|
|
get {
|
|
return this.tableSPMaster;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public EETGW_GroupUserDataTable EETGW_GroupUser {
|
|
get {
|
|
return this.tableEETGW_GroupUser;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public vGroupUserDataTable vGroupUser {
|
|
get {
|
|
return this.tablevGroupUser;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
|
public JobReportDataTable JobReport {
|
|
get {
|
|
return this.tableJobReport;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.BrowsableAttribute(true)]
|
|
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
|
|
public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
|
|
get {
|
|
return this._schemaSerializationMode;
|
|
}
|
|
set {
|
|
this._schemaSerializationMode = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
|
|
public new global::System.Data.DataTableCollection Tables {
|
|
get {
|
|
return base.Tables;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
|
|
public new global::System.Data.DataRelationCollection Relations {
|
|
get {
|
|
return base.Relations;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void InitializeDerivedDataSet() {
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public override global::System.Data.DataSet Clone() {
|
|
dsMSSQL cln = ((dsMSSQL)(base.Clone()));
|
|
cln.InitVars();
|
|
cln.SchemaSerializationMode = this.SchemaSerializationMode;
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override bool ShouldSerializeTables() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override bool ShouldSerializeRelations() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
|
|
if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
|
|
this.Reset();
|
|
global::System.Data.DataSet ds = new global::System.Data.DataSet();
|
|
ds.ReadXml(reader);
|
|
if ((ds.Tables["Users"] != null)) {
|
|
base.Tables.Add(new UsersDataTable(ds.Tables["Users"]));
|
|
}
|
|
if ((ds.Tables["Projects"] != null)) {
|
|
base.Tables.Add(new ProjectsDataTable(ds.Tables["Projects"]));
|
|
}
|
|
if ((ds.Tables["Items"] != null)) {
|
|
base.Tables.Add(new ItemsDataTable(ds.Tables["Items"]));
|
|
}
|
|
if ((ds.Tables["Inventory"] != null)) {
|
|
base.Tables.Add(new InventoryDataTable(ds.Tables["Inventory"]));
|
|
}
|
|
if ((ds.Tables["LineCode"] != null)) {
|
|
base.Tables.Add(new LineCodeDataTable(ds.Tables["LineCode"]));
|
|
}
|
|
if ((ds.Tables["UserGroup"] != null)) {
|
|
base.Tables.Add(new UserGroupDataTable(ds.Tables["UserGroup"]));
|
|
}
|
|
if ((ds.Tables["SPMaster"] != null)) {
|
|
base.Tables.Add(new SPMasterDataTable(ds.Tables["SPMaster"]));
|
|
}
|
|
if ((ds.Tables["EETGW_GroupUser"] != null)) {
|
|
base.Tables.Add(new EETGW_GroupUserDataTable(ds.Tables["EETGW_GroupUser"]));
|
|
}
|
|
if ((ds.Tables["vGroupUser"] != null)) {
|
|
base.Tables.Add(new vGroupUserDataTable(ds.Tables["vGroupUser"]));
|
|
}
|
|
if ((ds.Tables["JobReport"] != null)) {
|
|
base.Tables.Add(new JobReportDataTable(ds.Tables["JobReport"]));
|
|
}
|
|
this.DataSetName = ds.DataSetName;
|
|
this.Prefix = ds.Prefix;
|
|
this.Namespace = ds.Namespace;
|
|
this.Locale = ds.Locale;
|
|
this.CaseSensitive = ds.CaseSensitive;
|
|
this.EnforceConstraints = ds.EnforceConstraints;
|
|
this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
|
|
this.InitVars();
|
|
}
|
|
else {
|
|
this.ReadXml(reader);
|
|
this.InitVars();
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
|
|
global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
|
|
this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
|
|
stream.Position = 0;
|
|
return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal void InitVars() {
|
|
this.InitVars(true);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal void InitVars(bool initTable) {
|
|
this.tableUsers = ((UsersDataTable)(base.Tables["Users"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tableUsers != null)) {
|
|
this.tableUsers.InitVars();
|
|
}
|
|
}
|
|
this.tableProjects = ((ProjectsDataTable)(base.Tables["Projects"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tableProjects != null)) {
|
|
this.tableProjects.InitVars();
|
|
}
|
|
}
|
|
this.tableItems = ((ItemsDataTable)(base.Tables["Items"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tableItems != null)) {
|
|
this.tableItems.InitVars();
|
|
}
|
|
}
|
|
this.tableInventory = ((InventoryDataTable)(base.Tables["Inventory"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tableInventory != null)) {
|
|
this.tableInventory.InitVars();
|
|
}
|
|
}
|
|
this.tableLineCode = ((LineCodeDataTable)(base.Tables["LineCode"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tableLineCode != null)) {
|
|
this.tableLineCode.InitVars();
|
|
}
|
|
}
|
|
this.tableUserGroup = ((UserGroupDataTable)(base.Tables["UserGroup"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tableUserGroup != null)) {
|
|
this.tableUserGroup.InitVars();
|
|
}
|
|
}
|
|
this.tableSPMaster = ((SPMasterDataTable)(base.Tables["SPMaster"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tableSPMaster != null)) {
|
|
this.tableSPMaster.InitVars();
|
|
}
|
|
}
|
|
this.tableEETGW_GroupUser = ((EETGW_GroupUserDataTable)(base.Tables["EETGW_GroupUser"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tableEETGW_GroupUser != null)) {
|
|
this.tableEETGW_GroupUser.InitVars();
|
|
}
|
|
}
|
|
this.tablevGroupUser = ((vGroupUserDataTable)(base.Tables["vGroupUser"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tablevGroupUser != null)) {
|
|
this.tablevGroupUser.InitVars();
|
|
}
|
|
}
|
|
this.tableJobReport = ((JobReportDataTable)(base.Tables["JobReport"]));
|
|
if ((initTable == true)) {
|
|
if ((this.tableJobReport != null)) {
|
|
this.tableJobReport.InitVars();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitClass() {
|
|
this.DataSetName = "dsMSSQL";
|
|
this.Prefix = "";
|
|
this.Namespace = "http://tempuri.org/dsMSSQL.xsd";
|
|
this.EnforceConstraints = true;
|
|
this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
|
|
this.tableUsers = new UsersDataTable();
|
|
base.Tables.Add(this.tableUsers);
|
|
this.tableProjects = new ProjectsDataTable();
|
|
base.Tables.Add(this.tableProjects);
|
|
this.tableItems = new ItemsDataTable();
|
|
base.Tables.Add(this.tableItems);
|
|
this.tableInventory = new InventoryDataTable();
|
|
base.Tables.Add(this.tableInventory);
|
|
this.tableLineCode = new LineCodeDataTable();
|
|
base.Tables.Add(this.tableLineCode);
|
|
this.tableUserGroup = new UserGroupDataTable();
|
|
base.Tables.Add(this.tableUserGroup);
|
|
this.tableSPMaster = new SPMasterDataTable();
|
|
base.Tables.Add(this.tableSPMaster);
|
|
this.tableEETGW_GroupUser = new EETGW_GroupUserDataTable();
|
|
base.Tables.Add(this.tableEETGW_GroupUser);
|
|
this.tablevGroupUser = new vGroupUserDataTable();
|
|
base.Tables.Add(this.tablevGroupUser);
|
|
this.tableJobReport = new JobReportDataTable();
|
|
base.Tables.Add(this.tableJobReport);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private bool ShouldSerializeUsers() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private bool ShouldSerializeProjects() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private bool ShouldSerializeItems() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private bool ShouldSerializeInventory() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private bool ShouldSerializeLineCode() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private bool ShouldSerializeUserGroup() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private bool ShouldSerializeSPMaster() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private bool ShouldSerializeEETGW_GroupUser() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private bool ShouldSerializevGroupUser() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private bool ShouldSerializeJobReport() {
|
|
return false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
|
|
if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
|
|
this.InitVars();
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
dsMSSQL ds = new dsMSSQL();
|
|
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
|
|
any.Namespace = ds.Namespace;
|
|
sequence.Items.Add(any);
|
|
type.Particle = sequence;
|
|
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
|
if (xs.Contains(dsSchema.TargetNamespace)) {
|
|
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
|
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
|
try {
|
|
global::System.Xml.Schema.XmlSchema schema = null;
|
|
dsSchema.Write(s1);
|
|
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
|
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
|
s2.SetLength(0);
|
|
schema.Write(s2);
|
|
if ((s1.Length == s2.Length)) {
|
|
s1.Position = 0;
|
|
s2.Position = 0;
|
|
for (; ((s1.Position != s1.Length)
|
|
&& (s1.ReadByte() == s2.ReadByte())); ) {
|
|
;
|
|
}
|
|
if ((s1.Position == s1.Length)) {
|
|
return type;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
finally {
|
|
if ((s1 != null)) {
|
|
s1.Close();
|
|
}
|
|
if ((s2 != null)) {
|
|
s2.Close();
|
|
}
|
|
}
|
|
}
|
|
xs.Add(dsSchema);
|
|
return type;
|
|
}
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public delegate void UsersRowChangeEventHandler(object sender, UsersRowChangeEvent e);
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public delegate void ProjectsRowChangeEventHandler(object sender, ProjectsRowChangeEvent e);
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public delegate void ItemsRowChangeEventHandler(object sender, ItemsRowChangeEvent e);
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public delegate void InventoryRowChangeEventHandler(object sender, InventoryRowChangeEvent e);
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public delegate void LineCodeRowChangeEventHandler(object sender, LineCodeRowChangeEvent e);
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public delegate void UserGroupRowChangeEventHandler(object sender, UserGroupRowChangeEvent e);
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public delegate void SPMasterRowChangeEventHandler(object sender, SPMasterRowChangeEvent e);
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public delegate void EETGW_GroupUserRowChangeEventHandler(object sender, EETGW_GroupUserRowChangeEvent e);
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public delegate void vGroupUserRowChangeEventHandler(object sender, vGroupUserRowChangeEvent e);
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public delegate void JobReportRowChangeEventHandler(object sender, JobReportRowChangeEvent e);
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[global::System.Serializable()]
|
|
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
public partial class UsersDataTable : global::System.Data.TypedTableBase<UsersRow> {
|
|
|
|
private global::System.Data.DataColumn columnid;
|
|
|
|
private global::System.Data.DataColumn columnpassword;
|
|
|
|
private global::System.Data.DataColumn columnname;
|
|
|
|
private global::System.Data.DataColumn columndept;
|
|
|
|
private global::System.Data.DataColumn columngrade;
|
|
|
|
private global::System.Data.DataColumn columnemail;
|
|
|
|
private global::System.Data.DataColumn columnlevel;
|
|
|
|
private global::System.Data.DataColumn columnindate;
|
|
|
|
private global::System.Data.DataColumn columnoutdate;
|
|
|
|
private global::System.Data.DataColumn columnmemo;
|
|
|
|
private global::System.Data.DataColumn columnwuid;
|
|
|
|
private global::System.Data.DataColumn columnwdate;
|
|
|
|
private global::System.Data.DataColumn columntel;
|
|
|
|
private global::System.Data.DataColumn columnnameE;
|
|
|
|
private global::System.Data.DataColumn columnhp;
|
|
|
|
private global::System.Data.DataColumn columnplace;
|
|
|
|
private global::System.Data.DataColumn columnads_title;
|
|
|
|
private global::System.Data.DataColumn columnads_created;
|
|
|
|
private global::System.Data.DataColumn columnads_employNo;
|
|
|
|
private global::System.Data.DataColumn columnprocesss;
|
|
|
|
private global::System.Data.DataColumn columngcode;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public UsersDataTable() {
|
|
this.TableName = "Users";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal UsersDataTable(global::System.Data.DataTable table) {
|
|
this.TableName = table.TableName;
|
|
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
this.CaseSensitive = table.CaseSensitive;
|
|
}
|
|
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
this.Locale = table.Locale;
|
|
}
|
|
if ((table.Namespace != table.DataSet.Namespace)) {
|
|
this.Namespace = table.Namespace;
|
|
}
|
|
this.Prefix = table.Prefix;
|
|
this.MinimumCapacity = table.MinimumCapacity;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected UsersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
base(info, context) {
|
|
this.InitVars();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn idColumn {
|
|
get {
|
|
return this.columnid;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn passwordColumn {
|
|
get {
|
|
return this.columnpassword;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn nameColumn {
|
|
get {
|
|
return this.columnname;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn deptColumn {
|
|
get {
|
|
return this.columndept;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn gradeColumn {
|
|
get {
|
|
return this.columngrade;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn emailColumn {
|
|
get {
|
|
return this.columnemail;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn levelColumn {
|
|
get {
|
|
return this.columnlevel;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn indateColumn {
|
|
get {
|
|
return this.columnindate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn outdateColumn {
|
|
get {
|
|
return this.columnoutdate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn memoColumn {
|
|
get {
|
|
return this.columnmemo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn wuidColumn {
|
|
get {
|
|
return this.columnwuid;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn wdateColumn {
|
|
get {
|
|
return this.columnwdate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn telColumn {
|
|
get {
|
|
return this.columntel;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn nameEColumn {
|
|
get {
|
|
return this.columnnameE;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn hpColumn {
|
|
get {
|
|
return this.columnhp;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn placeColumn {
|
|
get {
|
|
return this.columnplace;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn ads_titleColumn {
|
|
get {
|
|
return this.columnads_title;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn ads_createdColumn {
|
|
get {
|
|
return this.columnads_created;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn ads_employNoColumn {
|
|
get {
|
|
return this.columnads_employNo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn processsColumn {
|
|
get {
|
|
return this.columnprocesss;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn gcodeColumn {
|
|
get {
|
|
return this.columngcode;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public UsersRow this[int index] {
|
|
get {
|
|
return ((UsersRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event UsersRowChangeEventHandler UsersRowChanging;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event UsersRowChangeEventHandler UsersRowChanged;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event UsersRowChangeEventHandler UsersRowDeleting;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event UsersRowChangeEventHandler UsersRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void AddUsersRow(UsersRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public UsersRow AddUsersRow(
|
|
string id,
|
|
string password,
|
|
string name,
|
|
string dept,
|
|
string grade,
|
|
string email,
|
|
short level,
|
|
string indate,
|
|
string outdate,
|
|
string memo,
|
|
string wuid,
|
|
System.DateTime wdate,
|
|
string tel,
|
|
string nameE,
|
|
string hp,
|
|
string place,
|
|
string ads_title,
|
|
string ads_created,
|
|
string ads_employNo,
|
|
string processs,
|
|
string gcode) {
|
|
UsersRow rowUsersRow = ((UsersRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
id,
|
|
password,
|
|
name,
|
|
dept,
|
|
grade,
|
|
email,
|
|
level,
|
|
indate,
|
|
outdate,
|
|
memo,
|
|
wuid,
|
|
wdate,
|
|
tel,
|
|
nameE,
|
|
hp,
|
|
place,
|
|
ads_title,
|
|
ads_created,
|
|
ads_employNo,
|
|
processs,
|
|
gcode};
|
|
rowUsersRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowUsersRow);
|
|
return rowUsersRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public UsersRow FindByid(string id) {
|
|
return ((UsersRow)(this.Rows.Find(new object[] {
|
|
id})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public override global::System.Data.DataTable Clone() {
|
|
UsersDataTable cln = ((UsersDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new UsersDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal void InitVars() {
|
|
this.columnid = base.Columns["id"];
|
|
this.columnpassword = base.Columns["password"];
|
|
this.columnname = base.Columns["name"];
|
|
this.columndept = base.Columns["dept"];
|
|
this.columngrade = base.Columns["grade"];
|
|
this.columnemail = base.Columns["email"];
|
|
this.columnlevel = base.Columns["level"];
|
|
this.columnindate = base.Columns["indate"];
|
|
this.columnoutdate = base.Columns["outdate"];
|
|
this.columnmemo = base.Columns["memo"];
|
|
this.columnwuid = base.Columns["wuid"];
|
|
this.columnwdate = base.Columns["wdate"];
|
|
this.columntel = base.Columns["tel"];
|
|
this.columnnameE = base.Columns["nameE"];
|
|
this.columnhp = base.Columns["hp"];
|
|
this.columnplace = base.Columns["place"];
|
|
this.columnads_title = base.Columns["ads_title"];
|
|
this.columnads_created = base.Columns["ads_created"];
|
|
this.columnads_employNo = base.Columns["ads_employNo"];
|
|
this.columnprocesss = base.Columns["processs"];
|
|
this.columngcode = base.Columns["gcode"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitClass() {
|
|
this.columnid = new global::System.Data.DataColumn("id", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnid);
|
|
this.columnpassword = new global::System.Data.DataColumn("password", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnpassword);
|
|
this.columnname = new global::System.Data.DataColumn("name", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnname);
|
|
this.columndept = new global::System.Data.DataColumn("dept", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columndept);
|
|
this.columngrade = new global::System.Data.DataColumn("grade", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columngrade);
|
|
this.columnemail = new global::System.Data.DataColumn("email", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnemail);
|
|
this.columnlevel = new global::System.Data.DataColumn("level", typeof(short), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnlevel);
|
|
this.columnindate = new global::System.Data.DataColumn("indate", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnindate);
|
|
this.columnoutdate = new global::System.Data.DataColumn("outdate", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnoutdate);
|
|
this.columnmemo = new global::System.Data.DataColumn("memo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnmemo);
|
|
this.columnwuid = new global::System.Data.DataColumn("wuid", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnwuid);
|
|
this.columnwdate = new global::System.Data.DataColumn("wdate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnwdate);
|
|
this.columntel = new global::System.Data.DataColumn("tel", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columntel);
|
|
this.columnnameE = new global::System.Data.DataColumn("nameE", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnnameE);
|
|
this.columnhp = new global::System.Data.DataColumn("hp", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnhp);
|
|
this.columnplace = new global::System.Data.DataColumn("place", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnplace);
|
|
this.columnads_title = new global::System.Data.DataColumn("ads_title", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnads_title);
|
|
this.columnads_created = new global::System.Data.DataColumn("ads_created", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnads_created);
|
|
this.columnads_employNo = new global::System.Data.DataColumn("ads_employNo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnads_employNo);
|
|
this.columnprocesss = new global::System.Data.DataColumn("processs", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnprocesss);
|
|
this.columngcode = new global::System.Data.DataColumn("gcode", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columngcode);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columnid}, true));
|
|
this.columnid.AllowDBNull = false;
|
|
this.columnid.Unique = true;
|
|
this.columnid.MaxLength = 20;
|
|
this.columnpassword.MaxLength = 50;
|
|
this.columnname.MaxLength = 100;
|
|
this.columndept.MaxLength = 100;
|
|
this.columngrade.MaxLength = 10;
|
|
this.columnemail.MaxLength = 100;
|
|
this.columnindate.MaxLength = 20;
|
|
this.columnoutdate.MaxLength = 20;
|
|
this.columnmemo.MaxLength = 255;
|
|
this.columnwuid.AllowDBNull = false;
|
|
this.columnwuid.MaxLength = 20;
|
|
this.columnwdate.AllowDBNull = false;
|
|
this.columntel.MaxLength = 20;
|
|
this.columnnameE.MaxLength = 100;
|
|
this.columnhp.MaxLength = 20;
|
|
this.columnplace.MaxLength = 100;
|
|
this.columnads_title.MaxLength = 100;
|
|
this.columnads_created.MaxLength = 50;
|
|
this.columnads_employNo.MaxLength = 50;
|
|
this.columnprocesss.MaxLength = 100;
|
|
this.columngcode.MaxLength = 10;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public UsersRow NewUsersRow() {
|
|
return ((UsersRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new UsersRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(UsersRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.UsersRowChanged != null)) {
|
|
this.UsersRowChanged(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.UsersRowChanging != null)) {
|
|
this.UsersRowChanging(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.UsersRowDeleted != null)) {
|
|
this.UsersRowDeleted(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.UsersRowDeleting != null)) {
|
|
this.UsersRowDeleting(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void RemoveUsersRow(UsersRow row) {
|
|
this.Rows.Remove(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
dsMSSQL ds = new dsMSSQL();
|
|
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
|
any1.MinOccurs = new decimal(0);
|
|
any1.MaxOccurs = decimal.MaxValue;
|
|
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
sequence.Items.Add(any1);
|
|
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
|
any2.MinOccurs = new decimal(1);
|
|
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
sequence.Items.Add(any2);
|
|
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
attribute1.Name = "namespace";
|
|
attribute1.FixedValue = ds.Namespace;
|
|
type.Attributes.Add(attribute1);
|
|
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
attribute2.Name = "tableTypeName";
|
|
attribute2.FixedValue = "UsersDataTable";
|
|
type.Attributes.Add(attribute2);
|
|
type.Particle = sequence;
|
|
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
|
if (xs.Contains(dsSchema.TargetNamespace)) {
|
|
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
|
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
|
try {
|
|
global::System.Xml.Schema.XmlSchema schema = null;
|
|
dsSchema.Write(s1);
|
|
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
|
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
|
s2.SetLength(0);
|
|
schema.Write(s2);
|
|
if ((s1.Length == s2.Length)) {
|
|
s1.Position = 0;
|
|
s2.Position = 0;
|
|
for (; ((s1.Position != s1.Length)
|
|
&& (s1.ReadByte() == s2.ReadByte())); ) {
|
|
;
|
|
}
|
|
if ((s1.Position == s1.Length)) {
|
|
return type;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
finally {
|
|
if ((s1 != null)) {
|
|
s1.Close();
|
|
}
|
|
if ((s2 != null)) {
|
|
s2.Close();
|
|
}
|
|
}
|
|
}
|
|
xs.Add(dsSchema);
|
|
return type;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[global::System.Serializable()]
|
|
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
public partial class ProjectsDataTable : global::System.Data.TypedTableBase<ProjectsRow> {
|
|
|
|
private global::System.Data.DataColumn columnidx;
|
|
|
|
private global::System.Data.DataColumn columnname;
|
|
|
|
private global::System.Data.DataColumn columnpdate;
|
|
|
|
private global::System.Data.DataColumn columnrequest;
|
|
|
|
private global::System.Data.DataColumn columnreqstaff;
|
|
|
|
private global::System.Data.DataColumn columnsdate;
|
|
|
|
private global::System.Data.DataColumn columnedate;
|
|
|
|
private global::System.Data.DataColumn columnodate;
|
|
|
|
private global::System.Data.DataColumn columnmemo;
|
|
|
|
private global::System.Data.DataColumn columnwuid;
|
|
|
|
private global::System.Data.DataColumn columnwdate;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public ProjectsDataTable() {
|
|
this.TableName = "Projects";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal ProjectsDataTable(global::System.Data.DataTable table) {
|
|
this.TableName = table.TableName;
|
|
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
this.CaseSensitive = table.CaseSensitive;
|
|
}
|
|
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
this.Locale = table.Locale;
|
|
}
|
|
if ((table.Namespace != table.DataSet.Namespace)) {
|
|
this.Namespace = table.Namespace;
|
|
}
|
|
this.Prefix = table.Prefix;
|
|
this.MinimumCapacity = table.MinimumCapacity;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected ProjectsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
base(info, context) {
|
|
this.InitVars();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn idxColumn {
|
|
get {
|
|
return this.columnidx;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn nameColumn {
|
|
get {
|
|
return this.columnname;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn pdateColumn {
|
|
get {
|
|
return this.columnpdate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn requestColumn {
|
|
get {
|
|
return this.columnrequest;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn reqstaffColumn {
|
|
get {
|
|
return this.columnreqstaff;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn sdateColumn {
|
|
get {
|
|
return this.columnsdate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn edateColumn {
|
|
get {
|
|
return this.columnedate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn odateColumn {
|
|
get {
|
|
return this.columnodate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn memoColumn {
|
|
get {
|
|
return this.columnmemo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn wuidColumn {
|
|
get {
|
|
return this.columnwuid;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn wdateColumn {
|
|
get {
|
|
return this.columnwdate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public ProjectsRow this[int index] {
|
|
get {
|
|
return ((ProjectsRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event ProjectsRowChangeEventHandler ProjectsRowChanging;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event ProjectsRowChangeEventHandler ProjectsRowChanged;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event ProjectsRowChangeEventHandler ProjectsRowDeleting;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event ProjectsRowChangeEventHandler ProjectsRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void AddProjectsRow(ProjectsRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public ProjectsRow AddProjectsRow(string name, string pdate, string request, string reqstaff, string sdate, string edate, string odate, string memo, string wuid, System.DateTime wdate) {
|
|
ProjectsRow rowProjectsRow = ((ProjectsRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
null,
|
|
name,
|
|
pdate,
|
|
request,
|
|
reqstaff,
|
|
sdate,
|
|
edate,
|
|
odate,
|
|
memo,
|
|
wuid,
|
|
wdate};
|
|
rowProjectsRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowProjectsRow);
|
|
return rowProjectsRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public ProjectsRow FindByidx(int idx) {
|
|
return ((ProjectsRow)(this.Rows.Find(new object[] {
|
|
idx})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public override global::System.Data.DataTable Clone() {
|
|
ProjectsDataTable cln = ((ProjectsDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new ProjectsDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal void InitVars() {
|
|
this.columnidx = base.Columns["idx"];
|
|
this.columnname = base.Columns["name"];
|
|
this.columnpdate = base.Columns["pdate"];
|
|
this.columnrequest = base.Columns["request"];
|
|
this.columnreqstaff = base.Columns["reqstaff"];
|
|
this.columnsdate = base.Columns["sdate"];
|
|
this.columnedate = base.Columns["edate"];
|
|
this.columnodate = base.Columns["odate"];
|
|
this.columnmemo = base.Columns["memo"];
|
|
this.columnwuid = base.Columns["wuid"];
|
|
this.columnwdate = base.Columns["wdate"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitClass() {
|
|
this.columnidx = new global::System.Data.DataColumn("idx", typeof(int), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnidx);
|
|
this.columnname = new global::System.Data.DataColumn("name", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnname);
|
|
this.columnpdate = new global::System.Data.DataColumn("pdate", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnpdate);
|
|
this.columnrequest = new global::System.Data.DataColumn("request", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnrequest);
|
|
this.columnreqstaff = new global::System.Data.DataColumn("reqstaff", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnreqstaff);
|
|
this.columnsdate = new global::System.Data.DataColumn("sdate", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnsdate);
|
|
this.columnedate = new global::System.Data.DataColumn("edate", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnedate);
|
|
this.columnodate = new global::System.Data.DataColumn("odate", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnodate);
|
|
this.columnmemo = new global::System.Data.DataColumn("memo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnmemo);
|
|
this.columnwuid = new global::System.Data.DataColumn("wuid", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnwuid);
|
|
this.columnwdate = new global::System.Data.DataColumn("wdate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnwdate);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columnidx}, true));
|
|
this.columnidx.AutoIncrement = true;
|
|
this.columnidx.AutoIncrementSeed = -1;
|
|
this.columnidx.AutoIncrementStep = -1;
|
|
this.columnidx.AllowDBNull = false;
|
|
this.columnidx.ReadOnly = true;
|
|
this.columnidx.Unique = true;
|
|
this.columnname.MaxLength = 50;
|
|
this.columnpdate.MaxLength = 10;
|
|
this.columnrequest.MaxLength = 50;
|
|
this.columnreqstaff.MaxLength = 50;
|
|
this.columnsdate.MaxLength = 10;
|
|
this.columnedate.MaxLength = 10;
|
|
this.columnodate.MaxLength = 10;
|
|
this.columnmemo.MaxLength = 255;
|
|
this.columnwuid.AllowDBNull = false;
|
|
this.columnwuid.MaxLength = 20;
|
|
this.columnwdate.AllowDBNull = false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public ProjectsRow NewProjectsRow() {
|
|
return ((ProjectsRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new ProjectsRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(ProjectsRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.ProjectsRowChanged != null)) {
|
|
this.ProjectsRowChanged(this, new ProjectsRowChangeEvent(((ProjectsRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.ProjectsRowChanging != null)) {
|
|
this.ProjectsRowChanging(this, new ProjectsRowChangeEvent(((ProjectsRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.ProjectsRowDeleted != null)) {
|
|
this.ProjectsRowDeleted(this, new ProjectsRowChangeEvent(((ProjectsRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.ProjectsRowDeleting != null)) {
|
|
this.ProjectsRowDeleting(this, new ProjectsRowChangeEvent(((ProjectsRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void RemoveProjectsRow(ProjectsRow row) {
|
|
this.Rows.Remove(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
dsMSSQL ds = new dsMSSQL();
|
|
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
|
any1.MinOccurs = new decimal(0);
|
|
any1.MaxOccurs = decimal.MaxValue;
|
|
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
sequence.Items.Add(any1);
|
|
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
|
any2.MinOccurs = new decimal(1);
|
|
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
sequence.Items.Add(any2);
|
|
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
attribute1.Name = "namespace";
|
|
attribute1.FixedValue = ds.Namespace;
|
|
type.Attributes.Add(attribute1);
|
|
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
attribute2.Name = "tableTypeName";
|
|
attribute2.FixedValue = "ProjectsDataTable";
|
|
type.Attributes.Add(attribute2);
|
|
type.Particle = sequence;
|
|
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
|
if (xs.Contains(dsSchema.TargetNamespace)) {
|
|
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
|
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
|
try {
|
|
global::System.Xml.Schema.XmlSchema schema = null;
|
|
dsSchema.Write(s1);
|
|
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
|
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
|
s2.SetLength(0);
|
|
schema.Write(s2);
|
|
if ((s1.Length == s2.Length)) {
|
|
s1.Position = 0;
|
|
s2.Position = 0;
|
|
for (; ((s1.Position != s1.Length)
|
|
&& (s1.ReadByte() == s2.ReadByte())); ) {
|
|
;
|
|
}
|
|
if ((s1.Position == s1.Length)) {
|
|
return type;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
finally {
|
|
if ((s1 != null)) {
|
|
s1.Close();
|
|
}
|
|
if ((s2 != null)) {
|
|
s2.Close();
|
|
}
|
|
}
|
|
}
|
|
xs.Add(dsSchema);
|
|
return type;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[global::System.Serializable()]
|
|
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
public partial class ItemsDataTable : global::System.Data.TypedTableBase<ItemsRow> {
|
|
|
|
private global::System.Data.DataColumn columnidx;
|
|
|
|
private global::System.Data.DataColumn columnname;
|
|
|
|
private global::System.Data.DataColumn columnsid;
|
|
|
|
private global::System.Data.DataColumn columnmodel;
|
|
|
|
private global::System.Data.DataColumn columnmanu;
|
|
|
|
private global::System.Data.DataColumn columnsupply;
|
|
|
|
private global::System.Data.DataColumn columnmemo;
|
|
|
|
private global::System.Data.DataColumn columnwuid;
|
|
|
|
private global::System.Data.DataColumn columnwdate;
|
|
|
|
private global::System.Data.DataColumn columnprice;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public ItemsDataTable() {
|
|
this.TableName = "Items";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal ItemsDataTable(global::System.Data.DataTable table) {
|
|
this.TableName = table.TableName;
|
|
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
this.CaseSensitive = table.CaseSensitive;
|
|
}
|
|
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
this.Locale = table.Locale;
|
|
}
|
|
if ((table.Namespace != table.DataSet.Namespace)) {
|
|
this.Namespace = table.Namespace;
|
|
}
|
|
this.Prefix = table.Prefix;
|
|
this.MinimumCapacity = table.MinimumCapacity;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected ItemsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
base(info, context) {
|
|
this.InitVars();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn idxColumn {
|
|
get {
|
|
return this.columnidx;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn nameColumn {
|
|
get {
|
|
return this.columnname;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn sidColumn {
|
|
get {
|
|
return this.columnsid;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn modelColumn {
|
|
get {
|
|
return this.columnmodel;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn manuColumn {
|
|
get {
|
|
return this.columnmanu;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn supplyColumn {
|
|
get {
|
|
return this.columnsupply;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn memoColumn {
|
|
get {
|
|
return this.columnmemo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn wuidColumn {
|
|
get {
|
|
return this.columnwuid;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn wdateColumn {
|
|
get {
|
|
return this.columnwdate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn priceColumn {
|
|
get {
|
|
return this.columnprice;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public ItemsRow this[int index] {
|
|
get {
|
|
return ((ItemsRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event ItemsRowChangeEventHandler ItemsRowChanging;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event ItemsRowChangeEventHandler ItemsRowChanged;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event ItemsRowChangeEventHandler ItemsRowDeleting;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event ItemsRowChangeEventHandler ItemsRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void AddItemsRow(ItemsRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public ItemsRow AddItemsRow(string name, string sid, string model, string manu, string supply, string memo, string wuid, System.DateTime wdate, decimal price) {
|
|
ItemsRow rowItemsRow = ((ItemsRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
null,
|
|
name,
|
|
sid,
|
|
model,
|
|
manu,
|
|
supply,
|
|
memo,
|
|
wuid,
|
|
wdate,
|
|
price};
|
|
rowItemsRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowItemsRow);
|
|
return rowItemsRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public ItemsRow FindByidx(int idx) {
|
|
return ((ItemsRow)(this.Rows.Find(new object[] {
|
|
idx})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public override global::System.Data.DataTable Clone() {
|
|
ItemsDataTable cln = ((ItemsDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new ItemsDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal void InitVars() {
|
|
this.columnidx = base.Columns["idx"];
|
|
this.columnname = base.Columns["name"];
|
|
this.columnsid = base.Columns["sid"];
|
|
this.columnmodel = base.Columns["model"];
|
|
this.columnmanu = base.Columns["manu"];
|
|
this.columnsupply = base.Columns["supply"];
|
|
this.columnmemo = base.Columns["memo"];
|
|
this.columnwuid = base.Columns["wuid"];
|
|
this.columnwdate = base.Columns["wdate"];
|
|
this.columnprice = base.Columns["price"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitClass() {
|
|
this.columnidx = new global::System.Data.DataColumn("idx", typeof(int), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnidx);
|
|
this.columnname = new global::System.Data.DataColumn("name", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnname);
|
|
this.columnsid = new global::System.Data.DataColumn("sid", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnsid);
|
|
this.columnmodel = new global::System.Data.DataColumn("model", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnmodel);
|
|
this.columnmanu = new global::System.Data.DataColumn("manu", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnmanu);
|
|
this.columnsupply = new global::System.Data.DataColumn("supply", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnsupply);
|
|
this.columnmemo = new global::System.Data.DataColumn("memo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnmemo);
|
|
this.columnwuid = new global::System.Data.DataColumn("wuid", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnwuid);
|
|
this.columnwdate = new global::System.Data.DataColumn("wdate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnwdate);
|
|
this.columnprice = new global::System.Data.DataColumn("price", typeof(decimal), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnprice);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columnidx}, true));
|
|
this.columnidx.AutoIncrement = true;
|
|
this.columnidx.AutoIncrementSeed = -1;
|
|
this.columnidx.AutoIncrementStep = -1;
|
|
this.columnidx.AllowDBNull = false;
|
|
this.columnidx.ReadOnly = true;
|
|
this.columnidx.Unique = true;
|
|
this.columnname.MaxLength = 50;
|
|
this.columnsid.AllowDBNull = false;
|
|
this.columnsid.MaxLength = 50;
|
|
this.columnmodel.MaxLength = 50;
|
|
this.columnmanu.MaxLength = 50;
|
|
this.columnsupply.MaxLength = 50;
|
|
this.columnmemo.MaxLength = 255;
|
|
this.columnwuid.AllowDBNull = false;
|
|
this.columnwuid.MaxLength = 20;
|
|
this.columnwdate.AllowDBNull = false;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public ItemsRow NewItemsRow() {
|
|
return ((ItemsRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new ItemsRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(ItemsRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.ItemsRowChanged != null)) {
|
|
this.ItemsRowChanged(this, new ItemsRowChangeEvent(((ItemsRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.ItemsRowChanging != null)) {
|
|
this.ItemsRowChanging(this, new ItemsRowChangeEvent(((ItemsRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.ItemsRowDeleted != null)) {
|
|
this.ItemsRowDeleted(this, new ItemsRowChangeEvent(((ItemsRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.ItemsRowDeleting != null)) {
|
|
this.ItemsRowDeleting(this, new ItemsRowChangeEvent(((ItemsRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void RemoveItemsRow(ItemsRow row) {
|
|
this.Rows.Remove(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
dsMSSQL ds = new dsMSSQL();
|
|
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
|
any1.MinOccurs = new decimal(0);
|
|
any1.MaxOccurs = decimal.MaxValue;
|
|
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
sequence.Items.Add(any1);
|
|
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
|
any2.MinOccurs = new decimal(1);
|
|
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
sequence.Items.Add(any2);
|
|
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
attribute1.Name = "namespace";
|
|
attribute1.FixedValue = ds.Namespace;
|
|
type.Attributes.Add(attribute1);
|
|
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
attribute2.Name = "tableTypeName";
|
|
attribute2.FixedValue = "ItemsDataTable";
|
|
type.Attributes.Add(attribute2);
|
|
type.Particle = sequence;
|
|
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
|
if (xs.Contains(dsSchema.TargetNamespace)) {
|
|
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
|
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
|
try {
|
|
global::System.Xml.Schema.XmlSchema schema = null;
|
|
dsSchema.Write(s1);
|
|
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
|
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
|
s2.SetLength(0);
|
|
schema.Write(s2);
|
|
if ((s1.Length == s2.Length)) {
|
|
s1.Position = 0;
|
|
s2.Position = 0;
|
|
for (; ((s1.Position != s1.Length)
|
|
&& (s1.ReadByte() == s2.ReadByte())); ) {
|
|
;
|
|
}
|
|
if ((s1.Position == s1.Length)) {
|
|
return type;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
finally {
|
|
if ((s1 != null)) {
|
|
s1.Close();
|
|
}
|
|
if ((s2 != null)) {
|
|
s2.Close();
|
|
}
|
|
}
|
|
}
|
|
xs.Add(dsSchema);
|
|
return type;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[global::System.Serializable()]
|
|
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
public partial class InventoryDataTable : global::System.Data.TypedTableBase<InventoryRow> {
|
|
|
|
private global::System.Data.DataColumn columnidx;
|
|
|
|
private global::System.Data.DataColumn columnpdate;
|
|
|
|
private global::System.Data.DataColumn columnuid;
|
|
|
|
private global::System.Data.DataColumn columnitem;
|
|
|
|
private global::System.Data.DataColumn columnserial;
|
|
|
|
private global::System.Data.DataColumn columndr_qty;
|
|
|
|
private global::System.Data.DataColumn columndr_amt;
|
|
|
|
private global::System.Data.DataColumn columncr_qty;
|
|
|
|
private global::System.Data.DataColumn columncr_amt;
|
|
|
|
private global::System.Data.DataColumn columnmemo;
|
|
|
|
private global::System.Data.DataColumn columnwuid;
|
|
|
|
private global::System.Data.DataColumn columnwdate;
|
|
|
|
private global::System.Data.DataColumn columnproject;
|
|
|
|
private global::System.Data.DataColumn columninvtype;
|
|
|
|
private global::System.Data.DataColumn columnItemName;
|
|
|
|
private global::System.Data.DataColumn columnprojectName;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public InventoryDataTable() {
|
|
this.TableName = "Inventory";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal InventoryDataTable(global::System.Data.DataTable table) {
|
|
this.TableName = table.TableName;
|
|
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
this.CaseSensitive = table.CaseSensitive;
|
|
}
|
|
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
this.Locale = table.Locale;
|
|
}
|
|
if ((table.Namespace != table.DataSet.Namespace)) {
|
|
this.Namespace = table.Namespace;
|
|
}
|
|
this.Prefix = table.Prefix;
|
|
this.MinimumCapacity = table.MinimumCapacity;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected InventoryDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
base(info, context) {
|
|
this.InitVars();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn idxColumn {
|
|
get {
|
|
return this.columnidx;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn pdateColumn {
|
|
get {
|
|
return this.columnpdate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn uidColumn {
|
|
get {
|
|
return this.columnuid;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn itemColumn {
|
|
get {
|
|
return this.columnitem;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn serialColumn {
|
|
get {
|
|
return this.columnserial;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn dr_qtyColumn {
|
|
get {
|
|
return this.columndr_qty;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn dr_amtColumn {
|
|
get {
|
|
return this.columndr_amt;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn cr_qtyColumn {
|
|
get {
|
|
return this.columncr_qty;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn cr_amtColumn {
|
|
get {
|
|
return this.columncr_amt;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn memoColumn {
|
|
get {
|
|
return this.columnmemo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn wuidColumn {
|
|
get {
|
|
return this.columnwuid;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn wdateColumn {
|
|
get {
|
|
return this.columnwdate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn projectColumn {
|
|
get {
|
|
return this.columnproject;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn invtypeColumn {
|
|
get {
|
|
return this.columninvtype;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn ItemNameColumn {
|
|
get {
|
|
return this.columnItemName;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn projectNameColumn {
|
|
get {
|
|
return this.columnprojectName;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public InventoryRow this[int index] {
|
|
get {
|
|
return ((InventoryRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event InventoryRowChangeEventHandler InventoryRowChanging;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event InventoryRowChangeEventHandler InventoryRowChanged;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event InventoryRowChangeEventHandler InventoryRowDeleting;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event InventoryRowChangeEventHandler InventoryRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void AddInventoryRow(InventoryRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public InventoryRow AddInventoryRow(string pdate, string uid, int item, string serial, int dr_qty, decimal dr_amt, int cr_qty, decimal cr_amt, string memo, string wuid, System.DateTime wdate, int project, string invtype, string ItemName, string projectName) {
|
|
InventoryRow rowInventoryRow = ((InventoryRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
null,
|
|
pdate,
|
|
uid,
|
|
item,
|
|
serial,
|
|
dr_qty,
|
|
dr_amt,
|
|
cr_qty,
|
|
cr_amt,
|
|
memo,
|
|
wuid,
|
|
wdate,
|
|
project,
|
|
invtype,
|
|
ItemName,
|
|
projectName};
|
|
rowInventoryRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowInventoryRow);
|
|
return rowInventoryRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public InventoryRow FindByidx(int idx) {
|
|
return ((InventoryRow)(this.Rows.Find(new object[] {
|
|
idx})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public override global::System.Data.DataTable Clone() {
|
|
InventoryDataTable cln = ((InventoryDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new InventoryDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal void InitVars() {
|
|
this.columnidx = base.Columns["idx"];
|
|
this.columnpdate = base.Columns["pdate"];
|
|
this.columnuid = base.Columns["uid"];
|
|
this.columnitem = base.Columns["item"];
|
|
this.columnserial = base.Columns["serial"];
|
|
this.columndr_qty = base.Columns["dr_qty"];
|
|
this.columndr_amt = base.Columns["dr_amt"];
|
|
this.columncr_qty = base.Columns["cr_qty"];
|
|
this.columncr_amt = base.Columns["cr_amt"];
|
|
this.columnmemo = base.Columns["memo"];
|
|
this.columnwuid = base.Columns["wuid"];
|
|
this.columnwdate = base.Columns["wdate"];
|
|
this.columnproject = base.Columns["project"];
|
|
this.columninvtype = base.Columns["invtype"];
|
|
this.columnItemName = base.Columns["ItemName"];
|
|
this.columnprojectName = base.Columns["projectName"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitClass() {
|
|
this.columnidx = new global::System.Data.DataColumn("idx", typeof(int), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnidx);
|
|
this.columnpdate = new global::System.Data.DataColumn("pdate", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnpdate);
|
|
this.columnuid = new global::System.Data.DataColumn("uid", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnuid);
|
|
this.columnitem = new global::System.Data.DataColumn("item", typeof(int), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnitem);
|
|
this.columnserial = new global::System.Data.DataColumn("serial", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnserial);
|
|
this.columndr_qty = new global::System.Data.DataColumn("dr_qty", typeof(int), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columndr_qty);
|
|
this.columndr_amt = new global::System.Data.DataColumn("dr_amt", typeof(decimal), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columndr_amt);
|
|
this.columncr_qty = new global::System.Data.DataColumn("cr_qty", typeof(int), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columncr_qty);
|
|
this.columncr_amt = new global::System.Data.DataColumn("cr_amt", typeof(decimal), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columncr_amt);
|
|
this.columnmemo = new global::System.Data.DataColumn("memo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnmemo);
|
|
this.columnwuid = new global::System.Data.DataColumn("wuid", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnwuid);
|
|
this.columnwdate = new global::System.Data.DataColumn("wdate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnwdate);
|
|
this.columnproject = new global::System.Data.DataColumn("project", typeof(int), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnproject);
|
|
this.columninvtype = new global::System.Data.DataColumn("invtype", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columninvtype);
|
|
this.columnItemName = new global::System.Data.DataColumn("ItemName", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnItemName);
|
|
this.columnprojectName = new global::System.Data.DataColumn("projectName", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnprojectName);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columnidx}, true));
|
|
this.columnidx.AutoIncrement = true;
|
|
this.columnidx.AutoIncrementSeed = -1;
|
|
this.columnidx.AutoIncrementStep = -1;
|
|
this.columnidx.AllowDBNull = false;
|
|
this.columnidx.ReadOnly = true;
|
|
this.columnidx.Unique = true;
|
|
this.columnpdate.MaxLength = 10;
|
|
this.columnuid.MaxLength = 20;
|
|
this.columnserial.MaxLength = 50;
|
|
this.columnmemo.MaxLength = 255;
|
|
this.columnwuid.AllowDBNull = false;
|
|
this.columnwuid.MaxLength = 20;
|
|
this.columnwdate.AllowDBNull = false;
|
|
this.columninvtype.MaxLength = 2;
|
|
this.columnItemName.MaxLength = 200;
|
|
this.columnprojectName.MaxLength = 200;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public InventoryRow NewInventoryRow() {
|
|
return ((InventoryRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new InventoryRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(InventoryRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.InventoryRowChanged != null)) {
|
|
this.InventoryRowChanged(this, new InventoryRowChangeEvent(((InventoryRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.InventoryRowChanging != null)) {
|
|
this.InventoryRowChanging(this, new InventoryRowChangeEvent(((InventoryRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.InventoryRowDeleted != null)) {
|
|
this.InventoryRowDeleted(this, new InventoryRowChangeEvent(((InventoryRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.InventoryRowDeleting != null)) {
|
|
this.InventoryRowDeleting(this, new InventoryRowChangeEvent(((InventoryRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void RemoveInventoryRow(InventoryRow row) {
|
|
this.Rows.Remove(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
dsMSSQL ds = new dsMSSQL();
|
|
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
|
any1.MinOccurs = new decimal(0);
|
|
any1.MaxOccurs = decimal.MaxValue;
|
|
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
sequence.Items.Add(any1);
|
|
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
|
any2.MinOccurs = new decimal(1);
|
|
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
sequence.Items.Add(any2);
|
|
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
attribute1.Name = "namespace";
|
|
attribute1.FixedValue = ds.Namespace;
|
|
type.Attributes.Add(attribute1);
|
|
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
attribute2.Name = "tableTypeName";
|
|
attribute2.FixedValue = "InventoryDataTable";
|
|
type.Attributes.Add(attribute2);
|
|
type.Particle = sequence;
|
|
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
|
if (xs.Contains(dsSchema.TargetNamespace)) {
|
|
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
|
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
|
try {
|
|
global::System.Xml.Schema.XmlSchema schema = null;
|
|
dsSchema.Write(s1);
|
|
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
|
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
|
s2.SetLength(0);
|
|
schema.Write(s2);
|
|
if ((s1.Length == s2.Length)) {
|
|
s1.Position = 0;
|
|
s2.Position = 0;
|
|
for (; ((s1.Position != s1.Length)
|
|
&& (s1.ReadByte() == s2.ReadByte())); ) {
|
|
;
|
|
}
|
|
if ((s1.Position == s1.Length)) {
|
|
return type;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
finally {
|
|
if ((s1 != null)) {
|
|
s1.Close();
|
|
}
|
|
if ((s2 != null)) {
|
|
s2.Close();
|
|
}
|
|
}
|
|
}
|
|
xs.Add(dsSchema);
|
|
return type;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[global::System.Serializable()]
|
|
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
public partial class LineCodeDataTable : global::System.Data.TypedTableBase<LineCodeRow> {
|
|
|
|
private global::System.Data.DataColumn columnidx;
|
|
|
|
private global::System.Data.DataColumn columncode;
|
|
|
|
private global::System.Data.DataColumn columnteam;
|
|
|
|
private global::System.Data.DataColumn columnpart;
|
|
|
|
private global::System.Data.DataColumn columnmemo;
|
|
|
|
private global::System.Data.DataColumn columnwuid;
|
|
|
|
private global::System.Data.DataColumn columnwdate;
|
|
|
|
private global::System.Data.DataColumn columnexcept;
|
|
|
|
private global::System.Data.DataColumn columnplant;
|
|
|
|
private global::System.Data.DataColumn columngrp2;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public LineCodeDataTable() {
|
|
this.TableName = "LineCode";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal LineCodeDataTable(global::System.Data.DataTable table) {
|
|
this.TableName = table.TableName;
|
|
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
this.CaseSensitive = table.CaseSensitive;
|
|
}
|
|
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
this.Locale = table.Locale;
|
|
}
|
|
if ((table.Namespace != table.DataSet.Namespace)) {
|
|
this.Namespace = table.Namespace;
|
|
}
|
|
this.Prefix = table.Prefix;
|
|
this.MinimumCapacity = table.MinimumCapacity;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected LineCodeDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
base(info, context) {
|
|
this.InitVars();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn idxColumn {
|
|
get {
|
|
return this.columnidx;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn codeColumn {
|
|
get {
|
|
return this.columncode;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn teamColumn {
|
|
get {
|
|
return this.columnteam;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn partColumn {
|
|
get {
|
|
return this.columnpart;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn memoColumn {
|
|
get {
|
|
return this.columnmemo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn wuidColumn {
|
|
get {
|
|
return this.columnwuid;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn wdateColumn {
|
|
get {
|
|
return this.columnwdate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn exceptColumn {
|
|
get {
|
|
return this.columnexcept;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn plantColumn {
|
|
get {
|
|
return this.columnplant;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn grp2Column {
|
|
get {
|
|
return this.columngrp2;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public LineCodeRow this[int index] {
|
|
get {
|
|
return ((LineCodeRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event LineCodeRowChangeEventHandler LineCodeRowChanging;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event LineCodeRowChangeEventHandler LineCodeRowChanged;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event LineCodeRowChangeEventHandler LineCodeRowDeleting;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event LineCodeRowChangeEventHandler LineCodeRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void AddLineCodeRow(LineCodeRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public LineCodeRow AddLineCodeRow(string code, string team, string part, string memo, string wuid, System.DateTime wdate, bool except, string plant, string grp2) {
|
|
LineCodeRow rowLineCodeRow = ((LineCodeRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
null,
|
|
code,
|
|
team,
|
|
part,
|
|
memo,
|
|
wuid,
|
|
wdate,
|
|
except,
|
|
plant,
|
|
grp2};
|
|
rowLineCodeRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowLineCodeRow);
|
|
return rowLineCodeRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public LineCodeRow FindByidx(int idx) {
|
|
return ((LineCodeRow)(this.Rows.Find(new object[] {
|
|
idx})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public override global::System.Data.DataTable Clone() {
|
|
LineCodeDataTable cln = ((LineCodeDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new LineCodeDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal void InitVars() {
|
|
this.columnidx = base.Columns["idx"];
|
|
this.columncode = base.Columns["code"];
|
|
this.columnteam = base.Columns["team"];
|
|
this.columnpart = base.Columns["part"];
|
|
this.columnmemo = base.Columns["memo"];
|
|
this.columnwuid = base.Columns["wuid"];
|
|
this.columnwdate = base.Columns["wdate"];
|
|
this.columnexcept = base.Columns["except"];
|
|
this.columnplant = base.Columns["plant"];
|
|
this.columngrp2 = base.Columns["grp2"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitClass() {
|
|
this.columnidx = new global::System.Data.DataColumn("idx", typeof(int), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnidx);
|
|
this.columncode = new global::System.Data.DataColumn("code", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columncode);
|
|
this.columnteam = new global::System.Data.DataColumn("team", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnteam);
|
|
this.columnpart = new global::System.Data.DataColumn("part", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnpart);
|
|
this.columnmemo = new global::System.Data.DataColumn("memo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnmemo);
|
|
this.columnwuid = new global::System.Data.DataColumn("wuid", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnwuid);
|
|
this.columnwdate = new global::System.Data.DataColumn("wdate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnwdate);
|
|
this.columnexcept = new global::System.Data.DataColumn("except", typeof(bool), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnexcept);
|
|
this.columnplant = new global::System.Data.DataColumn("plant", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnplant);
|
|
this.columngrp2 = new global::System.Data.DataColumn("grp2", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columngrp2);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columnidx}, true));
|
|
this.columnidx.AutoIncrement = true;
|
|
this.columnidx.AutoIncrementSeed = -1;
|
|
this.columnidx.AutoIncrementStep = -1;
|
|
this.columnidx.AllowDBNull = false;
|
|
this.columnidx.ReadOnly = true;
|
|
this.columnidx.Unique = true;
|
|
this.columncode.MaxLength = 20;
|
|
this.columnteam.MaxLength = 20;
|
|
this.columnpart.MaxLength = 20;
|
|
this.columnmemo.MaxLength = 250;
|
|
this.columnwuid.AllowDBNull = false;
|
|
this.columnwuid.MaxLength = 20;
|
|
this.columnwdate.AllowDBNull = false;
|
|
this.columnplant.MaxLength = 10;
|
|
this.columngrp2.MaxLength = 20;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public LineCodeRow NewLineCodeRow() {
|
|
return ((LineCodeRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new LineCodeRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(LineCodeRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.LineCodeRowChanged != null)) {
|
|
this.LineCodeRowChanged(this, new LineCodeRowChangeEvent(((LineCodeRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.LineCodeRowChanging != null)) {
|
|
this.LineCodeRowChanging(this, new LineCodeRowChangeEvent(((LineCodeRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.LineCodeRowDeleted != null)) {
|
|
this.LineCodeRowDeleted(this, new LineCodeRowChangeEvent(((LineCodeRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.LineCodeRowDeleting != null)) {
|
|
this.LineCodeRowDeleting(this, new LineCodeRowChangeEvent(((LineCodeRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void RemoveLineCodeRow(LineCodeRow row) {
|
|
this.Rows.Remove(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
dsMSSQL ds = new dsMSSQL();
|
|
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
|
any1.MinOccurs = new decimal(0);
|
|
any1.MaxOccurs = decimal.MaxValue;
|
|
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
sequence.Items.Add(any1);
|
|
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
|
any2.MinOccurs = new decimal(1);
|
|
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
sequence.Items.Add(any2);
|
|
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
attribute1.Name = "namespace";
|
|
attribute1.FixedValue = ds.Namespace;
|
|
type.Attributes.Add(attribute1);
|
|
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
attribute2.Name = "tableTypeName";
|
|
attribute2.FixedValue = "LineCodeDataTable";
|
|
type.Attributes.Add(attribute2);
|
|
type.Particle = sequence;
|
|
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
|
if (xs.Contains(dsSchema.TargetNamespace)) {
|
|
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
|
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
|
try {
|
|
global::System.Xml.Schema.XmlSchema schema = null;
|
|
dsSchema.Write(s1);
|
|
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
|
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
|
s2.SetLength(0);
|
|
schema.Write(s2);
|
|
if ((s1.Length == s2.Length)) {
|
|
s1.Position = 0;
|
|
s2.Position = 0;
|
|
for (; ((s1.Position != s1.Length)
|
|
&& (s1.ReadByte() == s2.ReadByte())); ) {
|
|
;
|
|
}
|
|
if ((s1.Position == s1.Length)) {
|
|
return type;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
finally {
|
|
if ((s1 != null)) {
|
|
s1.Close();
|
|
}
|
|
if ((s2 != null)) {
|
|
s2.Close();
|
|
}
|
|
}
|
|
}
|
|
xs.Add(dsSchema);
|
|
return type;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[global::System.Serializable()]
|
|
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
public partial class UserGroupDataTable : global::System.Data.TypedTableBase<UserGroupRow> {
|
|
|
|
private global::System.Data.DataColumn columndept;
|
|
|
|
private global::System.Data.DataColumn columngcode;
|
|
|
|
private global::System.Data.DataColumn columnpath_kj;
|
|
|
|
private global::System.Data.DataColumn columnadvpurchase;
|
|
|
|
private global::System.Data.DataColumn columnpermission;
|
|
|
|
private global::System.Data.DataColumn columnadvkisul;
|
|
|
|
private global::System.Data.DataColumn columnmanagerinfo;
|
|
|
|
private global::System.Data.DataColumn columndevinfo;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public UserGroupDataTable() {
|
|
this.TableName = "UserGroup";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal UserGroupDataTable(global::System.Data.DataTable table) {
|
|
this.TableName = table.TableName;
|
|
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
this.CaseSensitive = table.CaseSensitive;
|
|
}
|
|
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
this.Locale = table.Locale;
|
|
}
|
|
if ((table.Namespace != table.DataSet.Namespace)) {
|
|
this.Namespace = table.Namespace;
|
|
}
|
|
this.Prefix = table.Prefix;
|
|
this.MinimumCapacity = table.MinimumCapacity;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected UserGroupDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
base(info, context) {
|
|
this.InitVars();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn deptColumn {
|
|
get {
|
|
return this.columndept;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn gcodeColumn {
|
|
get {
|
|
return this.columngcode;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn path_kjColumn {
|
|
get {
|
|
return this.columnpath_kj;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn advpurchaseColumn {
|
|
get {
|
|
return this.columnadvpurchase;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn permissionColumn {
|
|
get {
|
|
return this.columnpermission;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn advkisulColumn {
|
|
get {
|
|
return this.columnadvkisul;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn managerinfoColumn {
|
|
get {
|
|
return this.columnmanagerinfo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn devinfoColumn {
|
|
get {
|
|
return this.columndevinfo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public UserGroupRow this[int index] {
|
|
get {
|
|
return ((UserGroupRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event UserGroupRowChangeEventHandler UserGroupRowChanging;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event UserGroupRowChangeEventHandler UserGroupRowChanged;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event UserGroupRowChangeEventHandler UserGroupRowDeleting;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event UserGroupRowChangeEventHandler UserGroupRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void AddUserGroupRow(UserGroupRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public UserGroupRow AddUserGroupRow(string dept, string gcode, string path_kj, bool advpurchase, int permission, bool advkisul, string managerinfo, string devinfo) {
|
|
UserGroupRow rowUserGroupRow = ((UserGroupRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
dept,
|
|
gcode,
|
|
path_kj,
|
|
advpurchase,
|
|
permission,
|
|
advkisul,
|
|
managerinfo,
|
|
devinfo};
|
|
rowUserGroupRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowUserGroupRow);
|
|
return rowUserGroupRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public UserGroupRow FindBydept(string dept) {
|
|
return ((UserGroupRow)(this.Rows.Find(new object[] {
|
|
dept})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public override global::System.Data.DataTable Clone() {
|
|
UserGroupDataTable cln = ((UserGroupDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new UserGroupDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal void InitVars() {
|
|
this.columndept = base.Columns["dept"];
|
|
this.columngcode = base.Columns["gcode"];
|
|
this.columnpath_kj = base.Columns["path_kj"];
|
|
this.columnadvpurchase = base.Columns["advpurchase"];
|
|
this.columnpermission = base.Columns["permission"];
|
|
this.columnadvkisul = base.Columns["advkisul"];
|
|
this.columnmanagerinfo = base.Columns["managerinfo"];
|
|
this.columndevinfo = base.Columns["devinfo"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitClass() {
|
|
this.columndept = new global::System.Data.DataColumn("dept", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columndept);
|
|
this.columngcode = new global::System.Data.DataColumn("gcode", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columngcode);
|
|
this.columnpath_kj = new global::System.Data.DataColumn("path_kj", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnpath_kj);
|
|
this.columnadvpurchase = new global::System.Data.DataColumn("advpurchase", typeof(bool), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnadvpurchase);
|
|
this.columnpermission = new global::System.Data.DataColumn("permission", typeof(int), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnpermission);
|
|
this.columnadvkisul = new global::System.Data.DataColumn("advkisul", typeof(bool), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnadvkisul);
|
|
this.columnmanagerinfo = new global::System.Data.DataColumn("managerinfo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnmanagerinfo);
|
|
this.columndevinfo = new global::System.Data.DataColumn("devinfo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columndevinfo);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columndept}, true));
|
|
this.columndept.AllowDBNull = false;
|
|
this.columndept.Unique = true;
|
|
this.columndept.MaxLength = 100;
|
|
this.columngcode.MaxLength = 10;
|
|
this.columnpath_kj.MaxLength = 100;
|
|
this.columnmanagerinfo.MaxLength = 255;
|
|
this.columndevinfo.MaxLength = 255;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public UserGroupRow NewUserGroupRow() {
|
|
return ((UserGroupRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new UserGroupRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(UserGroupRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.UserGroupRowChanged != null)) {
|
|
this.UserGroupRowChanged(this, new UserGroupRowChangeEvent(((UserGroupRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.UserGroupRowChanging != null)) {
|
|
this.UserGroupRowChanging(this, new UserGroupRowChangeEvent(((UserGroupRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.UserGroupRowDeleted != null)) {
|
|
this.UserGroupRowDeleted(this, new UserGroupRowChangeEvent(((UserGroupRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.UserGroupRowDeleting != null)) {
|
|
this.UserGroupRowDeleting(this, new UserGroupRowChangeEvent(((UserGroupRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void RemoveUserGroupRow(UserGroupRow row) {
|
|
this.Rows.Remove(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
dsMSSQL ds = new dsMSSQL();
|
|
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
|
any1.MinOccurs = new decimal(0);
|
|
any1.MaxOccurs = decimal.MaxValue;
|
|
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
sequence.Items.Add(any1);
|
|
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
|
any2.MinOccurs = new decimal(1);
|
|
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
sequence.Items.Add(any2);
|
|
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
attribute1.Name = "namespace";
|
|
attribute1.FixedValue = ds.Namespace;
|
|
type.Attributes.Add(attribute1);
|
|
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
attribute2.Name = "tableTypeName";
|
|
attribute2.FixedValue = "UserGroupDataTable";
|
|
type.Attributes.Add(attribute2);
|
|
type.Particle = sequence;
|
|
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
|
if (xs.Contains(dsSchema.TargetNamespace)) {
|
|
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
|
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
|
try {
|
|
global::System.Xml.Schema.XmlSchema schema = null;
|
|
dsSchema.Write(s1);
|
|
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
|
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
|
s2.SetLength(0);
|
|
schema.Write(s2);
|
|
if ((s1.Length == s2.Length)) {
|
|
s1.Position = 0;
|
|
s2.Position = 0;
|
|
for (; ((s1.Position != s1.Length)
|
|
&& (s1.ReadByte() == s2.ReadByte())); ) {
|
|
;
|
|
}
|
|
if ((s1.Position == s1.Length)) {
|
|
return type;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
finally {
|
|
if ((s1 != null)) {
|
|
s1.Close();
|
|
}
|
|
if ((s2 != null)) {
|
|
s2.Close();
|
|
}
|
|
}
|
|
}
|
|
xs.Add(dsSchema);
|
|
return type;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[global::System.Serializable()]
|
|
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
public partial class SPMasterDataTable : global::System.Data.TypedTableBase<SPMasterRow> {
|
|
|
|
private global::System.Data.DataColumn columnID;
|
|
|
|
private global::System.Data.DataColumn columnCtrlNo;
|
|
|
|
private global::System.Data.DataColumn columnSIDNo;
|
|
|
|
private global::System.Data.DataColumn columnStorage;
|
|
|
|
private global::System.Data.DataColumn columnLocation;
|
|
|
|
private global::System.Data.DataColumn columnUseEqmt;
|
|
|
|
private global::System.Data.DataColumn columnPartName;
|
|
|
|
private global::System.Data.DataColumn columnPartNo;
|
|
|
|
private global::System.Data.DataColumn columnProcess;
|
|
|
|
private global::System.Data.DataColumn columnSupplierNo;
|
|
|
|
private global::System.Data.DataColumn columnCurrentQty;
|
|
|
|
private global::System.Data.DataColumn columnMHA;
|
|
|
|
private global::System.Data.DataColumn columnDivision;
|
|
|
|
private global::System.Data.DataColumn columnBadQty;
|
|
|
|
private global::System.Data.DataColumn columnPrice;
|
|
|
|
private global::System.Data.DataColumn columnPriceUnit;
|
|
|
|
private global::System.Data.DataColumn columnCostCenter;
|
|
|
|
private global::System.Data.DataColumn columnMemo;
|
|
|
|
private global::System.Data.DataColumn columnEnrDate;
|
|
|
|
private global::System.Data.DataColumn columnEnrollee;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public SPMasterDataTable() {
|
|
this.TableName = "SPMaster";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal SPMasterDataTable(global::System.Data.DataTable table) {
|
|
this.TableName = table.TableName;
|
|
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
this.CaseSensitive = table.CaseSensitive;
|
|
}
|
|
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
this.Locale = table.Locale;
|
|
}
|
|
if ((table.Namespace != table.DataSet.Namespace)) {
|
|
this.Namespace = table.Namespace;
|
|
}
|
|
this.Prefix = table.Prefix;
|
|
this.MinimumCapacity = table.MinimumCapacity;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected SPMasterDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
base(info, context) {
|
|
this.InitVars();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn IDColumn {
|
|
get {
|
|
return this.columnID;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn CtrlNoColumn {
|
|
get {
|
|
return this.columnCtrlNo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn SIDNoColumn {
|
|
get {
|
|
return this.columnSIDNo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn StorageColumn {
|
|
get {
|
|
return this.columnStorage;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn LocationColumn {
|
|
get {
|
|
return this.columnLocation;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn UseEqmtColumn {
|
|
get {
|
|
return this.columnUseEqmt;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn PartNameColumn {
|
|
get {
|
|
return this.columnPartName;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn PartNoColumn {
|
|
get {
|
|
return this.columnPartNo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn ProcessColumn {
|
|
get {
|
|
return this.columnProcess;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn SupplierNoColumn {
|
|
get {
|
|
return this.columnSupplierNo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn CurrentQtyColumn {
|
|
get {
|
|
return this.columnCurrentQty;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn MHAColumn {
|
|
get {
|
|
return this.columnMHA;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn DivisionColumn {
|
|
get {
|
|
return this.columnDivision;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn BadQtyColumn {
|
|
get {
|
|
return this.columnBadQty;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn PriceColumn {
|
|
get {
|
|
return this.columnPrice;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn PriceUnitColumn {
|
|
get {
|
|
return this.columnPriceUnit;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn CostCenterColumn {
|
|
get {
|
|
return this.columnCostCenter;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn MemoColumn {
|
|
get {
|
|
return this.columnMemo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn EnrDateColumn {
|
|
get {
|
|
return this.columnEnrDate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn EnrolleeColumn {
|
|
get {
|
|
return this.columnEnrollee;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public SPMasterRow this[int index] {
|
|
get {
|
|
return ((SPMasterRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event SPMasterRowChangeEventHandler SPMasterRowChanging;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event SPMasterRowChangeEventHandler SPMasterRowChanged;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event SPMasterRowChangeEventHandler SPMasterRowDeleting;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event SPMasterRowChangeEventHandler SPMasterRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void AddSPMasterRow(SPMasterRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public SPMasterRow AddSPMasterRow(
|
|
int ID,
|
|
string CtrlNo,
|
|
string SIDNo,
|
|
string Storage,
|
|
string Location,
|
|
string UseEqmt,
|
|
string PartName,
|
|
string PartNo,
|
|
string Process,
|
|
string SupplierNo,
|
|
decimal CurrentQty,
|
|
decimal MHA,
|
|
string Division,
|
|
decimal BadQty,
|
|
decimal Price,
|
|
string PriceUnit,
|
|
string CostCenter,
|
|
string Memo,
|
|
string EnrDate,
|
|
string Enrollee) {
|
|
SPMasterRow rowSPMasterRow = ((SPMasterRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
ID,
|
|
CtrlNo,
|
|
SIDNo,
|
|
Storage,
|
|
Location,
|
|
UseEqmt,
|
|
PartName,
|
|
PartNo,
|
|
Process,
|
|
SupplierNo,
|
|
CurrentQty,
|
|
MHA,
|
|
Division,
|
|
BadQty,
|
|
Price,
|
|
PriceUnit,
|
|
CostCenter,
|
|
Memo,
|
|
EnrDate,
|
|
Enrollee};
|
|
rowSPMasterRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowSPMasterRow);
|
|
return rowSPMasterRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public SPMasterRow FindByID(int ID) {
|
|
return ((SPMasterRow)(this.Rows.Find(new object[] {
|
|
ID})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public override global::System.Data.DataTable Clone() {
|
|
SPMasterDataTable cln = ((SPMasterDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new SPMasterDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal void InitVars() {
|
|
this.columnID = base.Columns["ID"];
|
|
this.columnCtrlNo = base.Columns["CtrlNo"];
|
|
this.columnSIDNo = base.Columns["SIDNo"];
|
|
this.columnStorage = base.Columns["Storage"];
|
|
this.columnLocation = base.Columns["Location"];
|
|
this.columnUseEqmt = base.Columns["UseEqmt"];
|
|
this.columnPartName = base.Columns["PartName"];
|
|
this.columnPartNo = base.Columns["PartNo"];
|
|
this.columnProcess = base.Columns["Process"];
|
|
this.columnSupplierNo = base.Columns["SupplierNo"];
|
|
this.columnCurrentQty = base.Columns["CurrentQty"];
|
|
this.columnMHA = base.Columns["MHA"];
|
|
this.columnDivision = base.Columns["Division"];
|
|
this.columnBadQty = base.Columns["BadQty"];
|
|
this.columnPrice = base.Columns["Price"];
|
|
this.columnPriceUnit = base.Columns["PriceUnit"];
|
|
this.columnCostCenter = base.Columns["CostCenter"];
|
|
this.columnMemo = base.Columns["Memo"];
|
|
this.columnEnrDate = base.Columns["EnrDate"];
|
|
this.columnEnrollee = base.Columns["Enrollee"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitClass() {
|
|
this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnID);
|
|
this.columnCtrlNo = new global::System.Data.DataColumn("CtrlNo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCtrlNo);
|
|
this.columnSIDNo = new global::System.Data.DataColumn("SIDNo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnSIDNo);
|
|
this.columnStorage = new global::System.Data.DataColumn("Storage", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnStorage);
|
|
this.columnLocation = new global::System.Data.DataColumn("Location", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnLocation);
|
|
this.columnUseEqmt = new global::System.Data.DataColumn("UseEqmt", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnUseEqmt);
|
|
this.columnPartName = new global::System.Data.DataColumn("PartName", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnPartName);
|
|
this.columnPartNo = new global::System.Data.DataColumn("PartNo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnPartNo);
|
|
this.columnProcess = new global::System.Data.DataColumn("Process", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnProcess);
|
|
this.columnSupplierNo = new global::System.Data.DataColumn("SupplierNo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnSupplierNo);
|
|
this.columnCurrentQty = new global::System.Data.DataColumn("CurrentQty", typeof(decimal), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCurrentQty);
|
|
this.columnMHA = new global::System.Data.DataColumn("MHA", typeof(decimal), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnMHA);
|
|
this.columnDivision = new global::System.Data.DataColumn("Division", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnDivision);
|
|
this.columnBadQty = new global::System.Data.DataColumn("BadQty", typeof(decimal), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnBadQty);
|
|
this.columnPrice = new global::System.Data.DataColumn("Price", typeof(decimal), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnPrice);
|
|
this.columnPriceUnit = new global::System.Data.DataColumn("PriceUnit", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnPriceUnit);
|
|
this.columnCostCenter = new global::System.Data.DataColumn("CostCenter", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnCostCenter);
|
|
this.columnMemo = new global::System.Data.DataColumn("Memo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnMemo);
|
|
this.columnEnrDate = new global::System.Data.DataColumn("EnrDate", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnEnrDate);
|
|
this.columnEnrollee = new global::System.Data.DataColumn("Enrollee", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnEnrollee);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columnID}, true));
|
|
this.columnID.AllowDBNull = false;
|
|
this.columnID.Unique = true;
|
|
this.columnCtrlNo.MaxLength = 200;
|
|
this.columnSIDNo.MaxLength = 200;
|
|
this.columnStorage.MaxLength = 200;
|
|
this.columnLocation.MaxLength = 200;
|
|
this.columnUseEqmt.MaxLength = 200;
|
|
this.columnPartName.MaxLength = 200;
|
|
this.columnPartNo.MaxLength = 200;
|
|
this.columnProcess.MaxLength = 200;
|
|
this.columnSupplierNo.MaxLength = 200;
|
|
this.columnDivision.MaxLength = 200;
|
|
this.columnPriceUnit.MaxLength = 200;
|
|
this.columnCostCenter.MaxLength = 200;
|
|
this.columnMemo.MaxLength = 200;
|
|
this.columnEnrDate.MaxLength = 200;
|
|
this.columnEnrollee.MaxLength = 200;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public SPMasterRow NewSPMasterRow() {
|
|
return ((SPMasterRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new SPMasterRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(SPMasterRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.SPMasterRowChanged != null)) {
|
|
this.SPMasterRowChanged(this, new SPMasterRowChangeEvent(((SPMasterRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.SPMasterRowChanging != null)) {
|
|
this.SPMasterRowChanging(this, new SPMasterRowChangeEvent(((SPMasterRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.SPMasterRowDeleted != null)) {
|
|
this.SPMasterRowDeleted(this, new SPMasterRowChangeEvent(((SPMasterRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.SPMasterRowDeleting != null)) {
|
|
this.SPMasterRowDeleting(this, new SPMasterRowChangeEvent(((SPMasterRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void RemoveSPMasterRow(SPMasterRow row) {
|
|
this.Rows.Remove(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
dsMSSQL ds = new dsMSSQL();
|
|
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
|
any1.MinOccurs = new decimal(0);
|
|
any1.MaxOccurs = decimal.MaxValue;
|
|
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
sequence.Items.Add(any1);
|
|
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
|
any2.MinOccurs = new decimal(1);
|
|
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
sequence.Items.Add(any2);
|
|
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
attribute1.Name = "namespace";
|
|
attribute1.FixedValue = ds.Namespace;
|
|
type.Attributes.Add(attribute1);
|
|
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
attribute2.Name = "tableTypeName";
|
|
attribute2.FixedValue = "SPMasterDataTable";
|
|
type.Attributes.Add(attribute2);
|
|
type.Particle = sequence;
|
|
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
|
if (xs.Contains(dsSchema.TargetNamespace)) {
|
|
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
|
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
|
try {
|
|
global::System.Xml.Schema.XmlSchema schema = null;
|
|
dsSchema.Write(s1);
|
|
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
|
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
|
s2.SetLength(0);
|
|
schema.Write(s2);
|
|
if ((s1.Length == s2.Length)) {
|
|
s1.Position = 0;
|
|
s2.Position = 0;
|
|
for (; ((s1.Position != s1.Length)
|
|
&& (s1.ReadByte() == s2.ReadByte())); ) {
|
|
;
|
|
}
|
|
if ((s1.Position == s1.Length)) {
|
|
return type;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
finally {
|
|
if ((s1 != null)) {
|
|
s1.Close();
|
|
}
|
|
if ((s2 != null)) {
|
|
s2.Close();
|
|
}
|
|
}
|
|
}
|
|
xs.Add(dsSchema);
|
|
return type;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[global::System.Serializable()]
|
|
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
public partial class EETGW_GroupUserDataTable : global::System.Data.TypedTableBase<EETGW_GroupUserRow> {
|
|
|
|
private global::System.Data.DataColumn columnidx;
|
|
|
|
private global::System.Data.DataColumn columngcode;
|
|
|
|
private global::System.Data.DataColumn columnuid;
|
|
|
|
private global::System.Data.DataColumn columnlevel;
|
|
|
|
private global::System.Data.DataColumn columnwuid;
|
|
|
|
private global::System.Data.DataColumn columnwdate;
|
|
|
|
private global::System.Data.DataColumn columnuseJobReport;
|
|
|
|
private global::System.Data.DataColumn columnuseUserState;
|
|
|
|
private global::System.Data.DataColumn columnstate;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public EETGW_GroupUserDataTable() {
|
|
this.TableName = "EETGW_GroupUser";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal EETGW_GroupUserDataTable(global::System.Data.DataTable table) {
|
|
this.TableName = table.TableName;
|
|
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
this.CaseSensitive = table.CaseSensitive;
|
|
}
|
|
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
this.Locale = table.Locale;
|
|
}
|
|
if ((table.Namespace != table.DataSet.Namespace)) {
|
|
this.Namespace = table.Namespace;
|
|
}
|
|
this.Prefix = table.Prefix;
|
|
this.MinimumCapacity = table.MinimumCapacity;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected EETGW_GroupUserDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
base(info, context) {
|
|
this.InitVars();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn idxColumn {
|
|
get {
|
|
return this.columnidx;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn gcodeColumn {
|
|
get {
|
|
return this.columngcode;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn uidColumn {
|
|
get {
|
|
return this.columnuid;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn levelColumn {
|
|
get {
|
|
return this.columnlevel;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn wuidColumn {
|
|
get {
|
|
return this.columnwuid;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn wdateColumn {
|
|
get {
|
|
return this.columnwdate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn useJobReportColumn {
|
|
get {
|
|
return this.columnuseJobReport;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn useUserStateColumn {
|
|
get {
|
|
return this.columnuseUserState;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn stateColumn {
|
|
get {
|
|
return this.columnstate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public EETGW_GroupUserRow this[int index] {
|
|
get {
|
|
return ((EETGW_GroupUserRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event EETGW_GroupUserRowChangeEventHandler EETGW_GroupUserRowChanging;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event EETGW_GroupUserRowChangeEventHandler EETGW_GroupUserRowChanged;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event EETGW_GroupUserRowChangeEventHandler EETGW_GroupUserRowDeleting;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event EETGW_GroupUserRowChangeEventHandler EETGW_GroupUserRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void AddEETGW_GroupUserRow(EETGW_GroupUserRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public EETGW_GroupUserRow AddEETGW_GroupUserRow(string gcode, string uid, short level, string wuid, System.DateTime wdate, bool useJobReport, bool useUserState, string state) {
|
|
EETGW_GroupUserRow rowEETGW_GroupUserRow = ((EETGW_GroupUserRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
null,
|
|
gcode,
|
|
uid,
|
|
level,
|
|
wuid,
|
|
wdate,
|
|
useJobReport,
|
|
useUserState,
|
|
state};
|
|
rowEETGW_GroupUserRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowEETGW_GroupUserRow);
|
|
return rowEETGW_GroupUserRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public EETGW_GroupUserRow FindByidx(int idx) {
|
|
return ((EETGW_GroupUserRow)(this.Rows.Find(new object[] {
|
|
idx})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public override global::System.Data.DataTable Clone() {
|
|
EETGW_GroupUserDataTable cln = ((EETGW_GroupUserDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new EETGW_GroupUserDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal void InitVars() {
|
|
this.columnidx = base.Columns["idx"];
|
|
this.columngcode = base.Columns["gcode"];
|
|
this.columnuid = base.Columns["uid"];
|
|
this.columnlevel = base.Columns["level"];
|
|
this.columnwuid = base.Columns["wuid"];
|
|
this.columnwdate = base.Columns["wdate"];
|
|
this.columnuseJobReport = base.Columns["useJobReport"];
|
|
this.columnuseUserState = base.Columns["useUserState"];
|
|
this.columnstate = base.Columns["state"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitClass() {
|
|
this.columnidx = new global::System.Data.DataColumn("idx", typeof(int), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnidx);
|
|
this.columngcode = new global::System.Data.DataColumn("gcode", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columngcode);
|
|
this.columnuid = new global::System.Data.DataColumn("uid", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnuid);
|
|
this.columnlevel = new global::System.Data.DataColumn("level", typeof(short), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnlevel);
|
|
this.columnwuid = new global::System.Data.DataColumn("wuid", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnwuid);
|
|
this.columnwdate = new global::System.Data.DataColumn("wdate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnwdate);
|
|
this.columnuseJobReport = new global::System.Data.DataColumn("useJobReport", typeof(bool), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnuseJobReport);
|
|
this.columnuseUserState = new global::System.Data.DataColumn("useUserState", typeof(bool), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnuseUserState);
|
|
this.columnstate = new global::System.Data.DataColumn("state", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnstate);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columnidx}, true));
|
|
this.columnidx.AutoIncrement = true;
|
|
this.columnidx.AutoIncrementSeed = -1;
|
|
this.columnidx.AutoIncrementStep = -1;
|
|
this.columnidx.AllowDBNull = false;
|
|
this.columnidx.ReadOnly = true;
|
|
this.columnidx.Unique = true;
|
|
this.columngcode.AllowDBNull = false;
|
|
this.columngcode.MaxLength = 10;
|
|
this.columnuid.AllowDBNull = false;
|
|
this.columnuid.MaxLength = 20;
|
|
this.columnwuid.AllowDBNull = false;
|
|
this.columnwuid.MaxLength = 20;
|
|
this.columnwdate.AllowDBNull = false;
|
|
this.columnstate.MaxLength = 20;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public EETGW_GroupUserRow NewEETGW_GroupUserRow() {
|
|
return ((EETGW_GroupUserRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new EETGW_GroupUserRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(EETGW_GroupUserRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.EETGW_GroupUserRowChanged != null)) {
|
|
this.EETGW_GroupUserRowChanged(this, new EETGW_GroupUserRowChangeEvent(((EETGW_GroupUserRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.EETGW_GroupUserRowChanging != null)) {
|
|
this.EETGW_GroupUserRowChanging(this, new EETGW_GroupUserRowChangeEvent(((EETGW_GroupUserRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.EETGW_GroupUserRowDeleted != null)) {
|
|
this.EETGW_GroupUserRowDeleted(this, new EETGW_GroupUserRowChangeEvent(((EETGW_GroupUserRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.EETGW_GroupUserRowDeleting != null)) {
|
|
this.EETGW_GroupUserRowDeleting(this, new EETGW_GroupUserRowChangeEvent(((EETGW_GroupUserRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void RemoveEETGW_GroupUserRow(EETGW_GroupUserRow row) {
|
|
this.Rows.Remove(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
dsMSSQL ds = new dsMSSQL();
|
|
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
|
any1.MinOccurs = new decimal(0);
|
|
any1.MaxOccurs = decimal.MaxValue;
|
|
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
sequence.Items.Add(any1);
|
|
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
|
any2.MinOccurs = new decimal(1);
|
|
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
sequence.Items.Add(any2);
|
|
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
attribute1.Name = "namespace";
|
|
attribute1.FixedValue = ds.Namespace;
|
|
type.Attributes.Add(attribute1);
|
|
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
attribute2.Name = "tableTypeName";
|
|
attribute2.FixedValue = "EETGW_GroupUserDataTable";
|
|
type.Attributes.Add(attribute2);
|
|
type.Particle = sequence;
|
|
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
|
if (xs.Contains(dsSchema.TargetNamespace)) {
|
|
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
|
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
|
try {
|
|
global::System.Xml.Schema.XmlSchema schema = null;
|
|
dsSchema.Write(s1);
|
|
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
|
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
|
s2.SetLength(0);
|
|
schema.Write(s2);
|
|
if ((s1.Length == s2.Length)) {
|
|
s1.Position = 0;
|
|
s2.Position = 0;
|
|
for (; ((s1.Position != s1.Length)
|
|
&& (s1.ReadByte() == s2.ReadByte())); ) {
|
|
;
|
|
}
|
|
if ((s1.Position == s1.Length)) {
|
|
return type;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
finally {
|
|
if ((s1 != null)) {
|
|
s1.Close();
|
|
}
|
|
if ((s2 != null)) {
|
|
s2.Close();
|
|
}
|
|
}
|
|
}
|
|
xs.Add(dsSchema);
|
|
return type;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[global::System.Serializable()]
|
|
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
public partial class vGroupUserDataTable : global::System.Data.TypedTableBase<vGroupUserRow> {
|
|
|
|
private global::System.Data.DataColumn columngcode;
|
|
|
|
private global::System.Data.DataColumn columndept;
|
|
|
|
private global::System.Data.DataColumn columnlevel;
|
|
|
|
private global::System.Data.DataColumn columnname;
|
|
|
|
private global::System.Data.DataColumn columnnameE;
|
|
|
|
private global::System.Data.DataColumn columngrade;
|
|
|
|
private global::System.Data.DataColumn columnemail;
|
|
|
|
private global::System.Data.DataColumn columntel;
|
|
|
|
private global::System.Data.DataColumn columnindate;
|
|
|
|
private global::System.Data.DataColumn columnoutdate;
|
|
|
|
private global::System.Data.DataColumn columnhp;
|
|
|
|
private global::System.Data.DataColumn columnplace;
|
|
|
|
private global::System.Data.DataColumn columnads_employNo;
|
|
|
|
private global::System.Data.DataColumn columnads_title;
|
|
|
|
private global::System.Data.DataColumn columnads_created;
|
|
|
|
private global::System.Data.DataColumn columnmemo;
|
|
|
|
private global::System.Data.DataColumn columnprocesss;
|
|
|
|
private global::System.Data.DataColumn columnid;
|
|
|
|
private global::System.Data.DataColumn columnstate;
|
|
|
|
private global::System.Data.DataColumn columnuseJobReport;
|
|
|
|
private global::System.Data.DataColumn columnuseUserState;
|
|
|
|
private global::System.Data.DataColumn columnpassword;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public vGroupUserDataTable() {
|
|
this.TableName = "vGroupUser";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal vGroupUserDataTable(global::System.Data.DataTable table) {
|
|
this.TableName = table.TableName;
|
|
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
this.CaseSensitive = table.CaseSensitive;
|
|
}
|
|
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
this.Locale = table.Locale;
|
|
}
|
|
if ((table.Namespace != table.DataSet.Namespace)) {
|
|
this.Namespace = table.Namespace;
|
|
}
|
|
this.Prefix = table.Prefix;
|
|
this.MinimumCapacity = table.MinimumCapacity;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected vGroupUserDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
base(info, context) {
|
|
this.InitVars();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn gcodeColumn {
|
|
get {
|
|
return this.columngcode;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn deptColumn {
|
|
get {
|
|
return this.columndept;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn levelColumn {
|
|
get {
|
|
return this.columnlevel;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn nameColumn {
|
|
get {
|
|
return this.columnname;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn nameEColumn {
|
|
get {
|
|
return this.columnnameE;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn gradeColumn {
|
|
get {
|
|
return this.columngrade;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn emailColumn {
|
|
get {
|
|
return this.columnemail;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn telColumn {
|
|
get {
|
|
return this.columntel;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn indateColumn {
|
|
get {
|
|
return this.columnindate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn outdateColumn {
|
|
get {
|
|
return this.columnoutdate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn hpColumn {
|
|
get {
|
|
return this.columnhp;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn placeColumn {
|
|
get {
|
|
return this.columnplace;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn ads_employNoColumn {
|
|
get {
|
|
return this.columnads_employNo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn ads_titleColumn {
|
|
get {
|
|
return this.columnads_title;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn ads_createdColumn {
|
|
get {
|
|
return this.columnads_created;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn memoColumn {
|
|
get {
|
|
return this.columnmemo;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn processsColumn {
|
|
get {
|
|
return this.columnprocesss;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn idColumn {
|
|
get {
|
|
return this.columnid;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn stateColumn {
|
|
get {
|
|
return this.columnstate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn useJobReportColumn {
|
|
get {
|
|
return this.columnuseJobReport;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn useUserStateColumn {
|
|
get {
|
|
return this.columnuseUserState;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn passwordColumn {
|
|
get {
|
|
return this.columnpassword;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public vGroupUserRow this[int index] {
|
|
get {
|
|
return ((vGroupUserRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event vGroupUserRowChangeEventHandler vGroupUserRowChanging;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event vGroupUserRowChangeEventHandler vGroupUserRowChanged;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event vGroupUserRowChangeEventHandler vGroupUserRowDeleting;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event vGroupUserRowChangeEventHandler vGroupUserRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void AddvGroupUserRow(vGroupUserRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public vGroupUserRow AddvGroupUserRow(
|
|
string gcode,
|
|
string dept,
|
|
short level,
|
|
string name,
|
|
string nameE,
|
|
string grade,
|
|
string email,
|
|
string tel,
|
|
string indate,
|
|
string outdate,
|
|
string hp,
|
|
string place,
|
|
string ads_employNo,
|
|
string ads_title,
|
|
string ads_created,
|
|
string memo,
|
|
string processs,
|
|
string id,
|
|
string state,
|
|
bool useJobReport,
|
|
bool useUserState,
|
|
string password) {
|
|
vGroupUserRow rowvGroupUserRow = ((vGroupUserRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
gcode,
|
|
dept,
|
|
level,
|
|
name,
|
|
nameE,
|
|
grade,
|
|
email,
|
|
tel,
|
|
indate,
|
|
outdate,
|
|
hp,
|
|
place,
|
|
ads_employNo,
|
|
ads_title,
|
|
ads_created,
|
|
memo,
|
|
processs,
|
|
id,
|
|
state,
|
|
useJobReport,
|
|
useUserState,
|
|
password};
|
|
rowvGroupUserRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowvGroupUserRow);
|
|
return rowvGroupUserRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public vGroupUserRow FindBygcodeid(string gcode, string id) {
|
|
return ((vGroupUserRow)(this.Rows.Find(new object[] {
|
|
gcode,
|
|
id})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public override global::System.Data.DataTable Clone() {
|
|
vGroupUserDataTable cln = ((vGroupUserDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new vGroupUserDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal void InitVars() {
|
|
this.columngcode = base.Columns["gcode"];
|
|
this.columndept = base.Columns["dept"];
|
|
this.columnlevel = base.Columns["level"];
|
|
this.columnname = base.Columns["name"];
|
|
this.columnnameE = base.Columns["nameE"];
|
|
this.columngrade = base.Columns["grade"];
|
|
this.columnemail = base.Columns["email"];
|
|
this.columntel = base.Columns["tel"];
|
|
this.columnindate = base.Columns["indate"];
|
|
this.columnoutdate = base.Columns["outdate"];
|
|
this.columnhp = base.Columns["hp"];
|
|
this.columnplace = base.Columns["place"];
|
|
this.columnads_employNo = base.Columns["ads_employNo"];
|
|
this.columnads_title = base.Columns["ads_title"];
|
|
this.columnads_created = base.Columns["ads_created"];
|
|
this.columnmemo = base.Columns["memo"];
|
|
this.columnprocesss = base.Columns["processs"];
|
|
this.columnid = base.Columns["id"];
|
|
this.columnstate = base.Columns["state"];
|
|
this.columnuseJobReport = base.Columns["useJobReport"];
|
|
this.columnuseUserState = base.Columns["useUserState"];
|
|
this.columnpassword = base.Columns["password"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitClass() {
|
|
this.columngcode = new global::System.Data.DataColumn("gcode", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columngcode);
|
|
this.columndept = new global::System.Data.DataColumn("dept", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columndept);
|
|
this.columnlevel = new global::System.Data.DataColumn("level", typeof(short), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnlevel);
|
|
this.columnname = new global::System.Data.DataColumn("name", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnname);
|
|
this.columnnameE = new global::System.Data.DataColumn("nameE", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnnameE);
|
|
this.columngrade = new global::System.Data.DataColumn("grade", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columngrade);
|
|
this.columnemail = new global::System.Data.DataColumn("email", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnemail);
|
|
this.columntel = new global::System.Data.DataColumn("tel", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columntel);
|
|
this.columnindate = new global::System.Data.DataColumn("indate", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnindate);
|
|
this.columnoutdate = new global::System.Data.DataColumn("outdate", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnoutdate);
|
|
this.columnhp = new global::System.Data.DataColumn("hp", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnhp);
|
|
this.columnplace = new global::System.Data.DataColumn("place", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnplace);
|
|
this.columnads_employNo = new global::System.Data.DataColumn("ads_employNo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnads_employNo);
|
|
this.columnads_title = new global::System.Data.DataColumn("ads_title", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnads_title);
|
|
this.columnads_created = new global::System.Data.DataColumn("ads_created", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnads_created);
|
|
this.columnmemo = new global::System.Data.DataColumn("memo", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnmemo);
|
|
this.columnprocesss = new global::System.Data.DataColumn("processs", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnprocesss);
|
|
this.columnid = new global::System.Data.DataColumn("id", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnid);
|
|
this.columnstate = new global::System.Data.DataColumn("state", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnstate);
|
|
this.columnuseJobReport = new global::System.Data.DataColumn("useJobReport", typeof(bool), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnuseJobReport);
|
|
this.columnuseUserState = new global::System.Data.DataColumn("useUserState", typeof(bool), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnuseUserState);
|
|
this.columnpassword = new global::System.Data.DataColumn("password", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnpassword);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columngcode,
|
|
this.columnid}, true));
|
|
this.columngcode.AllowDBNull = false;
|
|
this.columngcode.MaxLength = 10;
|
|
this.columndept.MaxLength = 100;
|
|
this.columnname.MaxLength = 100;
|
|
this.columnnameE.MaxLength = 100;
|
|
this.columngrade.MaxLength = 10;
|
|
this.columnemail.MaxLength = 100;
|
|
this.columntel.MaxLength = 20;
|
|
this.columnindate.MaxLength = 20;
|
|
this.columnoutdate.MaxLength = 20;
|
|
this.columnhp.MaxLength = 20;
|
|
this.columnplace.MaxLength = 100;
|
|
this.columnads_employNo.MaxLength = 50;
|
|
this.columnads_title.MaxLength = 100;
|
|
this.columnads_created.MaxLength = 50;
|
|
this.columnmemo.MaxLength = 255;
|
|
this.columnprocesss.ReadOnly = true;
|
|
this.columnprocesss.MaxLength = 50;
|
|
this.columnid.AllowDBNull = false;
|
|
this.columnid.MaxLength = 20;
|
|
this.columnstate.MaxLength = 20;
|
|
this.columnpassword.MaxLength = 50;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public vGroupUserRow NewvGroupUserRow() {
|
|
return ((vGroupUserRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new vGroupUserRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(vGroupUserRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.vGroupUserRowChanged != null)) {
|
|
this.vGroupUserRowChanged(this, new vGroupUserRowChangeEvent(((vGroupUserRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.vGroupUserRowChanging != null)) {
|
|
this.vGroupUserRowChanging(this, new vGroupUserRowChangeEvent(((vGroupUserRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.vGroupUserRowDeleted != null)) {
|
|
this.vGroupUserRowDeleted(this, new vGroupUserRowChangeEvent(((vGroupUserRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.vGroupUserRowDeleting != null)) {
|
|
this.vGroupUserRowDeleting(this, new vGroupUserRowChangeEvent(((vGroupUserRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void RemovevGroupUserRow(vGroupUserRow row) {
|
|
this.Rows.Remove(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
dsMSSQL ds = new dsMSSQL();
|
|
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
|
any1.MinOccurs = new decimal(0);
|
|
any1.MaxOccurs = decimal.MaxValue;
|
|
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
sequence.Items.Add(any1);
|
|
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
|
any2.MinOccurs = new decimal(1);
|
|
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
sequence.Items.Add(any2);
|
|
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
attribute1.Name = "namespace";
|
|
attribute1.FixedValue = ds.Namespace;
|
|
type.Attributes.Add(attribute1);
|
|
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
attribute2.Name = "tableTypeName";
|
|
attribute2.FixedValue = "vGroupUserDataTable";
|
|
type.Attributes.Add(attribute2);
|
|
type.Particle = sequence;
|
|
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
|
if (xs.Contains(dsSchema.TargetNamespace)) {
|
|
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
|
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
|
try {
|
|
global::System.Xml.Schema.XmlSchema schema = null;
|
|
dsSchema.Write(s1);
|
|
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
|
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
|
s2.SetLength(0);
|
|
schema.Write(s2);
|
|
if ((s1.Length == s2.Length)) {
|
|
s1.Position = 0;
|
|
s2.Position = 0;
|
|
for (; ((s1.Position != s1.Length)
|
|
&& (s1.ReadByte() == s2.ReadByte())); ) {
|
|
;
|
|
}
|
|
if ((s1.Position == s1.Length)) {
|
|
return type;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
finally {
|
|
if ((s1 != null)) {
|
|
s1.Close();
|
|
}
|
|
if ((s2 != null)) {
|
|
s2.Close();
|
|
}
|
|
}
|
|
}
|
|
xs.Add(dsSchema);
|
|
return type;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the strongly named DataTable class.
|
|
///</summary>
|
|
[global::System.Serializable()]
|
|
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
|
public partial class JobReportDataTable : global::System.Data.TypedTableBase<JobReportRow> {
|
|
|
|
private global::System.Data.DataColumn columnidx;
|
|
|
|
private global::System.Data.DataColumn columngcode;
|
|
|
|
private global::System.Data.DataColumn columnpdate;
|
|
|
|
private global::System.Data.DataColumn columnpidx;
|
|
|
|
private global::System.Data.DataColumn columnprojectName;
|
|
|
|
private global::System.Data.DataColumn columnuid;
|
|
|
|
private global::System.Data.DataColumn columnrequestpart;
|
|
|
|
private global::System.Data.DataColumn columnpackage;
|
|
|
|
private global::System.Data.DataColumn columnstatus;
|
|
|
|
private global::System.Data.DataColumn columntype;
|
|
|
|
private global::System.Data.DataColumn columnprocess;
|
|
|
|
private global::System.Data.DataColumn columndescription;
|
|
|
|
private global::System.Data.DataColumn columnremark;
|
|
|
|
private global::System.Data.DataColumn columnhrs;
|
|
|
|
private global::System.Data.DataColumn columnot;
|
|
|
|
private global::System.Data.DataColumn columnimport;
|
|
|
|
private global::System.Data.DataColumn columnwuid;
|
|
|
|
private global::System.Data.DataColumn columnwdate;
|
|
|
|
private global::System.Data.DataColumn columndescription2;
|
|
|
|
private global::System.Data.DataColumn columntag;
|
|
|
|
private global::System.Data.DataColumn columnautoinput;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public JobReportDataTable() {
|
|
this.TableName = "JobReport";
|
|
this.BeginInit();
|
|
this.InitClass();
|
|
this.EndInit();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal JobReportDataTable(global::System.Data.DataTable table) {
|
|
this.TableName = table.TableName;
|
|
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
|
this.CaseSensitive = table.CaseSensitive;
|
|
}
|
|
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
|
this.Locale = table.Locale;
|
|
}
|
|
if ((table.Namespace != table.DataSet.Namespace)) {
|
|
this.Namespace = table.Namespace;
|
|
}
|
|
this.Prefix = table.Prefix;
|
|
this.MinimumCapacity = table.MinimumCapacity;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected JobReportDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
|
base(info, context) {
|
|
this.InitVars();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn idxColumn {
|
|
get {
|
|
return this.columnidx;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn gcodeColumn {
|
|
get {
|
|
return this.columngcode;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn pdateColumn {
|
|
get {
|
|
return this.columnpdate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn pidxColumn {
|
|
get {
|
|
return this.columnpidx;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn projectNameColumn {
|
|
get {
|
|
return this.columnprojectName;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn uidColumn {
|
|
get {
|
|
return this.columnuid;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn requestpartColumn {
|
|
get {
|
|
return this.columnrequestpart;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn packageColumn {
|
|
get {
|
|
return this.columnpackage;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn statusColumn {
|
|
get {
|
|
return this.columnstatus;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn typeColumn {
|
|
get {
|
|
return this.columntype;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn processColumn {
|
|
get {
|
|
return this.columnprocess;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn descriptionColumn {
|
|
get {
|
|
return this.columndescription;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn remarkColumn {
|
|
get {
|
|
return this.columnremark;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn hrsColumn {
|
|
get {
|
|
return this.columnhrs;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn otColumn {
|
|
get {
|
|
return this.columnot;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn importColumn {
|
|
get {
|
|
return this.columnimport;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn wuidColumn {
|
|
get {
|
|
return this.columnwuid;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn wdateColumn {
|
|
get {
|
|
return this.columnwdate;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn description2Column {
|
|
get {
|
|
return this.columndescription2;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn tagColumn {
|
|
get {
|
|
return this.columntag;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataColumn autoinputColumn {
|
|
get {
|
|
return this.columnautoinput;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int Count {
|
|
get {
|
|
return this.Rows.Count;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public JobReportRow this[int index] {
|
|
get {
|
|
return ((JobReportRow)(this.Rows[index]));
|
|
}
|
|
}
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event JobReportRowChangeEventHandler JobReportRowChanging;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event JobReportRowChangeEventHandler JobReportRowChanged;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event JobReportRowChangeEventHandler JobReportRowDeleting;
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public event JobReportRowChangeEventHandler JobReportRowDeleted;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void AddJobReportRow(JobReportRow row) {
|
|
this.Rows.Add(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public JobReportRow AddJobReportRow(
|
|
string gcode,
|
|
string pdate,
|
|
int pidx,
|
|
string projectName,
|
|
string uid,
|
|
string requestpart,
|
|
string package,
|
|
string status,
|
|
string type,
|
|
string process,
|
|
string description,
|
|
string remark,
|
|
double hrs,
|
|
double ot,
|
|
bool import,
|
|
string wuid,
|
|
System.DateTime wdate,
|
|
string description2,
|
|
string tag,
|
|
bool autoinput) {
|
|
JobReportRow rowJobReportRow = ((JobReportRow)(this.NewRow()));
|
|
object[] columnValuesArray = new object[] {
|
|
null,
|
|
gcode,
|
|
pdate,
|
|
pidx,
|
|
projectName,
|
|
uid,
|
|
requestpart,
|
|
package,
|
|
status,
|
|
type,
|
|
process,
|
|
description,
|
|
remark,
|
|
hrs,
|
|
ot,
|
|
import,
|
|
wuid,
|
|
wdate,
|
|
description2,
|
|
tag,
|
|
autoinput};
|
|
rowJobReportRow.ItemArray = columnValuesArray;
|
|
this.Rows.Add(rowJobReportRow);
|
|
return rowJobReportRow;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public JobReportRow FindByidx(int idx) {
|
|
return ((JobReportRow)(this.Rows.Find(new object[] {
|
|
idx})));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public override global::System.Data.DataTable Clone() {
|
|
JobReportDataTable cln = ((JobReportDataTable)(base.Clone()));
|
|
cln.InitVars();
|
|
return cln;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Data.DataTable CreateInstance() {
|
|
return new JobReportDataTable();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal void InitVars() {
|
|
this.columnidx = base.Columns["idx"];
|
|
this.columngcode = base.Columns["gcode"];
|
|
this.columnpdate = base.Columns["pdate"];
|
|
this.columnpidx = base.Columns["pidx"];
|
|
this.columnprojectName = base.Columns["projectName"];
|
|
this.columnuid = base.Columns["uid"];
|
|
this.columnrequestpart = base.Columns["requestpart"];
|
|
this.columnpackage = base.Columns["package"];
|
|
this.columnstatus = base.Columns["status"];
|
|
this.columntype = base.Columns["type"];
|
|
this.columnprocess = base.Columns["process"];
|
|
this.columndescription = base.Columns["description"];
|
|
this.columnremark = base.Columns["remark"];
|
|
this.columnhrs = base.Columns["hrs"];
|
|
this.columnot = base.Columns["ot"];
|
|
this.columnimport = base.Columns["import"];
|
|
this.columnwuid = base.Columns["wuid"];
|
|
this.columnwdate = base.Columns["wdate"];
|
|
this.columndescription2 = base.Columns["description2"];
|
|
this.columntag = base.Columns["tag"];
|
|
this.columnautoinput = base.Columns["autoinput"];
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitClass() {
|
|
this.columnidx = new global::System.Data.DataColumn("idx", typeof(int), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnidx);
|
|
this.columngcode = new global::System.Data.DataColumn("gcode", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columngcode);
|
|
this.columnpdate = new global::System.Data.DataColumn("pdate", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnpdate);
|
|
this.columnpidx = new global::System.Data.DataColumn("pidx", typeof(int), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnpidx);
|
|
this.columnprojectName = new global::System.Data.DataColumn("projectName", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnprojectName);
|
|
this.columnuid = new global::System.Data.DataColumn("uid", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnuid);
|
|
this.columnrequestpart = new global::System.Data.DataColumn("requestpart", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnrequestpart);
|
|
this.columnpackage = new global::System.Data.DataColumn("package", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnpackage);
|
|
this.columnstatus = new global::System.Data.DataColumn("status", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnstatus);
|
|
this.columntype = new global::System.Data.DataColumn("type", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columntype);
|
|
this.columnprocess = new global::System.Data.DataColumn("process", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnprocess);
|
|
this.columndescription = new global::System.Data.DataColumn("description", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columndescription);
|
|
this.columnremark = new global::System.Data.DataColumn("remark", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnremark);
|
|
this.columnhrs = new global::System.Data.DataColumn("hrs", typeof(double), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnhrs);
|
|
this.columnot = new global::System.Data.DataColumn("ot", typeof(double), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnot);
|
|
this.columnimport = new global::System.Data.DataColumn("import", typeof(bool), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnimport);
|
|
this.columnwuid = new global::System.Data.DataColumn("wuid", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnwuid);
|
|
this.columnwdate = new global::System.Data.DataColumn("wdate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnwdate);
|
|
this.columndescription2 = new global::System.Data.DataColumn("description2", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columndescription2);
|
|
this.columntag = new global::System.Data.DataColumn("tag", typeof(string), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columntag);
|
|
this.columnautoinput = new global::System.Data.DataColumn("autoinput", typeof(bool), null, global::System.Data.MappingType.Element);
|
|
base.Columns.Add(this.columnautoinput);
|
|
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
|
this.columnidx}, true));
|
|
this.columnidx.AutoIncrement = true;
|
|
this.columnidx.AutoIncrementSeed = -1;
|
|
this.columnidx.AutoIncrementStep = -1;
|
|
this.columnidx.AllowDBNull = false;
|
|
this.columnidx.ReadOnly = true;
|
|
this.columnidx.Unique = true;
|
|
this.columngcode.AllowDBNull = false;
|
|
this.columngcode.MaxLength = 10;
|
|
this.columnpdate.MaxLength = 10;
|
|
this.columnprojectName.MaxLength = 255;
|
|
this.columnuid.MaxLength = 20;
|
|
this.columnrequestpart.MaxLength = 50;
|
|
this.columnpackage.MaxLength = 50;
|
|
this.columnstatus.MaxLength = 20;
|
|
this.columntype.MaxLength = 50;
|
|
this.columnprocess.MaxLength = 50;
|
|
this.columndescription.MaxLength = 2147483647;
|
|
this.columnremark.MaxLength = 255;
|
|
this.columnwuid.AllowDBNull = false;
|
|
this.columnwuid.MaxLength = 20;
|
|
this.columnwdate.AllowDBNull = false;
|
|
this.columndescription2.MaxLength = 2147483647;
|
|
this.columntag.MaxLength = 255;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public JobReportRow NewJobReportRow() {
|
|
return ((JobReportRow)(this.NewRow()));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
|
return new JobReportRow(builder);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override global::System.Type GetRowType() {
|
|
return typeof(JobReportRow);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanged(e);
|
|
if ((this.JobReportRowChanged != null)) {
|
|
this.JobReportRowChanged(this, new JobReportRowChangeEvent(((JobReportRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowChanging(e);
|
|
if ((this.JobReportRowChanging != null)) {
|
|
this.JobReportRowChanging(this, new JobReportRowChangeEvent(((JobReportRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleted(e);
|
|
if ((this.JobReportRowDeleted != null)) {
|
|
this.JobReportRowDeleted(this, new JobReportRowChangeEvent(((JobReportRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
|
base.OnRowDeleting(e);
|
|
if ((this.JobReportRowDeleting != null)) {
|
|
this.JobReportRowDeleting(this, new JobReportRowChangeEvent(((JobReportRow)(e.Row)), e.Action));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void RemoveJobReportRow(JobReportRow row) {
|
|
this.Rows.Remove(row);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
|
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
|
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
|
dsMSSQL ds = new dsMSSQL();
|
|
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
|
any1.MinOccurs = new decimal(0);
|
|
any1.MaxOccurs = decimal.MaxValue;
|
|
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
sequence.Items.Add(any1);
|
|
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
|
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
|
any2.MinOccurs = new decimal(1);
|
|
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
|
sequence.Items.Add(any2);
|
|
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
attribute1.Name = "namespace";
|
|
attribute1.FixedValue = ds.Namespace;
|
|
type.Attributes.Add(attribute1);
|
|
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
|
attribute2.Name = "tableTypeName";
|
|
attribute2.FixedValue = "JobReportDataTable";
|
|
type.Attributes.Add(attribute2);
|
|
type.Particle = sequence;
|
|
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
|
if (xs.Contains(dsSchema.TargetNamespace)) {
|
|
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
|
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
|
try {
|
|
global::System.Xml.Schema.XmlSchema schema = null;
|
|
dsSchema.Write(s1);
|
|
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
|
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
|
s2.SetLength(0);
|
|
schema.Write(s2);
|
|
if ((s1.Length == s2.Length)) {
|
|
s1.Position = 0;
|
|
s2.Position = 0;
|
|
for (; ((s1.Position != s1.Length)
|
|
&& (s1.ReadByte() == s2.ReadByte())); ) {
|
|
;
|
|
}
|
|
if ((s1.Position == s1.Length)) {
|
|
return type;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
finally {
|
|
if ((s1 != null)) {
|
|
s1.Close();
|
|
}
|
|
if ((s2 != null)) {
|
|
s2.Close();
|
|
}
|
|
}
|
|
}
|
|
xs.Add(dsSchema);
|
|
return type;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
public partial class UsersRow : global::System.Data.DataRow {
|
|
|
|
private UsersDataTable tableUsers;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal UsersRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tableUsers = ((UsersDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string id {
|
|
get {
|
|
return ((string)(this[this.tableUsers.idColumn]));
|
|
}
|
|
set {
|
|
this[this.tableUsers.idColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string password {
|
|
get {
|
|
if (this.IspasswordNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableUsers.passwordColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUsers.passwordColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string name {
|
|
get {
|
|
if (this.IsnameNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableUsers.nameColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUsers.nameColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string dept {
|
|
get {
|
|
if (this.IsdeptNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableUsers.deptColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUsers.deptColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string grade {
|
|
get {
|
|
if (this.IsgradeNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableUsers.gradeColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUsers.gradeColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string email {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableUsers.emailColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Users\' 테이블의 \'email\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUsers.emailColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public short level {
|
|
get {
|
|
try {
|
|
return ((short)(this[this.tableUsers.levelColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Users\' 테이블의 \'level\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUsers.levelColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string indate {
|
|
get {
|
|
if (this.IsindateNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableUsers.indateColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUsers.indateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string outdate {
|
|
get {
|
|
if (this.IsoutdateNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableUsers.outdateColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUsers.outdateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string memo {
|
|
get {
|
|
if (this.IsmemoNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableUsers.memoColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUsers.memoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string wuid {
|
|
get {
|
|
return ((string)(this[this.tableUsers.wuidColumn]));
|
|
}
|
|
set {
|
|
this[this.tableUsers.wuidColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public System.DateTime wdate {
|
|
get {
|
|
return ((global::System.DateTime)(this[this.tableUsers.wdateColumn]));
|
|
}
|
|
set {
|
|
this[this.tableUsers.wdateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string tel {
|
|
get {
|
|
if (this.IstelNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableUsers.telColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUsers.telColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string nameE {
|
|
get {
|
|
if (this.IsnameENull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableUsers.nameEColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUsers.nameEColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string hp {
|
|
get {
|
|
if (this.IshpNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableUsers.hpColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUsers.hpColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string place {
|
|
get {
|
|
if (this.IsplaceNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableUsers.placeColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUsers.placeColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string ads_title {
|
|
get {
|
|
if (this.Isads_titleNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableUsers.ads_titleColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUsers.ads_titleColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string ads_created {
|
|
get {
|
|
if (this.Isads_createdNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableUsers.ads_createdColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUsers.ads_createdColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string ads_employNo {
|
|
get {
|
|
if (this.Isads_employNoNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableUsers.ads_employNoColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUsers.ads_employNoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string processs {
|
|
get {
|
|
if (this.IsprocesssNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableUsers.processsColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUsers.processsColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string gcode {
|
|
get {
|
|
if (this.IsgcodeNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableUsers.gcodeColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUsers.gcodeColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IspasswordNull() {
|
|
return this.IsNull(this.tableUsers.passwordColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetpasswordNull() {
|
|
this[this.tableUsers.passwordColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsnameNull() {
|
|
return this.IsNull(this.tableUsers.nameColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetnameNull() {
|
|
this[this.tableUsers.nameColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsdeptNull() {
|
|
return this.IsNull(this.tableUsers.deptColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetdeptNull() {
|
|
this[this.tableUsers.deptColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsgradeNull() {
|
|
return this.IsNull(this.tableUsers.gradeColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetgradeNull() {
|
|
this[this.tableUsers.gradeColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsemailNull() {
|
|
return this.IsNull(this.tableUsers.emailColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetemailNull() {
|
|
this[this.tableUsers.emailColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IslevelNull() {
|
|
return this.IsNull(this.tableUsers.levelColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetlevelNull() {
|
|
this[this.tableUsers.levelColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsindateNull() {
|
|
return this.IsNull(this.tableUsers.indateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetindateNull() {
|
|
this[this.tableUsers.indateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsoutdateNull() {
|
|
return this.IsNull(this.tableUsers.outdateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetoutdateNull() {
|
|
this[this.tableUsers.outdateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsmemoNull() {
|
|
return this.IsNull(this.tableUsers.memoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetmemoNull() {
|
|
this[this.tableUsers.memoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IstelNull() {
|
|
return this.IsNull(this.tableUsers.telColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SettelNull() {
|
|
this[this.tableUsers.telColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsnameENull() {
|
|
return this.IsNull(this.tableUsers.nameEColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetnameENull() {
|
|
this[this.tableUsers.nameEColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IshpNull() {
|
|
return this.IsNull(this.tableUsers.hpColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SethpNull() {
|
|
this[this.tableUsers.hpColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsplaceNull() {
|
|
return this.IsNull(this.tableUsers.placeColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetplaceNull() {
|
|
this[this.tableUsers.placeColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool Isads_titleNull() {
|
|
return this.IsNull(this.tableUsers.ads_titleColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void Setads_titleNull() {
|
|
this[this.tableUsers.ads_titleColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool Isads_createdNull() {
|
|
return this.IsNull(this.tableUsers.ads_createdColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void Setads_createdNull() {
|
|
this[this.tableUsers.ads_createdColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool Isads_employNoNull() {
|
|
return this.IsNull(this.tableUsers.ads_employNoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void Setads_employNoNull() {
|
|
this[this.tableUsers.ads_employNoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsprocesssNull() {
|
|
return this.IsNull(this.tableUsers.processsColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetprocesssNull() {
|
|
this[this.tableUsers.processsColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsgcodeNull() {
|
|
return this.IsNull(this.tableUsers.gcodeColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetgcodeNull() {
|
|
this[this.tableUsers.gcodeColumn] = global::System.Convert.DBNull;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
public partial class ProjectsRow : global::System.Data.DataRow {
|
|
|
|
private ProjectsDataTable tableProjects;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal ProjectsRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tableProjects = ((ProjectsDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public int idx {
|
|
get {
|
|
return ((int)(this[this.tableProjects.idxColumn]));
|
|
}
|
|
set {
|
|
this[this.tableProjects.idxColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string name {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableProjects.nameColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'name\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableProjects.nameColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string pdate {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableProjects.pdateColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'pdate\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableProjects.pdateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string request {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableProjects.requestColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'request\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableProjects.requestColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string reqstaff {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableProjects.reqstaffColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'reqstaff\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableProjects.reqstaffColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string sdate {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableProjects.sdateColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'sdate\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableProjects.sdateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string edate {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableProjects.edateColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'edate\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableProjects.edateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string odate {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableProjects.odateColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'odate\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableProjects.odateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string memo {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableProjects.memoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Projects\' 테이블의 \'memo\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableProjects.memoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string wuid {
|
|
get {
|
|
return ((string)(this[this.tableProjects.wuidColumn]));
|
|
}
|
|
set {
|
|
this[this.tableProjects.wuidColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public System.DateTime wdate {
|
|
get {
|
|
return ((global::System.DateTime)(this[this.tableProjects.wdateColumn]));
|
|
}
|
|
set {
|
|
this[this.tableProjects.wdateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsnameNull() {
|
|
return this.IsNull(this.tableProjects.nameColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetnameNull() {
|
|
this[this.tableProjects.nameColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IspdateNull() {
|
|
return this.IsNull(this.tableProjects.pdateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetpdateNull() {
|
|
this[this.tableProjects.pdateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsrequestNull() {
|
|
return this.IsNull(this.tableProjects.requestColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetrequestNull() {
|
|
this[this.tableProjects.requestColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsreqstaffNull() {
|
|
return this.IsNull(this.tableProjects.reqstaffColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetreqstaffNull() {
|
|
this[this.tableProjects.reqstaffColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IssdateNull() {
|
|
return this.IsNull(this.tableProjects.sdateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetsdateNull() {
|
|
this[this.tableProjects.sdateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsedateNull() {
|
|
return this.IsNull(this.tableProjects.edateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetedateNull() {
|
|
this[this.tableProjects.edateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsodateNull() {
|
|
return this.IsNull(this.tableProjects.odateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetodateNull() {
|
|
this[this.tableProjects.odateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsmemoNull() {
|
|
return this.IsNull(this.tableProjects.memoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetmemoNull() {
|
|
this[this.tableProjects.memoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
public partial class ItemsRow : global::System.Data.DataRow {
|
|
|
|
private ItemsDataTable tableItems;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal ItemsRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tableItems = ((ItemsDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public int idx {
|
|
get {
|
|
return ((int)(this[this.tableItems.idxColumn]));
|
|
}
|
|
set {
|
|
this[this.tableItems.idxColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string name {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableItems.nameColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Items\' 테이블의 \'name\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableItems.nameColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string sid {
|
|
get {
|
|
return ((string)(this[this.tableItems.sidColumn]));
|
|
}
|
|
set {
|
|
this[this.tableItems.sidColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string model {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableItems.modelColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Items\' 테이블의 \'model\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableItems.modelColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string manu {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableItems.manuColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Items\' 테이블의 \'manu\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableItems.manuColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string supply {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableItems.supplyColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Items\' 테이블의 \'supply\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableItems.supplyColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string memo {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableItems.memoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Items\' 테이블의 \'memo\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableItems.memoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string wuid {
|
|
get {
|
|
return ((string)(this[this.tableItems.wuidColumn]));
|
|
}
|
|
set {
|
|
this[this.tableItems.wuidColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public System.DateTime wdate {
|
|
get {
|
|
return ((global::System.DateTime)(this[this.tableItems.wdateColumn]));
|
|
}
|
|
set {
|
|
this[this.tableItems.wdateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public decimal price {
|
|
get {
|
|
if (this.IspriceNull()) {
|
|
return 0m;
|
|
}
|
|
else {
|
|
return ((decimal)(this[this.tableItems.priceColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableItems.priceColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsnameNull() {
|
|
return this.IsNull(this.tableItems.nameColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetnameNull() {
|
|
this[this.tableItems.nameColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsmodelNull() {
|
|
return this.IsNull(this.tableItems.modelColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetmodelNull() {
|
|
this[this.tableItems.modelColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsmanuNull() {
|
|
return this.IsNull(this.tableItems.manuColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetmanuNull() {
|
|
this[this.tableItems.manuColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IssupplyNull() {
|
|
return this.IsNull(this.tableItems.supplyColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetsupplyNull() {
|
|
this[this.tableItems.supplyColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsmemoNull() {
|
|
return this.IsNull(this.tableItems.memoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetmemoNull() {
|
|
this[this.tableItems.memoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IspriceNull() {
|
|
return this.IsNull(this.tableItems.priceColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetpriceNull() {
|
|
this[this.tableItems.priceColumn] = global::System.Convert.DBNull;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
public partial class InventoryRow : global::System.Data.DataRow {
|
|
|
|
private InventoryDataTable tableInventory;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal InventoryRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tableInventory = ((InventoryDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public int idx {
|
|
get {
|
|
return ((int)(this[this.tableInventory.idxColumn]));
|
|
}
|
|
set {
|
|
this[this.tableInventory.idxColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string pdate {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableInventory.pdateColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Inventory\' 테이블의 \'pdate\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableInventory.pdateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string uid {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableInventory.uidColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Inventory\' 테이블의 \'uid\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableInventory.uidColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public int item {
|
|
get {
|
|
if (this.IsitemNull()) {
|
|
return -1;
|
|
}
|
|
else {
|
|
return ((int)(this[this.tableInventory.itemColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableInventory.itemColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string serial {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableInventory.serialColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Inventory\' 테이블의 \'serial\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableInventory.serialColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public int dr_qty {
|
|
get {
|
|
try {
|
|
return ((int)(this[this.tableInventory.dr_qtyColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Inventory\' 테이블의 \'dr_qty\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableInventory.dr_qtyColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public decimal dr_amt {
|
|
get {
|
|
try {
|
|
return ((decimal)(this[this.tableInventory.dr_amtColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Inventory\' 테이블의 \'dr_amt\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableInventory.dr_amtColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public int cr_qty {
|
|
get {
|
|
try {
|
|
return ((int)(this[this.tableInventory.cr_qtyColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Inventory\' 테이블의 \'cr_qty\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableInventory.cr_qtyColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public decimal cr_amt {
|
|
get {
|
|
try {
|
|
return ((decimal)(this[this.tableInventory.cr_amtColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Inventory\' 테이블의 \'cr_amt\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableInventory.cr_amtColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string memo {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableInventory.memoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Inventory\' 테이블의 \'memo\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableInventory.memoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string wuid {
|
|
get {
|
|
return ((string)(this[this.tableInventory.wuidColumn]));
|
|
}
|
|
set {
|
|
this[this.tableInventory.wuidColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public System.DateTime wdate {
|
|
get {
|
|
return ((global::System.DateTime)(this[this.tableInventory.wdateColumn]));
|
|
}
|
|
set {
|
|
this[this.tableInventory.wdateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public int project {
|
|
get {
|
|
if (this.IsprojectNull()) {
|
|
return -1;
|
|
}
|
|
else {
|
|
return ((int)(this[this.tableInventory.projectColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableInventory.projectColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string invtype {
|
|
get {
|
|
if (this.IsinvtypeNull()) {
|
|
return "ET";
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableInventory.invtypeColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableInventory.invtypeColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string ItemName {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableInventory.ItemNameColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Inventory\' 테이블의 \'ItemName\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableInventory.ItemNameColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string projectName {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableInventory.projectNameColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'Inventory\' 테이블의 \'projectName\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableInventory.projectNameColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IspdateNull() {
|
|
return this.IsNull(this.tableInventory.pdateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetpdateNull() {
|
|
this[this.tableInventory.pdateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsuidNull() {
|
|
return this.IsNull(this.tableInventory.uidColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetuidNull() {
|
|
this[this.tableInventory.uidColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsitemNull() {
|
|
return this.IsNull(this.tableInventory.itemColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetitemNull() {
|
|
this[this.tableInventory.itemColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsserialNull() {
|
|
return this.IsNull(this.tableInventory.serialColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetserialNull() {
|
|
this[this.tableInventory.serialColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool Isdr_qtyNull() {
|
|
return this.IsNull(this.tableInventory.dr_qtyColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void Setdr_qtyNull() {
|
|
this[this.tableInventory.dr_qtyColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool Isdr_amtNull() {
|
|
return this.IsNull(this.tableInventory.dr_amtColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void Setdr_amtNull() {
|
|
this[this.tableInventory.dr_amtColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool Iscr_qtyNull() {
|
|
return this.IsNull(this.tableInventory.cr_qtyColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void Setcr_qtyNull() {
|
|
this[this.tableInventory.cr_qtyColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool Iscr_amtNull() {
|
|
return this.IsNull(this.tableInventory.cr_amtColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void Setcr_amtNull() {
|
|
this[this.tableInventory.cr_amtColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsmemoNull() {
|
|
return this.IsNull(this.tableInventory.memoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetmemoNull() {
|
|
this[this.tableInventory.memoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsprojectNull() {
|
|
return this.IsNull(this.tableInventory.projectColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetprojectNull() {
|
|
this[this.tableInventory.projectColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsinvtypeNull() {
|
|
return this.IsNull(this.tableInventory.invtypeColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetinvtypeNull() {
|
|
this[this.tableInventory.invtypeColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsItemNameNull() {
|
|
return this.IsNull(this.tableInventory.ItemNameColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetItemNameNull() {
|
|
this[this.tableInventory.ItemNameColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsprojectNameNull() {
|
|
return this.IsNull(this.tableInventory.projectNameColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetprojectNameNull() {
|
|
this[this.tableInventory.projectNameColumn] = global::System.Convert.DBNull;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
public partial class LineCodeRow : global::System.Data.DataRow {
|
|
|
|
private LineCodeDataTable tableLineCode;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal LineCodeRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tableLineCode = ((LineCodeDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public int idx {
|
|
get {
|
|
return ((int)(this[this.tableLineCode.idxColumn]));
|
|
}
|
|
set {
|
|
this[this.tableLineCode.idxColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string code {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableLineCode.codeColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'LineCode\' 테이블의 \'code\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableLineCode.codeColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string team {
|
|
get {
|
|
if (this.IsteamNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableLineCode.teamColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableLineCode.teamColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string part {
|
|
get {
|
|
if (this.IspartNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableLineCode.partColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableLineCode.partColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string memo {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableLineCode.memoColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'LineCode\' 테이블의 \'memo\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableLineCode.memoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string wuid {
|
|
get {
|
|
return ((string)(this[this.tableLineCode.wuidColumn]));
|
|
}
|
|
set {
|
|
this[this.tableLineCode.wuidColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public System.DateTime wdate {
|
|
get {
|
|
return ((global::System.DateTime)(this[this.tableLineCode.wdateColumn]));
|
|
}
|
|
set {
|
|
this[this.tableLineCode.wdateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool except {
|
|
get {
|
|
try {
|
|
return ((bool)(this[this.tableLineCode.exceptColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'LineCode\' 테이블의 \'except\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableLineCode.exceptColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string plant {
|
|
get {
|
|
if (this.IsplantNull()) {
|
|
return "";
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableLineCode.plantColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableLineCode.plantColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string grp2 {
|
|
get {
|
|
if (this.Isgrp2Null()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableLineCode.grp2Column]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableLineCode.grp2Column] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IscodeNull() {
|
|
return this.IsNull(this.tableLineCode.codeColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetcodeNull() {
|
|
this[this.tableLineCode.codeColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsteamNull() {
|
|
return this.IsNull(this.tableLineCode.teamColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetteamNull() {
|
|
this[this.tableLineCode.teamColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IspartNull() {
|
|
return this.IsNull(this.tableLineCode.partColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetpartNull() {
|
|
this[this.tableLineCode.partColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsmemoNull() {
|
|
return this.IsNull(this.tableLineCode.memoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetmemoNull() {
|
|
this[this.tableLineCode.memoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsexceptNull() {
|
|
return this.IsNull(this.tableLineCode.exceptColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetexceptNull() {
|
|
this[this.tableLineCode.exceptColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsplantNull() {
|
|
return this.IsNull(this.tableLineCode.plantColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetplantNull() {
|
|
this[this.tableLineCode.plantColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool Isgrp2Null() {
|
|
return this.IsNull(this.tableLineCode.grp2Column);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void Setgrp2Null() {
|
|
this[this.tableLineCode.grp2Column] = global::System.Convert.DBNull;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
public partial class UserGroupRow : global::System.Data.DataRow {
|
|
|
|
private UserGroupDataTable tableUserGroup;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal UserGroupRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tableUserGroup = ((UserGroupDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string dept {
|
|
get {
|
|
return ((string)(this[this.tableUserGroup.deptColumn]));
|
|
}
|
|
set {
|
|
this[this.tableUserGroup.deptColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string gcode {
|
|
get {
|
|
if (this.IsgcodeNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableUserGroup.gcodeColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUserGroup.gcodeColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string path_kj {
|
|
get {
|
|
if (this.Ispath_kjNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableUserGroup.path_kjColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUserGroup.path_kjColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool advpurchase {
|
|
get {
|
|
if (this.IsadvpurchaseNull()) {
|
|
return false;
|
|
}
|
|
else {
|
|
return ((bool)(this[this.tableUserGroup.advpurchaseColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUserGroup.advpurchaseColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public int permission {
|
|
get {
|
|
if (this.IspermissionNull()) {
|
|
return 0;
|
|
}
|
|
else {
|
|
return ((int)(this[this.tableUserGroup.permissionColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUserGroup.permissionColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool advkisul {
|
|
get {
|
|
try {
|
|
return ((bool)(this[this.tableUserGroup.advkisulColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'UserGroup\' 테이블의 \'advkisul\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUserGroup.advkisulColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string managerinfo {
|
|
get {
|
|
if (this.IsmanagerinfoNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableUserGroup.managerinfoColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUserGroup.managerinfoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string devinfo {
|
|
get {
|
|
if (this.IsdevinfoNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableUserGroup.devinfoColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableUserGroup.devinfoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsgcodeNull() {
|
|
return this.IsNull(this.tableUserGroup.gcodeColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetgcodeNull() {
|
|
this[this.tableUserGroup.gcodeColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool Ispath_kjNull() {
|
|
return this.IsNull(this.tableUserGroup.path_kjColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void Setpath_kjNull() {
|
|
this[this.tableUserGroup.path_kjColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsadvpurchaseNull() {
|
|
return this.IsNull(this.tableUserGroup.advpurchaseColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetadvpurchaseNull() {
|
|
this[this.tableUserGroup.advpurchaseColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IspermissionNull() {
|
|
return this.IsNull(this.tableUserGroup.permissionColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetpermissionNull() {
|
|
this[this.tableUserGroup.permissionColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsadvkisulNull() {
|
|
return this.IsNull(this.tableUserGroup.advkisulColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetadvkisulNull() {
|
|
this[this.tableUserGroup.advkisulColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsmanagerinfoNull() {
|
|
return this.IsNull(this.tableUserGroup.managerinfoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetmanagerinfoNull() {
|
|
this[this.tableUserGroup.managerinfoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsdevinfoNull() {
|
|
return this.IsNull(this.tableUserGroup.devinfoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetdevinfoNull() {
|
|
this[this.tableUserGroup.devinfoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
public partial class SPMasterRow : global::System.Data.DataRow {
|
|
|
|
private SPMasterDataTable tableSPMaster;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal SPMasterRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tableSPMaster = ((SPMasterDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public int ID {
|
|
get {
|
|
return ((int)(this[this.tableSPMaster.IDColumn]));
|
|
}
|
|
set {
|
|
this[this.tableSPMaster.IDColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string CtrlNo {
|
|
get {
|
|
if (this.IsCtrlNoNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableSPMaster.CtrlNoColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableSPMaster.CtrlNoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string SIDNo {
|
|
get {
|
|
if (this.IsSIDNoNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableSPMaster.SIDNoColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableSPMaster.SIDNoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string Storage {
|
|
get {
|
|
if (this.IsStorageNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableSPMaster.StorageColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableSPMaster.StorageColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string Location {
|
|
get {
|
|
if (this.IsLocationNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableSPMaster.LocationColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableSPMaster.LocationColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string UseEqmt {
|
|
get {
|
|
if (this.IsUseEqmtNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableSPMaster.UseEqmtColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableSPMaster.UseEqmtColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string PartName {
|
|
get {
|
|
if (this.IsPartNameNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableSPMaster.PartNameColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableSPMaster.PartNameColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string PartNo {
|
|
get {
|
|
if (this.IsPartNoNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableSPMaster.PartNoColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableSPMaster.PartNoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string Process {
|
|
get {
|
|
if (this.IsProcessNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableSPMaster.ProcessColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableSPMaster.ProcessColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string SupplierNo {
|
|
get {
|
|
if (this.IsSupplierNoNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableSPMaster.SupplierNoColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableSPMaster.SupplierNoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public decimal CurrentQty {
|
|
get {
|
|
if (this.IsCurrentQtyNull()) {
|
|
return 0m;
|
|
}
|
|
else {
|
|
return ((decimal)(this[this.tableSPMaster.CurrentQtyColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableSPMaster.CurrentQtyColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public decimal MHA {
|
|
get {
|
|
if (this.IsMHANull()) {
|
|
return 0m;
|
|
}
|
|
else {
|
|
return ((decimal)(this[this.tableSPMaster.MHAColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableSPMaster.MHAColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string Division {
|
|
get {
|
|
if (this.IsDivisionNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableSPMaster.DivisionColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableSPMaster.DivisionColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public decimal BadQty {
|
|
get {
|
|
if (this.IsBadQtyNull()) {
|
|
return 0m;
|
|
}
|
|
else {
|
|
return ((decimal)(this[this.tableSPMaster.BadQtyColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableSPMaster.BadQtyColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public decimal Price {
|
|
get {
|
|
if (this.IsPriceNull()) {
|
|
return 0m;
|
|
}
|
|
else {
|
|
return ((decimal)(this[this.tableSPMaster.PriceColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableSPMaster.PriceColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string PriceUnit {
|
|
get {
|
|
if (this.IsPriceUnitNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableSPMaster.PriceUnitColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableSPMaster.PriceUnitColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string CostCenter {
|
|
get {
|
|
if (this.IsCostCenterNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableSPMaster.CostCenterColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableSPMaster.CostCenterColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string Memo {
|
|
get {
|
|
if (this.IsMemoNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableSPMaster.MemoColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableSPMaster.MemoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string EnrDate {
|
|
get {
|
|
if (this.IsEnrDateNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableSPMaster.EnrDateColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableSPMaster.EnrDateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string Enrollee {
|
|
get {
|
|
if (this.IsEnrolleeNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableSPMaster.EnrolleeColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableSPMaster.EnrolleeColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsCtrlNoNull() {
|
|
return this.IsNull(this.tableSPMaster.CtrlNoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetCtrlNoNull() {
|
|
this[this.tableSPMaster.CtrlNoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsSIDNoNull() {
|
|
return this.IsNull(this.tableSPMaster.SIDNoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetSIDNoNull() {
|
|
this[this.tableSPMaster.SIDNoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsStorageNull() {
|
|
return this.IsNull(this.tableSPMaster.StorageColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetStorageNull() {
|
|
this[this.tableSPMaster.StorageColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsLocationNull() {
|
|
return this.IsNull(this.tableSPMaster.LocationColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetLocationNull() {
|
|
this[this.tableSPMaster.LocationColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsUseEqmtNull() {
|
|
return this.IsNull(this.tableSPMaster.UseEqmtColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetUseEqmtNull() {
|
|
this[this.tableSPMaster.UseEqmtColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsPartNameNull() {
|
|
return this.IsNull(this.tableSPMaster.PartNameColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetPartNameNull() {
|
|
this[this.tableSPMaster.PartNameColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsPartNoNull() {
|
|
return this.IsNull(this.tableSPMaster.PartNoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetPartNoNull() {
|
|
this[this.tableSPMaster.PartNoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsProcessNull() {
|
|
return this.IsNull(this.tableSPMaster.ProcessColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetProcessNull() {
|
|
this[this.tableSPMaster.ProcessColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsSupplierNoNull() {
|
|
return this.IsNull(this.tableSPMaster.SupplierNoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetSupplierNoNull() {
|
|
this[this.tableSPMaster.SupplierNoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsCurrentQtyNull() {
|
|
return this.IsNull(this.tableSPMaster.CurrentQtyColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetCurrentQtyNull() {
|
|
this[this.tableSPMaster.CurrentQtyColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsMHANull() {
|
|
return this.IsNull(this.tableSPMaster.MHAColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetMHANull() {
|
|
this[this.tableSPMaster.MHAColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsDivisionNull() {
|
|
return this.IsNull(this.tableSPMaster.DivisionColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetDivisionNull() {
|
|
this[this.tableSPMaster.DivisionColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsBadQtyNull() {
|
|
return this.IsNull(this.tableSPMaster.BadQtyColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetBadQtyNull() {
|
|
this[this.tableSPMaster.BadQtyColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsPriceNull() {
|
|
return this.IsNull(this.tableSPMaster.PriceColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetPriceNull() {
|
|
this[this.tableSPMaster.PriceColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsPriceUnitNull() {
|
|
return this.IsNull(this.tableSPMaster.PriceUnitColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetPriceUnitNull() {
|
|
this[this.tableSPMaster.PriceUnitColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsCostCenterNull() {
|
|
return this.IsNull(this.tableSPMaster.CostCenterColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetCostCenterNull() {
|
|
this[this.tableSPMaster.CostCenterColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsMemoNull() {
|
|
return this.IsNull(this.tableSPMaster.MemoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetMemoNull() {
|
|
this[this.tableSPMaster.MemoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsEnrDateNull() {
|
|
return this.IsNull(this.tableSPMaster.EnrDateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetEnrDateNull() {
|
|
this[this.tableSPMaster.EnrDateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsEnrolleeNull() {
|
|
return this.IsNull(this.tableSPMaster.EnrolleeColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetEnrolleeNull() {
|
|
this[this.tableSPMaster.EnrolleeColumn] = global::System.Convert.DBNull;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
public partial class EETGW_GroupUserRow : global::System.Data.DataRow {
|
|
|
|
private EETGW_GroupUserDataTable tableEETGW_GroupUser;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal EETGW_GroupUserRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tableEETGW_GroupUser = ((EETGW_GroupUserDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public int idx {
|
|
get {
|
|
return ((int)(this[this.tableEETGW_GroupUser.idxColumn]));
|
|
}
|
|
set {
|
|
this[this.tableEETGW_GroupUser.idxColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string gcode {
|
|
get {
|
|
return ((string)(this[this.tableEETGW_GroupUser.gcodeColumn]));
|
|
}
|
|
set {
|
|
this[this.tableEETGW_GroupUser.gcodeColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string uid {
|
|
get {
|
|
return ((string)(this[this.tableEETGW_GroupUser.uidColumn]));
|
|
}
|
|
set {
|
|
this[this.tableEETGW_GroupUser.uidColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public short level {
|
|
get {
|
|
try {
|
|
return ((short)(this[this.tableEETGW_GroupUser.levelColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'EETGW_GroupUser\' 테이블의 \'level\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableEETGW_GroupUser.levelColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string wuid {
|
|
get {
|
|
return ((string)(this[this.tableEETGW_GroupUser.wuidColumn]));
|
|
}
|
|
set {
|
|
this[this.tableEETGW_GroupUser.wuidColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public System.DateTime wdate {
|
|
get {
|
|
return ((global::System.DateTime)(this[this.tableEETGW_GroupUser.wdateColumn]));
|
|
}
|
|
set {
|
|
this[this.tableEETGW_GroupUser.wdateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool useJobReport {
|
|
get {
|
|
if (this.IsuseJobReportNull()) {
|
|
return false;
|
|
}
|
|
else {
|
|
return ((bool)(this[this.tableEETGW_GroupUser.useJobReportColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableEETGW_GroupUser.useJobReportColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool useUserState {
|
|
get {
|
|
if (this.IsuseUserStateNull()) {
|
|
return false;
|
|
}
|
|
else {
|
|
return ((bool)(this[this.tableEETGW_GroupUser.useUserStateColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableEETGW_GroupUser.useUserStateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string state {
|
|
get {
|
|
if (this.IsstateNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tableEETGW_GroupUser.stateColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableEETGW_GroupUser.stateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IslevelNull() {
|
|
return this.IsNull(this.tableEETGW_GroupUser.levelColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetlevelNull() {
|
|
this[this.tableEETGW_GroupUser.levelColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsuseJobReportNull() {
|
|
return this.IsNull(this.tableEETGW_GroupUser.useJobReportColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetuseJobReportNull() {
|
|
this[this.tableEETGW_GroupUser.useJobReportColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsuseUserStateNull() {
|
|
return this.IsNull(this.tableEETGW_GroupUser.useUserStateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetuseUserStateNull() {
|
|
this[this.tableEETGW_GroupUser.useUserStateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsstateNull() {
|
|
return this.IsNull(this.tableEETGW_GroupUser.stateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetstateNull() {
|
|
this[this.tableEETGW_GroupUser.stateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
public partial class vGroupUserRow : global::System.Data.DataRow {
|
|
|
|
private vGroupUserDataTable tablevGroupUser;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal vGroupUserRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tablevGroupUser = ((vGroupUserDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string gcode {
|
|
get {
|
|
return ((string)(this[this.tablevGroupUser.gcodeColumn]));
|
|
}
|
|
set {
|
|
this[this.tablevGroupUser.gcodeColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string dept {
|
|
get {
|
|
if (this.IsdeptNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tablevGroupUser.deptColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablevGroupUser.deptColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public short level {
|
|
get {
|
|
if (this.IslevelNull()) {
|
|
return 0;
|
|
}
|
|
else {
|
|
return ((short)(this[this.tablevGroupUser.levelColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablevGroupUser.levelColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string name {
|
|
get {
|
|
if (this.IsnameNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tablevGroupUser.nameColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablevGroupUser.nameColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string nameE {
|
|
get {
|
|
if (this.IsnameENull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tablevGroupUser.nameEColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablevGroupUser.nameEColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string grade {
|
|
get {
|
|
if (this.IsgradeNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tablevGroupUser.gradeColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablevGroupUser.gradeColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string email {
|
|
get {
|
|
if (this.IsemailNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tablevGroupUser.emailColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablevGroupUser.emailColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string tel {
|
|
get {
|
|
if (this.IstelNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tablevGroupUser.telColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablevGroupUser.telColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string indate {
|
|
get {
|
|
if (this.IsindateNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tablevGroupUser.indateColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablevGroupUser.indateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string outdate {
|
|
get {
|
|
if (this.IsoutdateNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tablevGroupUser.outdateColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablevGroupUser.outdateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string hp {
|
|
get {
|
|
if (this.IshpNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tablevGroupUser.hpColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablevGroupUser.hpColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string place {
|
|
get {
|
|
if (this.IsplaceNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tablevGroupUser.placeColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablevGroupUser.placeColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string ads_employNo {
|
|
get {
|
|
if (this.Isads_employNoNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tablevGroupUser.ads_employNoColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablevGroupUser.ads_employNoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string ads_title {
|
|
get {
|
|
if (this.Isads_titleNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tablevGroupUser.ads_titleColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablevGroupUser.ads_titleColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string ads_created {
|
|
get {
|
|
if (this.Isads_createdNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tablevGroupUser.ads_createdColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablevGroupUser.ads_createdColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string memo {
|
|
get {
|
|
if (this.IsmemoNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tablevGroupUser.memoColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablevGroupUser.memoColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string processs {
|
|
get {
|
|
if (this.IsprocesssNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tablevGroupUser.processsColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablevGroupUser.processsColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string id {
|
|
get {
|
|
return ((string)(this[this.tablevGroupUser.idColumn]));
|
|
}
|
|
set {
|
|
this[this.tablevGroupUser.idColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string state {
|
|
get {
|
|
if (this.IsstateNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tablevGroupUser.stateColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablevGroupUser.stateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool useJobReport {
|
|
get {
|
|
if (this.IsuseJobReportNull()) {
|
|
return false;
|
|
}
|
|
else {
|
|
return ((bool)(this[this.tablevGroupUser.useJobReportColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablevGroupUser.useJobReportColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool useUserState {
|
|
get {
|
|
if (this.IsuseUserStateNull()) {
|
|
return false;
|
|
}
|
|
else {
|
|
return ((bool)(this[this.tablevGroupUser.useUserStateColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablevGroupUser.useUserStateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string password {
|
|
get {
|
|
if (this.IspasswordNull()) {
|
|
return string.Empty;
|
|
}
|
|
else {
|
|
return ((string)(this[this.tablevGroupUser.passwordColumn]));
|
|
}
|
|
}
|
|
set {
|
|
this[this.tablevGroupUser.passwordColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsdeptNull() {
|
|
return this.IsNull(this.tablevGroupUser.deptColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetdeptNull() {
|
|
this[this.tablevGroupUser.deptColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IslevelNull() {
|
|
return this.IsNull(this.tablevGroupUser.levelColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetlevelNull() {
|
|
this[this.tablevGroupUser.levelColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsnameNull() {
|
|
return this.IsNull(this.tablevGroupUser.nameColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetnameNull() {
|
|
this[this.tablevGroupUser.nameColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsnameENull() {
|
|
return this.IsNull(this.tablevGroupUser.nameEColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetnameENull() {
|
|
this[this.tablevGroupUser.nameEColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsgradeNull() {
|
|
return this.IsNull(this.tablevGroupUser.gradeColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetgradeNull() {
|
|
this[this.tablevGroupUser.gradeColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsemailNull() {
|
|
return this.IsNull(this.tablevGroupUser.emailColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetemailNull() {
|
|
this[this.tablevGroupUser.emailColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IstelNull() {
|
|
return this.IsNull(this.tablevGroupUser.telColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SettelNull() {
|
|
this[this.tablevGroupUser.telColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsindateNull() {
|
|
return this.IsNull(this.tablevGroupUser.indateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetindateNull() {
|
|
this[this.tablevGroupUser.indateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsoutdateNull() {
|
|
return this.IsNull(this.tablevGroupUser.outdateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetoutdateNull() {
|
|
this[this.tablevGroupUser.outdateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IshpNull() {
|
|
return this.IsNull(this.tablevGroupUser.hpColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SethpNull() {
|
|
this[this.tablevGroupUser.hpColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsplaceNull() {
|
|
return this.IsNull(this.tablevGroupUser.placeColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetplaceNull() {
|
|
this[this.tablevGroupUser.placeColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool Isads_employNoNull() {
|
|
return this.IsNull(this.tablevGroupUser.ads_employNoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void Setads_employNoNull() {
|
|
this[this.tablevGroupUser.ads_employNoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool Isads_titleNull() {
|
|
return this.IsNull(this.tablevGroupUser.ads_titleColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void Setads_titleNull() {
|
|
this[this.tablevGroupUser.ads_titleColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool Isads_createdNull() {
|
|
return this.IsNull(this.tablevGroupUser.ads_createdColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void Setads_createdNull() {
|
|
this[this.tablevGroupUser.ads_createdColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsmemoNull() {
|
|
return this.IsNull(this.tablevGroupUser.memoColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetmemoNull() {
|
|
this[this.tablevGroupUser.memoColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsprocesssNull() {
|
|
return this.IsNull(this.tablevGroupUser.processsColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetprocesssNull() {
|
|
this[this.tablevGroupUser.processsColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsstateNull() {
|
|
return this.IsNull(this.tablevGroupUser.stateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetstateNull() {
|
|
this[this.tablevGroupUser.stateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsuseJobReportNull() {
|
|
return this.IsNull(this.tablevGroupUser.useJobReportColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetuseJobReportNull() {
|
|
this[this.tablevGroupUser.useJobReportColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsuseUserStateNull() {
|
|
return this.IsNull(this.tablevGroupUser.useUserStateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetuseUserStateNull() {
|
|
this[this.tablevGroupUser.useUserStateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IspasswordNull() {
|
|
return this.IsNull(this.tablevGroupUser.passwordColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetpasswordNull() {
|
|
this[this.tablevGroupUser.passwordColumn] = global::System.Convert.DBNull;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents strongly named DataRow class.
|
|
///</summary>
|
|
public partial class JobReportRow : global::System.Data.DataRow {
|
|
|
|
private JobReportDataTable tableJobReport;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal JobReportRow(global::System.Data.DataRowBuilder rb) :
|
|
base(rb) {
|
|
this.tableJobReport = ((JobReportDataTable)(this.Table));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public int idx {
|
|
get {
|
|
return ((int)(this[this.tableJobReport.idxColumn]));
|
|
}
|
|
set {
|
|
this[this.tableJobReport.idxColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string gcode {
|
|
get {
|
|
return ((string)(this[this.tableJobReport.gcodeColumn]));
|
|
}
|
|
set {
|
|
this[this.tableJobReport.gcodeColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string pdate {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableJobReport.pdateColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'pdate\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableJobReport.pdateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public int pidx {
|
|
get {
|
|
try {
|
|
return ((int)(this[this.tableJobReport.pidxColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'pidx\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableJobReport.pidxColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string projectName {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableJobReport.projectNameColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'projectName\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableJobReport.projectNameColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string uid {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableJobReport.uidColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'uid\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableJobReport.uidColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string requestpart {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableJobReport.requestpartColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'requestpart\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableJobReport.requestpartColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string package {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableJobReport.packageColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'package\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableJobReport.packageColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string status {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableJobReport.statusColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'status\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableJobReport.statusColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string type {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableJobReport.typeColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'type\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableJobReport.typeColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string process {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableJobReport.processColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'process\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableJobReport.processColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string description {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableJobReport.descriptionColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'description\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableJobReport.descriptionColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string remark {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableJobReport.remarkColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'remark\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableJobReport.remarkColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public double hrs {
|
|
get {
|
|
try {
|
|
return ((double)(this[this.tableJobReport.hrsColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'hrs\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableJobReport.hrsColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public double ot {
|
|
get {
|
|
try {
|
|
return ((double)(this[this.tableJobReport.otColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'ot\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableJobReport.otColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool import {
|
|
get {
|
|
try {
|
|
return ((bool)(this[this.tableJobReport.importColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'import\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableJobReport.importColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string wuid {
|
|
get {
|
|
return ((string)(this[this.tableJobReport.wuidColumn]));
|
|
}
|
|
set {
|
|
this[this.tableJobReport.wuidColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public System.DateTime wdate {
|
|
get {
|
|
return ((global::System.DateTime)(this[this.tableJobReport.wdateColumn]));
|
|
}
|
|
set {
|
|
this[this.tableJobReport.wdateColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string description2 {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableJobReport.description2Column]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'description2\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableJobReport.description2Column] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public string tag {
|
|
get {
|
|
try {
|
|
return ((string)(this[this.tableJobReport.tagColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'tag\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableJobReport.tagColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool autoinput {
|
|
get {
|
|
try {
|
|
return ((bool)(this[this.tableJobReport.autoinputColumn]));
|
|
}
|
|
catch (global::System.InvalidCastException e) {
|
|
throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'autoinput\' 열의 값이 DBNull입니다.", e);
|
|
}
|
|
}
|
|
set {
|
|
this[this.tableJobReport.autoinputColumn] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IspdateNull() {
|
|
return this.IsNull(this.tableJobReport.pdateColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetpdateNull() {
|
|
this[this.tableJobReport.pdateColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IspidxNull() {
|
|
return this.IsNull(this.tableJobReport.pidxColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetpidxNull() {
|
|
this[this.tableJobReport.pidxColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsprojectNameNull() {
|
|
return this.IsNull(this.tableJobReport.projectNameColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetprojectNameNull() {
|
|
this[this.tableJobReport.projectNameColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsuidNull() {
|
|
return this.IsNull(this.tableJobReport.uidColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetuidNull() {
|
|
this[this.tableJobReport.uidColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsrequestpartNull() {
|
|
return this.IsNull(this.tableJobReport.requestpartColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetrequestpartNull() {
|
|
this[this.tableJobReport.requestpartColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IspackageNull() {
|
|
return this.IsNull(this.tableJobReport.packageColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetpackageNull() {
|
|
this[this.tableJobReport.packageColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsstatusNull() {
|
|
return this.IsNull(this.tableJobReport.statusColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetstatusNull() {
|
|
this[this.tableJobReport.statusColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IstypeNull() {
|
|
return this.IsNull(this.tableJobReport.typeColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SettypeNull() {
|
|
this[this.tableJobReport.typeColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsprocessNull() {
|
|
return this.IsNull(this.tableJobReport.processColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetprocessNull() {
|
|
this[this.tableJobReport.processColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsdescriptionNull() {
|
|
return this.IsNull(this.tableJobReport.descriptionColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetdescriptionNull() {
|
|
this[this.tableJobReport.descriptionColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsremarkNull() {
|
|
return this.IsNull(this.tableJobReport.remarkColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetremarkNull() {
|
|
this[this.tableJobReport.remarkColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IshrsNull() {
|
|
return this.IsNull(this.tableJobReport.hrsColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SethrsNull() {
|
|
this[this.tableJobReport.hrsColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsotNull() {
|
|
return this.IsNull(this.tableJobReport.otColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetotNull() {
|
|
this[this.tableJobReport.otColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsimportNull() {
|
|
return this.IsNull(this.tableJobReport.importColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetimportNull() {
|
|
this[this.tableJobReport.importColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool Isdescription2Null() {
|
|
return this.IsNull(this.tableJobReport.description2Column);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void Setdescription2Null() {
|
|
this[this.tableJobReport.description2Column] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IstagNull() {
|
|
return this.IsNull(this.tableJobReport.tagColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SettagNull() {
|
|
this[this.tableJobReport.tagColumn] = global::System.Convert.DBNull;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool IsautoinputNull() {
|
|
return this.IsNull(this.tableJobReport.autoinputColumn);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public void SetautoinputNull() {
|
|
this[this.tableJobReport.autoinputColumn] = global::System.Convert.DBNull;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public class UsersRowChangeEvent : global::System.EventArgs {
|
|
|
|
private UsersRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public UsersRowChangeEvent(UsersRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public UsersRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public class ProjectsRowChangeEvent : global::System.EventArgs {
|
|
|
|
private ProjectsRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public ProjectsRowChangeEvent(ProjectsRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public ProjectsRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public class ItemsRowChangeEvent : global::System.EventArgs {
|
|
|
|
private ItemsRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public ItemsRowChangeEvent(ItemsRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public ItemsRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public class InventoryRowChangeEvent : global::System.EventArgs {
|
|
|
|
private InventoryRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public InventoryRowChangeEvent(InventoryRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public InventoryRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public class LineCodeRowChangeEvent : global::System.EventArgs {
|
|
|
|
private LineCodeRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public LineCodeRowChangeEvent(LineCodeRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public LineCodeRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public class UserGroupRowChangeEvent : global::System.EventArgs {
|
|
|
|
private UserGroupRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public UserGroupRowChangeEvent(UserGroupRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public UserGroupRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public class SPMasterRowChangeEvent : global::System.EventArgs {
|
|
|
|
private SPMasterRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public SPMasterRowChangeEvent(SPMasterRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public SPMasterRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public class EETGW_GroupUserRowChangeEvent : global::System.EventArgs {
|
|
|
|
private EETGW_GroupUserRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public EETGW_GroupUserRowChangeEvent(EETGW_GroupUserRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public EETGW_GroupUserRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public class vGroupUserRowChangeEvent : global::System.EventArgs {
|
|
|
|
private vGroupUserRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public vGroupUserRowChangeEvent(vGroupUserRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public vGroupUserRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Row event argument class
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public class JobReportRowChangeEvent : global::System.EventArgs {
|
|
|
|
private JobReportRow eventRow;
|
|
|
|
private global::System.Data.DataRowAction eventAction;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public JobReportRowChangeEvent(JobReportRow row, global::System.Data.DataRowAction action) {
|
|
this.eventRow = row;
|
|
this.eventAction = action;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public JobReportRow Row {
|
|
get {
|
|
return this.eventRow;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public global::System.Data.DataRowAction Action {
|
|
get {
|
|
return this.eventAction;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
namespace Project.dsMSSQLTableAdapters {
|
|
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[global::System.ComponentModel.ToolboxItem(true)]
|
|
[global::System.ComponentModel.DataObjectAttribute(true)]
|
|
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
|
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public partial class UsersTableAdapter : global::System.ComponentModel.Component {
|
|
|
|
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
|
private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
|
private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
|
private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
|
private bool _clearBeforeFill;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public UsersTableAdapter() {
|
|
this.ClearBeforeFill = true;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
get {
|
|
if ((this._adapter == null)) {
|
|
this.InitAdapter();
|
|
}
|
|
return this._adapter;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
get {
|
|
if ((this._connection == null)) {
|
|
this.InitConnection();
|
|
}
|
|
return this._connection;
|
|
}
|
|
set {
|
|
this._connection = value;
|
|
if ((this.Adapter.InsertCommand != null)) {
|
|
this.Adapter.InsertCommand.Connection = value;
|
|
}
|
|
if ((this.Adapter.DeleteCommand != null)) {
|
|
this.Adapter.DeleteCommand.Connection = value;
|
|
}
|
|
if ((this.Adapter.UpdateCommand != null)) {
|
|
this.Adapter.UpdateCommand.Connection = value;
|
|
}
|
|
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
if ((this.CommandCollection[i] != null)) {
|
|
((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
get {
|
|
return this._transaction;
|
|
}
|
|
set {
|
|
this._transaction = value;
|
|
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
this.CommandCollection[i].Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.DeleteCommand != null))) {
|
|
this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.InsertCommand != null))) {
|
|
this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.UpdateCommand != null))) {
|
|
this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
get {
|
|
if ((this._commandCollection == null)) {
|
|
this.InitCommandCollection();
|
|
}
|
|
return this._commandCollection;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool ClearBeforeFill {
|
|
get {
|
|
return this._clearBeforeFill;
|
|
}
|
|
set {
|
|
this._clearBeforeFill = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitAdapter() {
|
|
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
tableMapping.SourceTable = "Table";
|
|
tableMapping.DataSetTable = "Users";
|
|
tableMapping.ColumnMappings.Add("id", "id");
|
|
tableMapping.ColumnMappings.Add("password", "password");
|
|
tableMapping.ColumnMappings.Add("name", "name");
|
|
tableMapping.ColumnMappings.Add("dept", "dept");
|
|
tableMapping.ColumnMappings.Add("grade", "grade");
|
|
tableMapping.ColumnMappings.Add("email", "email");
|
|
tableMapping.ColumnMappings.Add("level", "level");
|
|
tableMapping.ColumnMappings.Add("indate", "indate");
|
|
tableMapping.ColumnMappings.Add("outdate", "outdate");
|
|
tableMapping.ColumnMappings.Add("memo", "memo");
|
|
tableMapping.ColumnMappings.Add("wuid", "wuid");
|
|
tableMapping.ColumnMappings.Add("wdate", "wdate");
|
|
tableMapping.ColumnMappings.Add("tel", "tel");
|
|
tableMapping.ColumnMappings.Add("nameE", "nameE");
|
|
tableMapping.ColumnMappings.Add("hp", "hp");
|
|
tableMapping.ColumnMappings.Add("place", "place");
|
|
tableMapping.ColumnMappings.Add("ads_title", "ads_title");
|
|
tableMapping.ColumnMappings.Add("ads_created", "ads_created");
|
|
tableMapping.ColumnMappings.Add("ads_employNo", "ads_employNo");
|
|
tableMapping.ColumnMappings.Add("processs", "processs");
|
|
tableMapping.ColumnMappings.Add("gcode", "gcode");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.DeleteCommand.Connection = this.Connection;
|
|
this._adapter.DeleteCommand.CommandText = "DELETE FROM Users\r\nWHERE (id = @Original_id)";
|
|
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.InsertCommand.Connection = this.Connection;
|
|
this._adapter.InsertCommand.CommandText = @"INSERT INTO Users
|
|
(id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate, processs, gcode)
|
|
VALUES (@id,@password,@nameE,@name,@dept,@grade,@email,@level,@indate,@outdate,@tel,@hp,@place,@ads_employNo,@ads_title,@ads_created,@memo,@wuid,@wdate,@processs,@gcode);
|
|
SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate FROM Users WHERE (id = @id) ORDER BY name";
|
|
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@password", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nameE", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "nameE", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@grade", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "grade", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@email", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@level", global::System.Data.SqlDbType.SmallInt, 2, global::System.Data.ParameterDirection.Input, 0, 0, "level", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@indate", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "indate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@outdate", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "outdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tel", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@hp", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "hp", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@place", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "place", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ads_employNo", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "ads_employNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ads_title", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "ads_title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ads_created", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "ads_created", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.NVarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 4, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@processs", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "processs", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.UpdateCommand.Connection = this.Connection;
|
|
this._adapter.UpdateCommand.CommandText = @"UPDATE Users
|
|
SET password = @password, nameE = @nameE, name = @name, dept = @dept, grade = @grade, email = @email, level = @level, indate = @indate, outdate = @outdate, tel = @tel, hp = @hp,
|
|
place = @place, ads_employNo = @ads_employNo, ads_title = @ads_title, ads_created = @ads_created, memo = @memo, wuid = @wuid, wdate = @wdate, processs = @process,
|
|
gcode = @gcode
|
|
WHERE (id = @Original_id);
|
|
SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate FROM Users WHERE (id = @id) ORDER BY name";
|
|
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@password", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nameE", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "nameE", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@grade", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "grade", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@email", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@level", global::System.Data.SqlDbType.SmallInt, 2, global::System.Data.ParameterDirection.Input, 0, 0, "level", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@indate", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "indate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@outdate", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "outdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tel", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@hp", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "hp", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@place", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "place", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ads_employNo", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "ads_employNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ads_title", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "ads_title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ads_created", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "ads_created", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.NVarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 4, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@process", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "processs", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitConnection() {
|
|
this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
this._connection.ConnectionString = global::Project.Properties.Settings.Default.gwcs;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[7];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = @"SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate, processs, gcode
|
|
FROM Users
|
|
WHERE (ISNULL(dept, N'') LIKE @dept) AND (ISNULL(processs, N'') LIKE @process)
|
|
ORDER BY name";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.VarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@process", global::System.Data.SqlDbType.NVarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[1].Connection = this.Connection;
|
|
this._commandCollection[1].CommandText = "SELECT COUNT(*) FROM Users where id = @userid";
|
|
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
|
|
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@userid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[2].Connection = this.Connection;
|
|
this._commandCollection[2].CommandText = "SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, te" +
|
|
"l, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate, processs," +
|
|
" gcode\r\nFROM Users\r\nWHERE (name = @username) AND (password = @encpw)";
|
|
this._commandCollection[2].CommandType = global::System.Data.CommandType.Text;
|
|
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@username", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@encpw", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[3].Connection = this.Connection;
|
|
this._commandCollection[3].CommandText = "SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, te" +
|
|
"l, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate, processs," +
|
|
" gcode\r\nFROM Users\r\nWHERE (id = @id)\r\nORDER BY name";
|
|
this._commandCollection[3].CommandType = global::System.Data.CommandType.Text;
|
|
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[4].Connection = this.Connection;
|
|
this._commandCollection[4].CommandText = @"SELECT ads_created, ads_employNo, ads_title, dept, email, grade, hp, id, indate, level, memo, name, nameE, outdate, password, place, tel, wdate, wuid, processs, gcode
|
|
FROM Users
|
|
WHERE (password = @encpw) AND (level > 0) AND (email = @idkey) OR
|
|
(password = @encpw) AND (level > 0) AND (id = @idkey) OR
|
|
(password = @encpw) AND (level > 0) AND (email = { fn CONCAT(@idkey, '@amkor.co.kr') })";
|
|
this._commandCollection[4].CommandType = global::System.Data.CommandType.Text;
|
|
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@encpw", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idkey", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[5].Connection = this.Connection;
|
|
this._commandCollection[5].CommandText = @"INSERT INTO Users
|
|
(id, password, nameE, name, dept, email, level, tel, ads_employNo, ads_title, ads_created, memo, wuid, wdate)
|
|
VALUES (@id, 'B6589FC6AB0DC82CF12099D1C2D40AB994E8410C',@nameE,@name,@dept,@email, 0,@tel,@ads_employNo,@ads_title,@ads_created,@memo,@wuid,@wdate);
|
|
SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate FROM Users WHERE (id = @id) ORDER BY name";
|
|
this._commandCollection[5].CommandType = global::System.Data.CommandType.Text;
|
|
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nameE", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "nameE", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@email", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tel", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ads_employNo", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "ads_employNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ads_title", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "ads_title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ads_created", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "ads_created", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.NVarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[6].Connection = this.Connection;
|
|
this._commandCollection[6].CommandText = "UPDATE Users\r\nSET dept = @dept,name=@name,ads_title=@title\r\nWHERE (id = " +
|
|
"@Original_id); ";
|
|
this._commandCollection[6].CommandType = global::System.Data.CommandType.Text;
|
|
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@title", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "ads_title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(dsMSSQL.UsersDataTable dataTable, string dept, string process) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((dept == null)) {
|
|
throw new global::System.ArgumentNullException("dept");
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(dept));
|
|
}
|
|
if ((process == null)) {
|
|
throw new global::System.ArgumentNullException("process");
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(process));
|
|
}
|
|
if ((this.ClearBeforeFill == true)) {
|
|
dataTable.Clear();
|
|
}
|
|
int returnValue = this.Adapter.Fill(dataTable);
|
|
return returnValue;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
public virtual dsMSSQL.UsersDataTable GetData(string dept, string process) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((dept == null)) {
|
|
throw new global::System.ArgumentNullException("dept");
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(dept));
|
|
}
|
|
if ((process == null)) {
|
|
throw new global::System.ArgumentNullException("process");
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(process));
|
|
}
|
|
dsMSSQL.UsersDataTable dataTable = new dsMSSQL.UsersDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
|
|
public virtual int FillByNamePw(dsMSSQL.UsersDataTable dataTable, string username, string encpw) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[2];
|
|
if ((username == null)) {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(username));
|
|
}
|
|
if ((encpw == null)) {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(encpw));
|
|
}
|
|
if ((this.ClearBeforeFill == true)) {
|
|
dataTable.Clear();
|
|
}
|
|
int returnValue = this.Adapter.Fill(dataTable);
|
|
return returnValue;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
|
public virtual dsMSSQL.UsersDataTable GetByNamePw(string username, string encpw) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[2];
|
|
if ((username == null)) {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(username));
|
|
}
|
|
if ((encpw == null)) {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(encpw));
|
|
}
|
|
dsMSSQL.UsersDataTable dataTable = new dsMSSQL.UsersDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
|
|
public virtual int FillID(dsMSSQL.UsersDataTable dataTable, string id) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[3];
|
|
if ((id == null)) {
|
|
throw new global::System.ArgumentNullException("id");
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(id));
|
|
}
|
|
if ((this.ClearBeforeFill == true)) {
|
|
dataTable.Clear();
|
|
}
|
|
int returnValue = this.Adapter.Fill(dataTable);
|
|
return returnValue;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
|
public virtual dsMSSQL.UsersDataTable GetID(string id) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[3];
|
|
if ((id == null)) {
|
|
throw new global::System.ArgumentNullException("id");
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(id));
|
|
}
|
|
dsMSSQL.UsersDataTable dataTable = new dsMSSQL.UsersDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
|
|
public virtual int FillIDPW(dsMSSQL.UsersDataTable dataTable, string encpw, string idkey) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[4];
|
|
if ((encpw == null)) {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(encpw));
|
|
}
|
|
if ((idkey == null)) {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(idkey));
|
|
}
|
|
if ((this.ClearBeforeFill == true)) {
|
|
dataTable.Clear();
|
|
}
|
|
int returnValue = this.Adapter.Fill(dataTable);
|
|
return returnValue;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
|
public virtual dsMSSQL.UsersDataTable GetIDPW(string encpw, string idkey) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[4];
|
|
if ((encpw == null)) {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(encpw));
|
|
}
|
|
if ((idkey == null)) {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(idkey));
|
|
}
|
|
dsMSSQL.UsersDataTable dataTable = new dsMSSQL.UsersDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(dsMSSQL.UsersDataTable dataTable) {
|
|
return this.Adapter.Update(dataTable);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(dsMSSQL dataSet) {
|
|
return this.Adapter.Update(dataSet, "Users");
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
dataRow});
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
return this.Adapter.Update(dataRows);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
public virtual int Delete(string Original_id) {
|
|
if ((Original_id == null)) {
|
|
throw new global::System.ArgumentNullException("Original_id");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_id));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.DeleteCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.DeleteCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
public virtual int Insert(
|
|
string id,
|
|
string password,
|
|
string nameE,
|
|
string name,
|
|
string dept,
|
|
string grade,
|
|
string email,
|
|
global::System.Nullable<short> level,
|
|
string indate,
|
|
string outdate,
|
|
string tel,
|
|
string hp,
|
|
string place,
|
|
string ads_employNo,
|
|
string ads_title,
|
|
string ads_created,
|
|
string memo,
|
|
string wuid,
|
|
System.DateTime wdate,
|
|
string processs,
|
|
string gcode) {
|
|
if ((id == null)) {
|
|
throw new global::System.ArgumentNullException("id");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(id));
|
|
}
|
|
if ((password == null)) {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(password));
|
|
}
|
|
if ((nameE == null)) {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(nameE));
|
|
}
|
|
if ((name == null)) {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(name));
|
|
}
|
|
if ((dept == null)) {
|
|
this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[4].Value = ((string)(dept));
|
|
}
|
|
if ((grade == null)) {
|
|
this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[5].Value = ((string)(grade));
|
|
}
|
|
if ((email == null)) {
|
|
this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[6].Value = ((string)(email));
|
|
}
|
|
if ((level.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[7].Value = ((short)(level.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((indate == null)) {
|
|
this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[8].Value = ((string)(indate));
|
|
}
|
|
if ((outdate == null)) {
|
|
this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[9].Value = ((string)(outdate));
|
|
}
|
|
if ((tel == null)) {
|
|
this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[10].Value = ((string)(tel));
|
|
}
|
|
if ((hp == null)) {
|
|
this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[11].Value = ((string)(hp));
|
|
}
|
|
if ((place == null)) {
|
|
this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[12].Value = ((string)(place));
|
|
}
|
|
if ((ads_employNo == null)) {
|
|
this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[13].Value = ((string)(ads_employNo));
|
|
}
|
|
if ((ads_title == null)) {
|
|
this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[14].Value = ((string)(ads_title));
|
|
}
|
|
if ((ads_created == null)) {
|
|
this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[15].Value = ((string)(ads_created));
|
|
}
|
|
if ((memo == null)) {
|
|
this.Adapter.InsertCommand.Parameters[16].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[16].Value = ((string)(memo));
|
|
}
|
|
if ((wuid == null)) {
|
|
throw new global::System.ArgumentNullException("wuid");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[17].Value = ((string)(wuid));
|
|
}
|
|
this.Adapter.InsertCommand.Parameters[18].Value = ((System.DateTime)(wdate));
|
|
if ((processs == null)) {
|
|
this.Adapter.InsertCommand.Parameters[19].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[19].Value = ((string)(processs));
|
|
}
|
|
if ((gcode == null)) {
|
|
this.Adapter.InsertCommand.Parameters[20].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[20].Value = ((string)(gcode));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.InsertCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.InsertCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(
|
|
string password,
|
|
string nameE,
|
|
string name,
|
|
string dept,
|
|
string grade,
|
|
string email,
|
|
global::System.Nullable<short> level,
|
|
string indate,
|
|
string outdate,
|
|
string tel,
|
|
string hp,
|
|
string place,
|
|
string ads_employNo,
|
|
string ads_title,
|
|
string ads_created,
|
|
string memo,
|
|
string wuid,
|
|
System.DateTime wdate,
|
|
string process,
|
|
string gcode,
|
|
string Original_id,
|
|
string id) {
|
|
if ((password == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(password));
|
|
}
|
|
if ((nameE == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(nameE));
|
|
}
|
|
if ((name == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(name));
|
|
}
|
|
if ((dept == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(dept));
|
|
}
|
|
if ((grade == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(grade));
|
|
}
|
|
if ((email == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(email));
|
|
}
|
|
if ((level.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = ((short)(level.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((indate == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(indate));
|
|
}
|
|
if ((outdate == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(outdate));
|
|
}
|
|
if ((tel == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(tel));
|
|
}
|
|
if ((hp == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(hp));
|
|
}
|
|
if ((place == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(place));
|
|
}
|
|
if ((ads_employNo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(ads_employNo));
|
|
}
|
|
if ((ads_title == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(ads_title));
|
|
}
|
|
if ((ads_created == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(ads_created));
|
|
}
|
|
if ((memo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(memo));
|
|
}
|
|
if ((wuid == null)) {
|
|
throw new global::System.ArgumentNullException("wuid");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(wuid));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[17].Value = ((System.DateTime)(wdate));
|
|
if ((process == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(process));
|
|
}
|
|
if ((gcode == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(gcode));
|
|
}
|
|
if ((Original_id == null)) {
|
|
throw new global::System.ArgumentNullException("Original_id");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_id));
|
|
}
|
|
if ((id == null)) {
|
|
throw new global::System.ArgumentNullException("id");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(id));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.UpdateCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.UpdateCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual global::System.Nullable<int> ExistID(string userid) {
|
|
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
|
|
if ((userid == null)) {
|
|
throw new global::System.ArgumentNullException("userid");
|
|
}
|
|
else {
|
|
command.Parameters[0].Value = ((string)(userid));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
|
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
command.Connection.Open();
|
|
}
|
|
object returnValue;
|
|
try {
|
|
returnValue = command.ExecuteScalar();
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
command.Connection.Close();
|
|
}
|
|
}
|
|
if (((returnValue == null)
|
|
|| (returnValue.GetType() == typeof(global::System.DBNull)))) {
|
|
return new global::System.Nullable<int>();
|
|
}
|
|
else {
|
|
return new global::System.Nullable<int>(((int)(returnValue)));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, false)]
|
|
public virtual int InsertADSInfo(string id, string nameE, string name, string dept, string email, string tel, string ads_employNo, string ads_title, string ads_created, string memo, string wuid, System.DateTime wdate) {
|
|
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
|
|
if ((id == null)) {
|
|
throw new global::System.ArgumentNullException("id");
|
|
}
|
|
else {
|
|
command.Parameters[0].Value = ((string)(id));
|
|
}
|
|
if ((nameE == null)) {
|
|
command.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
command.Parameters[1].Value = ((string)(nameE));
|
|
}
|
|
if ((name == null)) {
|
|
command.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
command.Parameters[2].Value = ((string)(name));
|
|
}
|
|
if ((dept == null)) {
|
|
command.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
command.Parameters[3].Value = ((string)(dept));
|
|
}
|
|
if ((email == null)) {
|
|
command.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
command.Parameters[4].Value = ((string)(email));
|
|
}
|
|
if ((tel == null)) {
|
|
command.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
command.Parameters[5].Value = ((string)(tel));
|
|
}
|
|
if ((ads_employNo == null)) {
|
|
command.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
command.Parameters[6].Value = ((string)(ads_employNo));
|
|
}
|
|
if ((ads_title == null)) {
|
|
command.Parameters[7].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
command.Parameters[7].Value = ((string)(ads_title));
|
|
}
|
|
if ((ads_created == null)) {
|
|
command.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
command.Parameters[8].Value = ((string)(ads_created));
|
|
}
|
|
if ((memo == null)) {
|
|
command.Parameters[9].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
command.Parameters[9].Value = ((string)(memo));
|
|
}
|
|
if ((wuid == null)) {
|
|
throw new global::System.ArgumentNullException("wuid");
|
|
}
|
|
else {
|
|
command.Parameters[10].Value = ((string)(wuid));
|
|
}
|
|
command.Parameters[11].Value = ((System.DateTime)(wdate));
|
|
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
|
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
command.Connection.Open();
|
|
}
|
|
int returnValue;
|
|
try {
|
|
returnValue = command.ExecuteNonQuery();
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
command.Connection.Close();
|
|
}
|
|
}
|
|
return returnValue;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)]
|
|
public virtual int UpdateDept(string dept, string name, string title, string Original_id) {
|
|
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6];
|
|
if ((dept == null)) {
|
|
command.Parameters[0].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
command.Parameters[0].Value = ((string)(dept));
|
|
}
|
|
if ((name == null)) {
|
|
command.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
command.Parameters[1].Value = ((string)(name));
|
|
}
|
|
if ((title == null)) {
|
|
command.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
command.Parameters[2].Value = ((string)(title));
|
|
}
|
|
if ((Original_id == null)) {
|
|
throw new global::System.ArgumentNullException("Original_id");
|
|
}
|
|
else {
|
|
command.Parameters[3].Value = ((string)(Original_id));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
|
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
command.Connection.Open();
|
|
}
|
|
int returnValue;
|
|
try {
|
|
returnValue = command.ExecuteNonQuery();
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
command.Connection.Close();
|
|
}
|
|
}
|
|
return returnValue;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[global::System.ComponentModel.ToolboxItem(true)]
|
|
[global::System.ComponentModel.DataObjectAttribute(true)]
|
|
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
|
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public partial class ProjectsTableAdapter : global::System.ComponentModel.Component {
|
|
|
|
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
|
private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
|
private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
|
private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
|
private bool _clearBeforeFill;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public ProjectsTableAdapter() {
|
|
this.ClearBeforeFill = true;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
get {
|
|
if ((this._adapter == null)) {
|
|
this.InitAdapter();
|
|
}
|
|
return this._adapter;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
get {
|
|
if ((this._connection == null)) {
|
|
this.InitConnection();
|
|
}
|
|
return this._connection;
|
|
}
|
|
set {
|
|
this._connection = value;
|
|
if ((this.Adapter.InsertCommand != null)) {
|
|
this.Adapter.InsertCommand.Connection = value;
|
|
}
|
|
if ((this.Adapter.DeleteCommand != null)) {
|
|
this.Adapter.DeleteCommand.Connection = value;
|
|
}
|
|
if ((this.Adapter.UpdateCommand != null)) {
|
|
this.Adapter.UpdateCommand.Connection = value;
|
|
}
|
|
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
if ((this.CommandCollection[i] != null)) {
|
|
((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
get {
|
|
return this._transaction;
|
|
}
|
|
set {
|
|
this._transaction = value;
|
|
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
this.CommandCollection[i].Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.DeleteCommand != null))) {
|
|
this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.InsertCommand != null))) {
|
|
this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.UpdateCommand != null))) {
|
|
this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
get {
|
|
if ((this._commandCollection == null)) {
|
|
this.InitCommandCollection();
|
|
}
|
|
return this._commandCollection;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool ClearBeforeFill {
|
|
get {
|
|
return this._clearBeforeFill;
|
|
}
|
|
set {
|
|
this._clearBeforeFill = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitAdapter() {
|
|
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
tableMapping.SourceTable = "Table";
|
|
tableMapping.DataSetTable = "Projects";
|
|
tableMapping.ColumnMappings.Add("idx", "idx");
|
|
tableMapping.ColumnMappings.Add("name", "name");
|
|
tableMapping.ColumnMappings.Add("pdate", "pdate");
|
|
tableMapping.ColumnMappings.Add("request", "request");
|
|
tableMapping.ColumnMappings.Add("reqstaff", "reqstaff");
|
|
tableMapping.ColumnMappings.Add("sdate", "sdate");
|
|
tableMapping.ColumnMappings.Add("edate", "edate");
|
|
tableMapping.ColumnMappings.Add("odate", "odate");
|
|
tableMapping.ColumnMappings.Add("memo", "memo");
|
|
tableMapping.ColumnMappings.Add("wuid", "wuid");
|
|
tableMapping.ColumnMappings.Add("wdate", "wdate");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.DeleteCommand.Connection = this.Connection;
|
|
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Projects] WHERE (([idx] = @Original_idx) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_reqstaff = 1 AND [reqstaff] IS NULL) OR ([reqstaff] = @Original_reqstaff)) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_odate = 1 AND [odate] IS NULL) OR ([odate] = @Original_odate)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))";
|
|
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_request", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "request", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "request", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_reqstaff", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "reqstaff", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_reqstaff", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "reqstaff", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_sdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_edate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_edate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_odate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "odate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_odate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "odate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_memo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.InsertCommand.Connection = this.Connection;
|
|
this._adapter.InsertCommand.CommandText = @"INSERT INTO [Projects] ([name], [pdate], [request], [reqstaff], [sdate], [edate], [odate], [memo], [wuid], [wdate]) VALUES (@name, @pdate, @request, @reqstaff, @sdate, @edate, @odate, @memo, @wuid, @wdate);
|
|
SELECT idx, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wdate FROM Projects WHERE (idx = SCOPE_IDENTITY())";
|
|
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "request", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@reqstaff", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "reqstaff", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@edate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@odate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "odate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.UpdateCommand.Connection = this.Connection;
|
|
this._adapter.UpdateCommand.CommandText = @"UPDATE [Projects] SET [name] = @name, [pdate] = @pdate, [request] = @request, [reqstaff] = @reqstaff, [sdate] = @sdate, [edate] = @edate, [odate] = @odate, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_request = 1 AND [request] IS NULL) OR ([request] = @Original_request)) AND ((@IsNull_reqstaff = 1 AND [reqstaff] IS NULL) OR ([reqstaff] = @Original_reqstaff)) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_odate = 1 AND [odate] IS NULL) OR ([odate] = @Original_odate)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate));
|
|
SELECT idx, name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wdate FROM Projects WHERE (idx = @idx)";
|
|
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "request", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@reqstaff", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "reqstaff", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@edate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@odate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "odate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_request", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "request", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_request", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "request", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_reqstaff", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "reqstaff", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_reqstaff", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "reqstaff", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_sdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_edate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_edate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_odate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "odate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_odate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "odate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_memo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitConnection() {
|
|
this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
this._connection.ConnectionString = global::Project.Properties.Settings.Default.gwcs;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "SELECT Projects.*\r\nFROM Projects";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(dsMSSQL.ProjectsDataTable dataTable) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((this.ClearBeforeFill == true)) {
|
|
dataTable.Clear();
|
|
}
|
|
int returnValue = this.Adapter.Fill(dataTable);
|
|
return returnValue;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
public virtual dsMSSQL.ProjectsDataTable GetData() {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
dsMSSQL.ProjectsDataTable dataTable = new dsMSSQL.ProjectsDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(dsMSSQL.ProjectsDataTable dataTable) {
|
|
return this.Adapter.Update(dataTable);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(dsMSSQL dataSet) {
|
|
return this.Adapter.Update(dataSet, "Projects");
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
dataRow});
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
return this.Adapter.Update(dataRows);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
public virtual int Delete(int Original_idx, string Original_name, string Original_pdate, string Original_request, string Original_reqstaff, string Original_sdate, string Original_edate, string Original_odate, string Original_memo, string Original_wuid, System.DateTime Original_wdate) {
|
|
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
|
|
if ((Original_name == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_name));
|
|
}
|
|
if ((Original_pdate == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_pdate));
|
|
}
|
|
if ((Original_request == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_request));
|
|
}
|
|
if ((Original_reqstaff == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_reqstaff));
|
|
}
|
|
if ((Original_sdate == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_sdate));
|
|
}
|
|
if ((Original_edate == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_edate));
|
|
}
|
|
if ((Original_odate == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_odate));
|
|
}
|
|
if ((Original_memo == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_memo));
|
|
}
|
|
if ((Original_wuid == null)) {
|
|
throw new global::System.ArgumentNullException("Original_wuid");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[17].Value = ((string)(Original_wuid));
|
|
}
|
|
this.Adapter.DeleteCommand.Parameters[18].Value = ((System.DateTime)(Original_wdate));
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.DeleteCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.DeleteCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
public virtual int Insert(string name, string pdate, string request, string reqstaff, string sdate, string edate, string odate, string memo, string wuid, System.DateTime wdate) {
|
|
if ((name == null)) {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(name));
|
|
}
|
|
if ((pdate == null)) {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(pdate));
|
|
}
|
|
if ((request == null)) {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(request));
|
|
}
|
|
if ((reqstaff == null)) {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(reqstaff));
|
|
}
|
|
if ((sdate == null)) {
|
|
this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[4].Value = ((string)(sdate));
|
|
}
|
|
if ((edate == null)) {
|
|
this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[5].Value = ((string)(edate));
|
|
}
|
|
if ((odate == null)) {
|
|
this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[6].Value = ((string)(odate));
|
|
}
|
|
if ((memo == null)) {
|
|
this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[7].Value = ((string)(memo));
|
|
}
|
|
if ((wuid == null)) {
|
|
throw new global::System.ArgumentNullException("wuid");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[8].Value = ((string)(wuid));
|
|
}
|
|
this.Adapter.InsertCommand.Parameters[9].Value = ((System.DateTime)(wdate));
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.InsertCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.InsertCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(
|
|
string name,
|
|
string pdate,
|
|
string request,
|
|
string reqstaff,
|
|
string sdate,
|
|
string edate,
|
|
string odate,
|
|
string memo,
|
|
string wuid,
|
|
System.DateTime wdate,
|
|
int Original_idx,
|
|
string Original_name,
|
|
string Original_pdate,
|
|
string Original_request,
|
|
string Original_reqstaff,
|
|
string Original_sdate,
|
|
string Original_edate,
|
|
string Original_odate,
|
|
string Original_memo,
|
|
string Original_wuid,
|
|
System.DateTime Original_wdate,
|
|
int idx) {
|
|
if ((name == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(name));
|
|
}
|
|
if ((pdate == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(pdate));
|
|
}
|
|
if ((request == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(request));
|
|
}
|
|
if ((reqstaff == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(reqstaff));
|
|
}
|
|
if ((sdate == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(sdate));
|
|
}
|
|
if ((edate == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(edate));
|
|
}
|
|
if ((odate == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(odate));
|
|
}
|
|
if ((memo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(memo));
|
|
}
|
|
if ((wuid == null)) {
|
|
throw new global::System.ArgumentNullException("wuid");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(wuid));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(wdate));
|
|
this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_idx));
|
|
if ((Original_name == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_name));
|
|
}
|
|
if ((Original_pdate == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_pdate));
|
|
}
|
|
if ((Original_request == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_request));
|
|
}
|
|
if ((Original_reqstaff == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_reqstaff));
|
|
}
|
|
if ((Original_sdate == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_sdate));
|
|
}
|
|
if ((Original_edate == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_edate));
|
|
}
|
|
if ((Original_odate == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_odate));
|
|
}
|
|
if ((Original_memo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(Original_memo));
|
|
}
|
|
if ((Original_wuid == null)) {
|
|
throw new global::System.ArgumentNullException("Original_wuid");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_wuid));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[28].Value = ((System.DateTime)(Original_wdate));
|
|
this.Adapter.UpdateCommand.Parameters[29].Value = ((int)(idx));
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.UpdateCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.UpdateCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(
|
|
string name,
|
|
string pdate,
|
|
string request,
|
|
string reqstaff,
|
|
string sdate,
|
|
string edate,
|
|
string odate,
|
|
string memo,
|
|
string wuid,
|
|
System.DateTime wdate,
|
|
int Original_idx,
|
|
string Original_name,
|
|
string Original_pdate,
|
|
string Original_request,
|
|
string Original_reqstaff,
|
|
string Original_sdate,
|
|
string Original_edate,
|
|
string Original_odate,
|
|
string Original_memo,
|
|
string Original_wuid,
|
|
System.DateTime Original_wdate) {
|
|
return this.Update(name, pdate, request, reqstaff, sdate, edate, odate, memo, wuid, wdate, Original_idx, Original_name, Original_pdate, Original_request, Original_reqstaff, Original_sdate, Original_edate, Original_odate, Original_memo, Original_wuid, Original_wdate, Original_idx);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[global::System.ComponentModel.ToolboxItem(true)]
|
|
[global::System.ComponentModel.DataObjectAttribute(true)]
|
|
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
|
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public partial class ItemsTableAdapter : global::System.ComponentModel.Component {
|
|
|
|
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
|
private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
|
private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
|
private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
|
private bool _clearBeforeFill;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public ItemsTableAdapter() {
|
|
this.ClearBeforeFill = true;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
get {
|
|
if ((this._adapter == null)) {
|
|
this.InitAdapter();
|
|
}
|
|
return this._adapter;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
get {
|
|
if ((this._connection == null)) {
|
|
this.InitConnection();
|
|
}
|
|
return this._connection;
|
|
}
|
|
set {
|
|
this._connection = value;
|
|
if ((this.Adapter.InsertCommand != null)) {
|
|
this.Adapter.InsertCommand.Connection = value;
|
|
}
|
|
if ((this.Adapter.DeleteCommand != null)) {
|
|
this.Adapter.DeleteCommand.Connection = value;
|
|
}
|
|
if ((this.Adapter.UpdateCommand != null)) {
|
|
this.Adapter.UpdateCommand.Connection = value;
|
|
}
|
|
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
if ((this.CommandCollection[i] != null)) {
|
|
((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
get {
|
|
return this._transaction;
|
|
}
|
|
set {
|
|
this._transaction = value;
|
|
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
this.CommandCollection[i].Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.DeleteCommand != null))) {
|
|
this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.InsertCommand != null))) {
|
|
this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.UpdateCommand != null))) {
|
|
this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
get {
|
|
if ((this._commandCollection == null)) {
|
|
this.InitCommandCollection();
|
|
}
|
|
return this._commandCollection;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool ClearBeforeFill {
|
|
get {
|
|
return this._clearBeforeFill;
|
|
}
|
|
set {
|
|
this._clearBeforeFill = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitAdapter() {
|
|
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
tableMapping.SourceTable = "Table";
|
|
tableMapping.DataSetTable = "Items";
|
|
tableMapping.ColumnMappings.Add("idx", "idx");
|
|
tableMapping.ColumnMappings.Add("name", "name");
|
|
tableMapping.ColumnMappings.Add("sid", "sid");
|
|
tableMapping.ColumnMappings.Add("model", "model");
|
|
tableMapping.ColumnMappings.Add("manu", "manu");
|
|
tableMapping.ColumnMappings.Add("supply", "supply");
|
|
tableMapping.ColumnMappings.Add("memo", "memo");
|
|
tableMapping.ColumnMappings.Add("wuid", "wuid");
|
|
tableMapping.ColumnMappings.Add("wdate", "wdate");
|
|
tableMapping.ColumnMappings.Add("price", "price");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.DeleteCommand.Connection = this.Connection;
|
|
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Items] WHERE (([idx] = @Original_idx) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_model = 1 AND [model] IS NULL) OR ([model] = @Original_model)) AND ((@IsNull_manu = 1 AND [manu] IS NULL) OR ([manu] = @Original_manu)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_price = 1 AND [price] IS NULL) OR ([price] = @Original_price)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))";
|
|
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_sid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sid", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_model", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "model", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_model", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "model", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_manu", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "manu", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_manu", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "manu", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_supply", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supply", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_supply", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supply", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_price", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "price", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_price", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "price", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_memo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.InsertCommand.Connection = this.Connection;
|
|
this._adapter.InsertCommand.CommandText = @"INSERT INTO [Items] ([name], [sid], [model], [manu], [supply], [price], [memo], [wuid], [wdate]) VALUES (@name, @sid, @model, @manu, @supply, @price, @memo, @wuid, @wdate);
|
|
SELECT idx, name, sid, model, manu, supply, price, memo, wuid, wdate FROM Items WHERE (idx = SCOPE_IDENTITY())";
|
|
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@model", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "model", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@manu", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "manu", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@supply", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supply", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@price", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "price", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.UpdateCommand.Connection = this.Connection;
|
|
this._adapter.UpdateCommand.CommandText = @"UPDATE [Items] SET [name] = @name, [sid] = @sid, [model] = @model, [manu] = @manu, [supply] = @supply, [price] = @price, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_sid = 1 AND [sid] IS NULL) OR ([sid] = @Original_sid)) AND ((@IsNull_model = 1 AND [model] IS NULL) OR ([model] = @Original_model)) AND ((@IsNull_manu = 1 AND [manu] IS NULL) OR ([manu] = @Original_manu)) AND ((@IsNull_supply = 1 AND [supply] IS NULL) OR ([supply] = @Original_supply)) AND ((@IsNull_price = 1 AND [price] IS NULL) OR ([price] = @Original_price)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate));
|
|
SELECT idx, name, sid, model, manu, supply, price, memo, wuid, wdate FROM Items WHERE (idx = @idx)";
|
|
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@model", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "model", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@manu", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "manu", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@supply", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supply", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@price", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "price", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_sid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sid", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_model", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "model", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_model", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "model", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_manu", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "manu", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_manu", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "manu", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_supply", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supply", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_supply", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "supply", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_price", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "price", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_price", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "price", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_memo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitConnection() {
|
|
this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
this._connection.ConnectionString = global::Project.Properties.Settings.Default.gwcs;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "SELECT idx, name, sid, model, manu, supply, price, memo, wuid, wdate\r\nFROM I" +
|
|
"tems";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(dsMSSQL.ItemsDataTable dataTable) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((this.ClearBeforeFill == true)) {
|
|
dataTable.Clear();
|
|
}
|
|
int returnValue = this.Adapter.Fill(dataTable);
|
|
return returnValue;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
public virtual dsMSSQL.ItemsDataTable GetData() {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
dsMSSQL.ItemsDataTable dataTable = new dsMSSQL.ItemsDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(dsMSSQL.ItemsDataTable dataTable) {
|
|
return this.Adapter.Update(dataTable);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(dsMSSQL dataSet) {
|
|
return this.Adapter.Update(dataSet, "Items");
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
dataRow});
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
return this.Adapter.Update(dataRows);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
public virtual int Delete(int Original_idx, string Original_name, string Original_sid, string Original_model, string Original_manu, string Original_supply, global::System.Nullable<decimal> Original_price, string Original_memo, string Original_wuid, System.DateTime Original_wdate) {
|
|
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
|
|
if ((Original_name == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_name));
|
|
}
|
|
if ((Original_sid == null)) {
|
|
throw new global::System.ArgumentNullException("Original_sid");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_sid));
|
|
}
|
|
if ((Original_model == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_model));
|
|
}
|
|
if ((Original_manu == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_manu));
|
|
}
|
|
if ((Original_supply == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_supply));
|
|
}
|
|
if ((Original_price.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[12].Value = ((decimal)(Original_price.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_memo == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_memo));
|
|
}
|
|
if ((Original_wuid == null)) {
|
|
throw new global::System.ArgumentNullException("Original_wuid");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[15].Value = ((string)(Original_wuid));
|
|
}
|
|
this.Adapter.DeleteCommand.Parameters[16].Value = ((System.DateTime)(Original_wdate));
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.DeleteCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.DeleteCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
public virtual int Insert(string name, string sid, string model, string manu, string supply, global::System.Nullable<decimal> price, string memo, string wuid, System.DateTime wdate) {
|
|
if ((name == null)) {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(name));
|
|
}
|
|
if ((sid == null)) {
|
|
throw new global::System.ArgumentNullException("sid");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(sid));
|
|
}
|
|
if ((model == null)) {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(model));
|
|
}
|
|
if ((manu == null)) {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(manu));
|
|
}
|
|
if ((supply == null)) {
|
|
this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[4].Value = ((string)(supply));
|
|
}
|
|
if ((price.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[5].Value = ((decimal)(price.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((memo == null)) {
|
|
this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[6].Value = ((string)(memo));
|
|
}
|
|
if ((wuid == null)) {
|
|
throw new global::System.ArgumentNullException("wuid");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[7].Value = ((string)(wuid));
|
|
}
|
|
this.Adapter.InsertCommand.Parameters[8].Value = ((System.DateTime)(wdate));
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.InsertCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.InsertCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(
|
|
string name,
|
|
string sid,
|
|
string model,
|
|
string manu,
|
|
string supply,
|
|
global::System.Nullable<decimal> price,
|
|
string memo,
|
|
string wuid,
|
|
System.DateTime wdate,
|
|
int Original_idx,
|
|
string Original_name,
|
|
string Original_sid,
|
|
string Original_model,
|
|
string Original_manu,
|
|
string Original_supply,
|
|
global::System.Nullable<decimal> Original_price,
|
|
string Original_memo,
|
|
string Original_wuid,
|
|
System.DateTime Original_wdate,
|
|
int idx) {
|
|
if ((name == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(name));
|
|
}
|
|
if ((sid == null)) {
|
|
throw new global::System.ArgumentNullException("sid");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(sid));
|
|
}
|
|
if ((model == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(model));
|
|
}
|
|
if ((manu == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(manu));
|
|
}
|
|
if ((supply == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(supply));
|
|
}
|
|
if ((price.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = ((decimal)(price.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((memo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(memo));
|
|
}
|
|
if ((wuid == null)) {
|
|
throw new global::System.ArgumentNullException("wuid");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(wuid));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(wdate));
|
|
this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_idx));
|
|
if ((Original_name == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_name));
|
|
}
|
|
if ((Original_sid == null)) {
|
|
throw new global::System.ArgumentNullException("Original_sid");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_sid));
|
|
}
|
|
if ((Original_model == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_model));
|
|
}
|
|
if ((Original_manu == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_manu));
|
|
}
|
|
if ((Original_supply == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_supply));
|
|
}
|
|
if ((Original_price.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[21].Value = ((decimal)(Original_price.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_memo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_memo));
|
|
}
|
|
if ((Original_wuid == null)) {
|
|
throw new global::System.ArgumentNullException("Original_wuid");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_wuid));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[25].Value = ((System.DateTime)(Original_wdate));
|
|
this.Adapter.UpdateCommand.Parameters[26].Value = ((int)(idx));
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.UpdateCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.UpdateCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(
|
|
string name,
|
|
string sid,
|
|
string model,
|
|
string manu,
|
|
string supply,
|
|
global::System.Nullable<decimal> price,
|
|
string memo,
|
|
string wuid,
|
|
System.DateTime wdate,
|
|
int Original_idx,
|
|
string Original_name,
|
|
string Original_sid,
|
|
string Original_model,
|
|
string Original_manu,
|
|
string Original_supply,
|
|
global::System.Nullable<decimal> Original_price,
|
|
string Original_memo,
|
|
string Original_wuid,
|
|
System.DateTime Original_wdate) {
|
|
return this.Update(name, sid, model, manu, supply, price, memo, wuid, wdate, Original_idx, Original_name, Original_sid, Original_model, Original_manu, Original_supply, Original_price, Original_memo, Original_wuid, Original_wdate, Original_idx);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[global::System.ComponentModel.ToolboxItem(true)]
|
|
[global::System.ComponentModel.DataObjectAttribute(true)]
|
|
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
|
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public partial class InventoryTableAdapter : global::System.ComponentModel.Component {
|
|
|
|
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
|
private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
|
private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
|
private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
|
private bool _clearBeforeFill;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public InventoryTableAdapter() {
|
|
this.ClearBeforeFill = true;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
get {
|
|
if ((this._adapter == null)) {
|
|
this.InitAdapter();
|
|
}
|
|
return this._adapter;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
get {
|
|
if ((this._connection == null)) {
|
|
this.InitConnection();
|
|
}
|
|
return this._connection;
|
|
}
|
|
set {
|
|
this._connection = value;
|
|
if ((this.Adapter.InsertCommand != null)) {
|
|
this.Adapter.InsertCommand.Connection = value;
|
|
}
|
|
if ((this.Adapter.DeleteCommand != null)) {
|
|
this.Adapter.DeleteCommand.Connection = value;
|
|
}
|
|
if ((this.Adapter.UpdateCommand != null)) {
|
|
this.Adapter.UpdateCommand.Connection = value;
|
|
}
|
|
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
if ((this.CommandCollection[i] != null)) {
|
|
((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
get {
|
|
return this._transaction;
|
|
}
|
|
set {
|
|
this._transaction = value;
|
|
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
this.CommandCollection[i].Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.DeleteCommand != null))) {
|
|
this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.InsertCommand != null))) {
|
|
this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.UpdateCommand != null))) {
|
|
this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
get {
|
|
if ((this._commandCollection == null)) {
|
|
this.InitCommandCollection();
|
|
}
|
|
return this._commandCollection;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool ClearBeforeFill {
|
|
get {
|
|
return this._clearBeforeFill;
|
|
}
|
|
set {
|
|
this._clearBeforeFill = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitAdapter() {
|
|
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
tableMapping.SourceTable = "Table";
|
|
tableMapping.DataSetTable = "Inventory";
|
|
tableMapping.ColumnMappings.Add("idx", "idx");
|
|
tableMapping.ColumnMappings.Add("pdate", "pdate");
|
|
tableMapping.ColumnMappings.Add("uid", "uid");
|
|
tableMapping.ColumnMappings.Add("item", "item");
|
|
tableMapping.ColumnMappings.Add("serial", "serial");
|
|
tableMapping.ColumnMappings.Add("dr_qty", "dr_qty");
|
|
tableMapping.ColumnMappings.Add("dr_amt", "dr_amt");
|
|
tableMapping.ColumnMappings.Add("cr_qty", "cr_qty");
|
|
tableMapping.ColumnMappings.Add("cr_amt", "cr_amt");
|
|
tableMapping.ColumnMappings.Add("memo", "memo");
|
|
tableMapping.ColumnMappings.Add("wuid", "wuid");
|
|
tableMapping.ColumnMappings.Add("wdate", "wdate");
|
|
tableMapping.ColumnMappings.Add("project", "project");
|
|
tableMapping.ColumnMappings.Add("invtype", "invtype");
|
|
tableMapping.ColumnMappings.Add("ItemName", "ItemName");
|
|
tableMapping.ColumnMappings.Add("projectName", "projectName");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.DeleteCommand.Connection = this.Connection;
|
|
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Inventory] WHERE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_item = 1 AND [item] IS NULL) OR ([item] = @Original_item)) AND ((@IsNull_serial = 1 AND [serial] IS NULL) OR ([serial] = @Original_serial)) AND ((@IsNull_dr_qty = 1 AND [dr_qty] IS NULL) OR ([dr_qty] = @Original_dr_qty)) AND ((@IsNull_dr_amt = 1 AND [dr_amt] IS NULL) OR ([dr_amt] = @Original_dr_amt)) AND ((@IsNull_cr_qty = 1 AND [cr_qty] IS NULL) OR ([cr_qty] = @Original_cr_qty)) AND ((@IsNull_cr_amt = 1 AND [cr_amt] IS NULL) OR ([cr_amt] = @Original_cr_amt)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_invtype = 1 AND [invtype] IS NULL) OR ([invtype] = @Original_invtype)) AND ((@IsNull_ItemName = 1 AND [ItemName] IS NULL) OR ([ItemName] = @Original_ItemName)) AND ((@IsNull_projectName = 1 AND [projectName] IS NULL) OR ([projectName] = @Original_projectName)))";
|
|
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_uid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_item", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "item", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_item", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "item", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_serial", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "serial", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_serial", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "serial", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dr_qty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dr_qty", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dr_qty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dr_qty", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dr_amt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dr_amt", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dr_amt", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "dr_amt", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cr_qty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cr_qty", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cr_qty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cr_qty", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cr_amt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cr_amt", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cr_amt", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "cr_amt", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_memo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_invtype", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "invtype", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_invtype", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "invtype", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ItemName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_projectName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_projectName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.InsertCommand.Connection = this.Connection;
|
|
this._adapter.InsertCommand.CommandText = @"INSERT INTO [Inventory] ([pdate], [uid], [item], [serial], [dr_qty], [dr_amt], [cr_qty], [cr_amt], [memo], [project], [wuid], [wdate], [invtype], [ItemName], [projectName]) VALUES (@pdate, @uid, @item, @serial, @dr_qty, @dr_amt, @cr_qty, @cr_amt, @memo, @project, @wuid, @wdate, @invtype, @ItemName, @projectName);
|
|
SELECT idx, pdate, uid, item, serial, dr_qty, dr_amt, cr_qty, cr_amt, memo, project, wuid, wdate, invtype, ItemName, projectName FROM Inventory WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate";
|
|
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@item", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "item", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@serial", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "serial", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dr_qty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dr_qty", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dr_amt", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "dr_amt", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cr_qty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cr_qty", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cr_amt", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "cr_amt", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@invtype", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "invtype", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@projectName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.UpdateCommand.Connection = this.Connection;
|
|
this._adapter.UpdateCommand.CommandText = "UPDATE [Inventory] SET [pdate] = @pdate, [uid] = @uid, [item] = @item, [serial] =" +
|
|
" @serial, [dr_qty] = @dr_qty, [dr_amt] = @dr_amt, [cr_qty] = @cr_qty, [cr_amt] =" +
|
|
" @cr_amt, [memo] = @memo, [project] = @project, [wuid] = @wuid, [wdate] = @wdate" +
|
|
", [invtype] = @invtype, [ItemName] = @ItemName, [projectName] = @projectName WHE" +
|
|
"RE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pd" +
|
|
"ate] = @Original_pdate)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @O" +
|
|
"riginal_uid)) AND ((@IsNull_item = 1 AND [item] IS NULL) OR ([item] = @Original_" +
|
|
"item)) AND ((@IsNull_serial = 1 AND [serial] IS NULL) OR ([serial] = @Original_s" +
|
|
"erial)) AND ((@IsNull_dr_qty = 1 AND [dr_qty] IS NULL) OR ([dr_qty] = @Original_" +
|
|
"dr_qty)) AND ((@IsNull_dr_amt = 1 AND [dr_amt] IS NULL) OR ([dr_amt] = @Original" +
|
|
"_dr_amt)) AND ((@IsNull_cr_qty = 1 AND [cr_qty] IS NULL) OR ([cr_qty] = @Origina" +
|
|
"l_cr_qty)) AND ((@IsNull_cr_amt = 1 AND [cr_amt] IS NULL) OR ([cr_amt] = @Origin" +
|
|
"al_cr_amt)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_me" +
|
|
"mo)) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_" +
|
|
"project)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@I" +
|
|
"sNull_invtype = 1 AND [invtype] IS NULL) OR ([invtype] = @Original_invtype)) AND" +
|
|
" ((@IsNull_ItemName = 1 AND [ItemName] IS NULL) OR ([ItemName] = @Original_ItemN" +
|
|
"ame)) AND ((@IsNull_projectName = 1 AND [projectName] IS NULL) OR ([projectName]" +
|
|
" = @Original_projectName)));\r\nSELECT idx, pdate, uid, item, serial, dr_qty, dr_a" +
|
|
"mt, cr_qty, cr_amt, memo, project, wuid, wdate, invtype, ItemName, projectName F" +
|
|
"ROM Inventory WHERE (idx = @idx) ORDER BY pdate";
|
|
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@item", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "item", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@serial", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "serial", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dr_qty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dr_qty", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dr_amt", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "dr_amt", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cr_qty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cr_qty", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cr_amt", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "cr_amt", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@invtype", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "invtype", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ItemName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@projectName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_uid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_item", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "item", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_item", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "item", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_serial", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "serial", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_serial", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "serial", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dr_qty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dr_qty", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dr_qty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dr_qty", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dr_amt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dr_amt", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dr_amt", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "dr_amt", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cr_qty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cr_qty", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cr_qty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cr_qty", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cr_amt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cr_amt", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cr_amt", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "cr_amt", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_memo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_invtype", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "invtype", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_invtype", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "invtype", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ItemName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ItemName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ItemName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_projectName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_projectName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitConnection() {
|
|
this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
this._connection.ConnectionString = global::Project.Properties.Settings.Default.gwcs;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "SELECT idx, pdate, uid, item, serial, dr_qty, dr_amt, cr_qty, cr_amt, memo, proj" +
|
|
"ect, wuid, wdate, invtype, ItemName, projectName\r\nFROM Inventory\r\nORDER BY p" +
|
|
"date";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[1].Connection = this.Connection;
|
|
this._commandCollection[1].CommandText = "SELECT ItemName, cr_amt, cr_qty, dr_amt, dr_qty, idx, invtype, item, memo, pdate" +
|
|
", project, projectName, serial, uid, wdate, wuid\r\nFROM Inventory\r\nWHERE (pd" +
|
|
"ate BETWEEN @sd AND @ed) AND (uid = @uid)\r\nORDER BY pdate";
|
|
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
|
|
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sd", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ed", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(dsMSSQL.InventoryDataTable dataTable) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((this.ClearBeforeFill == true)) {
|
|
dataTable.Clear();
|
|
}
|
|
int returnValue = this.Adapter.Fill(dataTable);
|
|
return returnValue;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
public virtual dsMSSQL.InventoryDataTable GetData() {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
dsMSSQL.InventoryDataTable dataTable = new dsMSSQL.InventoryDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
|
|
public virtual int FillByUID(dsMSSQL.InventoryDataTable dataTable, string sd, string ed, string uid) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[1];
|
|
if ((sd == null)) {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(sd));
|
|
}
|
|
if ((ed == null)) {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(ed));
|
|
}
|
|
if ((uid == null)) {
|
|
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(uid));
|
|
}
|
|
if ((this.ClearBeforeFill == true)) {
|
|
dataTable.Clear();
|
|
}
|
|
int returnValue = this.Adapter.Fill(dataTable);
|
|
return returnValue;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
|
public virtual dsMSSQL.InventoryDataTable GetbyUID(string sd, string ed, string uid) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[1];
|
|
if ((sd == null)) {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(sd));
|
|
}
|
|
if ((ed == null)) {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(ed));
|
|
}
|
|
if ((uid == null)) {
|
|
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(uid));
|
|
}
|
|
dsMSSQL.InventoryDataTable dataTable = new dsMSSQL.InventoryDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(dsMSSQL.InventoryDataTable dataTable) {
|
|
return this.Adapter.Update(dataTable);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(dsMSSQL dataSet) {
|
|
return this.Adapter.Update(dataSet, "Inventory");
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
dataRow});
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
return this.Adapter.Update(dataRows);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
public virtual int Delete(
|
|
int Original_idx,
|
|
string Original_pdate,
|
|
string Original_uid,
|
|
global::System.Nullable<int> Original_item,
|
|
string Original_serial,
|
|
global::System.Nullable<int> Original_dr_qty,
|
|
global::System.Nullable<decimal> Original_dr_amt,
|
|
global::System.Nullable<int> Original_cr_qty,
|
|
global::System.Nullable<decimal> Original_cr_amt,
|
|
string Original_memo,
|
|
global::System.Nullable<int> Original_project,
|
|
string Original_wuid,
|
|
System.DateTime Original_wdate,
|
|
string Original_invtype,
|
|
string Original_ItemName,
|
|
string Original_projectName) {
|
|
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
|
|
if ((Original_pdate == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_pdate));
|
|
}
|
|
if ((Original_uid == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_uid));
|
|
}
|
|
if ((Original_item.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_item.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_serial == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_serial));
|
|
}
|
|
if ((Original_dr_qty.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_dr_qty.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_dr_amt.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[12].Value = ((decimal)(Original_dr_amt.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_cr_qty.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_cr_qty.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_cr_amt.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[16].Value = ((decimal)(Original_cr_amt.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_memo == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[18].Value = ((string)(Original_memo));
|
|
}
|
|
if ((Original_project.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[20].Value = ((int)(Original_project.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_wuid == null)) {
|
|
throw new global::System.ArgumentNullException("Original_wuid");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[21].Value = ((string)(Original_wuid));
|
|
}
|
|
this.Adapter.DeleteCommand.Parameters[22].Value = ((System.DateTime)(Original_wdate));
|
|
if ((Original_invtype == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[24].Value = ((string)(Original_invtype));
|
|
}
|
|
if ((Original_ItemName == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[26].Value = ((string)(Original_ItemName));
|
|
}
|
|
if ((Original_projectName == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[28].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[28].Value = ((string)(Original_projectName));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.DeleteCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.DeleteCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
public virtual int Insert(string pdate, string uid, global::System.Nullable<int> item, string serial, global::System.Nullable<int> dr_qty, global::System.Nullable<decimal> dr_amt, global::System.Nullable<int> cr_qty, global::System.Nullable<decimal> cr_amt, string memo, global::System.Nullable<int> project, string wuid, System.DateTime wdate, string invtype, string ItemName, string projectName) {
|
|
if ((pdate == null)) {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(pdate));
|
|
}
|
|
if ((uid == null)) {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(uid));
|
|
}
|
|
if ((item.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = ((int)(item.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((serial == null)) {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(serial));
|
|
}
|
|
if ((dr_qty.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[4].Value = ((int)(dr_qty.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((dr_amt.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[5].Value = ((decimal)(dr_amt.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((cr_qty.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[6].Value = ((int)(cr_qty.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((cr_amt.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[7].Value = ((decimal)(cr_amt.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((memo == null)) {
|
|
this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[8].Value = ((string)(memo));
|
|
}
|
|
if ((project.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[9].Value = ((int)(project.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((wuid == null)) {
|
|
throw new global::System.ArgumentNullException("wuid");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[10].Value = ((string)(wuid));
|
|
}
|
|
this.Adapter.InsertCommand.Parameters[11].Value = ((System.DateTime)(wdate));
|
|
if ((invtype == null)) {
|
|
this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[12].Value = ((string)(invtype));
|
|
}
|
|
if ((ItemName == null)) {
|
|
this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[13].Value = ((string)(ItemName));
|
|
}
|
|
if ((projectName == null)) {
|
|
this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[14].Value = ((string)(projectName));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.InsertCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.InsertCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(
|
|
string pdate,
|
|
string uid,
|
|
global::System.Nullable<int> item,
|
|
string serial,
|
|
global::System.Nullable<int> dr_qty,
|
|
global::System.Nullable<decimal> dr_amt,
|
|
global::System.Nullable<int> cr_qty,
|
|
global::System.Nullable<decimal> cr_amt,
|
|
string memo,
|
|
global::System.Nullable<int> project,
|
|
string wuid,
|
|
System.DateTime wdate,
|
|
string invtype,
|
|
string ItemName,
|
|
string projectName,
|
|
int Original_idx,
|
|
string Original_pdate,
|
|
string Original_uid,
|
|
global::System.Nullable<int> Original_item,
|
|
string Original_serial,
|
|
global::System.Nullable<int> Original_dr_qty,
|
|
global::System.Nullable<decimal> Original_dr_amt,
|
|
global::System.Nullable<int> Original_cr_qty,
|
|
global::System.Nullable<decimal> Original_cr_amt,
|
|
string Original_memo,
|
|
global::System.Nullable<int> Original_project,
|
|
string Original_wuid,
|
|
System.DateTime Original_wdate,
|
|
string Original_invtype,
|
|
string Original_ItemName,
|
|
string Original_projectName,
|
|
int idx) {
|
|
if ((pdate == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(pdate));
|
|
}
|
|
if ((uid == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(uid));
|
|
}
|
|
if ((item.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(item.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((serial == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(serial));
|
|
}
|
|
if ((dr_qty.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(dr_qty.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((dr_amt.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = ((decimal)(dr_amt.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((cr_qty.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(cr_qty.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((cr_amt.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = ((decimal)(cr_amt.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((memo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(memo));
|
|
}
|
|
if ((project.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(project.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((wuid == null)) {
|
|
throw new global::System.ArgumentNullException("wuid");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(wuid));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[11].Value = ((System.DateTime)(wdate));
|
|
if ((invtype == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(invtype));
|
|
}
|
|
if ((ItemName == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(ItemName));
|
|
}
|
|
if ((projectName == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(projectName));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_idx));
|
|
if ((Original_pdate == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_pdate));
|
|
}
|
|
if ((Original_uid == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_uid));
|
|
}
|
|
if ((Original_item.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_item.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_serial == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_serial));
|
|
}
|
|
if ((Original_dr_qty.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(Original_dr_qty.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_dr_amt.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[27].Value = ((decimal)(Original_dr_amt.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_cr_qty.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[29].Value = ((int)(Original_cr_qty.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_cr_amt.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[31].Value = ((decimal)(Original_cr_amt.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_memo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[33].Value = ((string)(Original_memo));
|
|
}
|
|
if ((Original_project.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[35].Value = ((int)(Original_project.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_wuid == null)) {
|
|
throw new global::System.ArgumentNullException("Original_wuid");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[36].Value = ((string)(Original_wuid));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[37].Value = ((System.DateTime)(Original_wdate));
|
|
if ((Original_invtype == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[39].Value = ((string)(Original_invtype));
|
|
}
|
|
if ((Original_ItemName == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[41].Value = ((string)(Original_ItemName));
|
|
}
|
|
if ((Original_projectName == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[43].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[43].Value = ((string)(Original_projectName));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[44].Value = ((int)(idx));
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.UpdateCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.UpdateCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(
|
|
string pdate,
|
|
string uid,
|
|
global::System.Nullable<int> item,
|
|
string serial,
|
|
global::System.Nullable<int> dr_qty,
|
|
global::System.Nullable<decimal> dr_amt,
|
|
global::System.Nullable<int> cr_qty,
|
|
global::System.Nullable<decimal> cr_amt,
|
|
string memo,
|
|
global::System.Nullable<int> project,
|
|
string wuid,
|
|
System.DateTime wdate,
|
|
string invtype,
|
|
string ItemName,
|
|
string projectName,
|
|
int Original_idx,
|
|
string Original_pdate,
|
|
string Original_uid,
|
|
global::System.Nullable<int> Original_item,
|
|
string Original_serial,
|
|
global::System.Nullable<int> Original_dr_qty,
|
|
global::System.Nullable<decimal> Original_dr_amt,
|
|
global::System.Nullable<int> Original_cr_qty,
|
|
global::System.Nullable<decimal> Original_cr_amt,
|
|
string Original_memo,
|
|
global::System.Nullable<int> Original_project,
|
|
string Original_wuid,
|
|
System.DateTime Original_wdate,
|
|
string Original_invtype,
|
|
string Original_ItemName,
|
|
string Original_projectName) {
|
|
return this.Update(pdate, uid, item, serial, dr_qty, dr_amt, cr_qty, cr_amt, memo, project, wuid, wdate, invtype, ItemName, projectName, Original_idx, Original_pdate, Original_uid, Original_item, Original_serial, Original_dr_qty, Original_dr_amt, Original_cr_qty, Original_cr_amt, Original_memo, Original_project, Original_wuid, Original_wdate, Original_invtype, Original_ItemName, Original_projectName, Original_idx);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[global::System.ComponentModel.ToolboxItem(true)]
|
|
[global::System.ComponentModel.DataObjectAttribute(true)]
|
|
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
|
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public partial class LineCodeTableAdapter : global::System.ComponentModel.Component {
|
|
|
|
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
|
private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
|
private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
|
private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
|
private bool _clearBeforeFill;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public LineCodeTableAdapter() {
|
|
this.ClearBeforeFill = true;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
get {
|
|
if ((this._adapter == null)) {
|
|
this.InitAdapter();
|
|
}
|
|
return this._adapter;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
get {
|
|
if ((this._connection == null)) {
|
|
this.InitConnection();
|
|
}
|
|
return this._connection;
|
|
}
|
|
set {
|
|
this._connection = value;
|
|
if ((this.Adapter.InsertCommand != null)) {
|
|
this.Adapter.InsertCommand.Connection = value;
|
|
}
|
|
if ((this.Adapter.DeleteCommand != null)) {
|
|
this.Adapter.DeleteCommand.Connection = value;
|
|
}
|
|
if ((this.Adapter.UpdateCommand != null)) {
|
|
this.Adapter.UpdateCommand.Connection = value;
|
|
}
|
|
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
if ((this.CommandCollection[i] != null)) {
|
|
((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
get {
|
|
return this._transaction;
|
|
}
|
|
set {
|
|
this._transaction = value;
|
|
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
this.CommandCollection[i].Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.DeleteCommand != null))) {
|
|
this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.InsertCommand != null))) {
|
|
this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.UpdateCommand != null))) {
|
|
this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
get {
|
|
if ((this._commandCollection == null)) {
|
|
this.InitCommandCollection();
|
|
}
|
|
return this._commandCollection;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool ClearBeforeFill {
|
|
get {
|
|
return this._clearBeforeFill;
|
|
}
|
|
set {
|
|
this._clearBeforeFill = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitAdapter() {
|
|
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
tableMapping.SourceTable = "Table";
|
|
tableMapping.DataSetTable = "LineCode";
|
|
tableMapping.ColumnMappings.Add("idx", "idx");
|
|
tableMapping.ColumnMappings.Add("code", "code");
|
|
tableMapping.ColumnMappings.Add("team", "team");
|
|
tableMapping.ColumnMappings.Add("part", "part");
|
|
tableMapping.ColumnMappings.Add("memo", "memo");
|
|
tableMapping.ColumnMappings.Add("wuid", "wuid");
|
|
tableMapping.ColumnMappings.Add("wdate", "wdate");
|
|
tableMapping.ColumnMappings.Add("except", "except");
|
|
tableMapping.ColumnMappings.Add("plant", "plant");
|
|
tableMapping.ColumnMappings.Add("grp2", "grp2");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.DeleteCommand.Connection = this.Connection;
|
|
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [LineCode] WHERE (([idx] = @Original_idx) AND ((@IsNull_code = 1 AND [code] IS NULL) OR ([code] = @Original_code)) AND ((@IsNull_team = 1 AND [team] IS NULL) OR ([team] = @Original_team)) AND ((@IsNull_part = 1 AND [part] IS NULL) OR ([part] = @Original_part)) AND ((@IsNull_except = 1 AND [except] IS NULL) OR ([except] = @Original_except)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_plant = 1 AND [plant] IS NULL) OR ([plant] = @Original_plant)) AND ((@IsNull_grp2 = 1 AND [grp2] IS NULL) OR ([grp2] = @Original_grp2)))";
|
|
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_code", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "code", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_team", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "team", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_team", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "team", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_part", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "part", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_part", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "part", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_except", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "except", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_except", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "except", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_memo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_memo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_plant", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "plant", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_plant", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "plant", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_grp2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grp2", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_grp2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grp2", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.InsertCommand.Connection = this.Connection;
|
|
this._adapter.InsertCommand.CommandText = @"INSERT INTO [LineCode] ([code], [team], [part], [except], [memo], [wuid], [wdate], [plant], [grp2]) VALUES (@code, @team, @part, @except, @memo, @wuid, @wdate, @plant, @grp2);
|
|
SELECT idx, code, team, part, [except], memo, wuid, wdate, plant, grp2 FROM LineCode WHERE (idx = SCOPE_IDENTITY())";
|
|
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@team", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "team", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@part", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "part", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@except", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "except", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@plant", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "plant", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@grp2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grp2", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.UpdateCommand.Connection = this.Connection;
|
|
this._adapter.UpdateCommand.CommandText = @"UPDATE [LineCode] SET [code] = @code, [team] = @team, [part] = @part, [except] = @except, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate, [plant] = @plant, [grp2] = @grp2 WHERE (([idx] = @Original_idx) AND ((@IsNull_code = 1 AND [code] IS NULL) OR ([code] = @Original_code)) AND ((@IsNull_team = 1 AND [team] IS NULL) OR ([team] = @Original_team)) AND ((@IsNull_part = 1 AND [part] IS NULL) OR ([part] = @Original_part)) AND ((@IsNull_except = 1 AND [except] IS NULL) OR ([except] = @Original_except)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_plant = 1 AND [plant] IS NULL) OR ([plant] = @Original_plant)) AND ((@IsNull_grp2 = 1 AND [grp2] IS NULL) OR ([grp2] = @Original_grp2)));
|
|
SELECT idx, code, team, part, [except], memo, wuid, wdate, plant, grp2 FROM LineCode WHERE (idx = @idx)";
|
|
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@team", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "team", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@part", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "part", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@except", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "except", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@plant", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "plant", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@grp2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grp2", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_code", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "code", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_team", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "team", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_team", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "team", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_part", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "part", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_part", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "part", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_except", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "except", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_except", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "except", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_memo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_memo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_plant", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "plant", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_plant", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "plant", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_grp2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grp2", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_grp2", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grp2", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitConnection() {
|
|
this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
this._connection.ConnectionString = global::Project.Properties.Settings.Default.gwcs;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "SELECT idx, code, team, part, [except], memo, wuid, wdate, plant, grp2\r\nFROM " +
|
|
" LineCode";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(dsMSSQL.LineCodeDataTable dataTable) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((this.ClearBeforeFill == true)) {
|
|
dataTable.Clear();
|
|
}
|
|
int returnValue = this.Adapter.Fill(dataTable);
|
|
return returnValue;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
public virtual dsMSSQL.LineCodeDataTable GetData() {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
dsMSSQL.LineCodeDataTable dataTable = new dsMSSQL.LineCodeDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(dsMSSQL.LineCodeDataTable dataTable) {
|
|
return this.Adapter.Update(dataTable);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(dsMSSQL dataSet) {
|
|
return this.Adapter.Update(dataSet, "LineCode");
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
dataRow});
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
return this.Adapter.Update(dataRows);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
public virtual int Delete(int Original_idx, string Original_code, string Original_team, string Original_part, global::System.Nullable<bool> Original_except, string Original_memo, string Original_wuid, System.DateTime Original_wdate, string Original_plant, string Original_grp2) {
|
|
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
|
|
if ((Original_code == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_code));
|
|
}
|
|
if ((Original_team == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_team));
|
|
}
|
|
if ((Original_part == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_part));
|
|
}
|
|
if ((Original_except.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[8].Value = ((bool)(Original_except.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_memo == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_memo));
|
|
}
|
|
if ((Original_wuid == null)) {
|
|
throw new global::System.ArgumentNullException("Original_wuid");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_wuid));
|
|
}
|
|
this.Adapter.DeleteCommand.Parameters[12].Value = ((System.DateTime)(Original_wdate));
|
|
if ((Original_plant == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_plant));
|
|
}
|
|
if ((Original_grp2 == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_grp2));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.DeleteCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.DeleteCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
public virtual int Insert(string code, string team, string part, global::System.Nullable<bool> except, string memo, string wuid, System.DateTime wdate, string plant, string grp2) {
|
|
if ((code == null)) {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(code));
|
|
}
|
|
if ((team == null)) {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(team));
|
|
}
|
|
if ((part == null)) {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(part));
|
|
}
|
|
if ((except.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = ((bool)(except.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((memo == null)) {
|
|
this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[4].Value = ((string)(memo));
|
|
}
|
|
if ((wuid == null)) {
|
|
throw new global::System.ArgumentNullException("wuid");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[5].Value = ((string)(wuid));
|
|
}
|
|
this.Adapter.InsertCommand.Parameters[6].Value = ((System.DateTime)(wdate));
|
|
if ((plant == null)) {
|
|
this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[7].Value = ((string)(plant));
|
|
}
|
|
if ((grp2 == null)) {
|
|
this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[8].Value = ((string)(grp2));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.InsertCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.InsertCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(
|
|
string code,
|
|
string team,
|
|
string part,
|
|
global::System.Nullable<bool> except,
|
|
string memo,
|
|
string wuid,
|
|
System.DateTime wdate,
|
|
string plant,
|
|
string grp2,
|
|
int Original_idx,
|
|
string Original_code,
|
|
string Original_team,
|
|
string Original_part,
|
|
global::System.Nullable<bool> Original_except,
|
|
string Original_memo,
|
|
string Original_wuid,
|
|
System.DateTime Original_wdate,
|
|
string Original_plant,
|
|
string Original_grp2,
|
|
int idx) {
|
|
if ((code == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(code));
|
|
}
|
|
if ((team == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(team));
|
|
}
|
|
if ((part == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(part));
|
|
}
|
|
if ((except.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = ((bool)(except.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((memo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(memo));
|
|
}
|
|
if ((wuid == null)) {
|
|
throw new global::System.ArgumentNullException("wuid");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(wuid));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(wdate));
|
|
if ((plant == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(plant));
|
|
}
|
|
if ((grp2 == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(grp2));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_idx));
|
|
if ((Original_code == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_code));
|
|
}
|
|
if ((Original_team == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_team));
|
|
}
|
|
if ((Original_part == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_part));
|
|
}
|
|
if ((Original_except.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[17].Value = ((bool)(Original_except.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_memo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_memo));
|
|
}
|
|
if ((Original_wuid == null)) {
|
|
throw new global::System.ArgumentNullException("Original_wuid");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_wuid));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[21].Value = ((System.DateTime)(Original_wdate));
|
|
if ((Original_plant == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_plant));
|
|
}
|
|
if ((Original_grp2 == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_grp2));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[26].Value = ((int)(idx));
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.UpdateCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.UpdateCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(
|
|
string code,
|
|
string team,
|
|
string part,
|
|
global::System.Nullable<bool> except,
|
|
string memo,
|
|
string wuid,
|
|
System.DateTime wdate,
|
|
string plant,
|
|
string grp2,
|
|
int Original_idx,
|
|
string Original_code,
|
|
string Original_team,
|
|
string Original_part,
|
|
global::System.Nullable<bool> Original_except,
|
|
string Original_memo,
|
|
string Original_wuid,
|
|
System.DateTime Original_wdate,
|
|
string Original_plant,
|
|
string Original_grp2) {
|
|
return this.Update(code, team, part, except, memo, wuid, wdate, plant, grp2, Original_idx, Original_code, Original_team, Original_part, Original_except, Original_memo, Original_wuid, Original_wdate, Original_plant, Original_grp2, Original_idx);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[global::System.ComponentModel.ToolboxItem(true)]
|
|
[global::System.ComponentModel.DataObjectAttribute(true)]
|
|
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
|
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public partial class UserGroupTableAdapter : global::System.ComponentModel.Component {
|
|
|
|
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
|
private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
|
private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
|
private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
|
private bool _clearBeforeFill;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public UserGroupTableAdapter() {
|
|
this.ClearBeforeFill = true;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
get {
|
|
if ((this._adapter == null)) {
|
|
this.InitAdapter();
|
|
}
|
|
return this._adapter;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
get {
|
|
if ((this._connection == null)) {
|
|
this.InitConnection();
|
|
}
|
|
return this._connection;
|
|
}
|
|
set {
|
|
this._connection = value;
|
|
if ((this.Adapter.InsertCommand != null)) {
|
|
this.Adapter.InsertCommand.Connection = value;
|
|
}
|
|
if ((this.Adapter.DeleteCommand != null)) {
|
|
this.Adapter.DeleteCommand.Connection = value;
|
|
}
|
|
if ((this.Adapter.UpdateCommand != null)) {
|
|
this.Adapter.UpdateCommand.Connection = value;
|
|
}
|
|
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
if ((this.CommandCollection[i] != null)) {
|
|
((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
get {
|
|
return this._transaction;
|
|
}
|
|
set {
|
|
this._transaction = value;
|
|
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
this.CommandCollection[i].Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.DeleteCommand != null))) {
|
|
this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.InsertCommand != null))) {
|
|
this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.UpdateCommand != null))) {
|
|
this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
get {
|
|
if ((this._commandCollection == null)) {
|
|
this.InitCommandCollection();
|
|
}
|
|
return this._commandCollection;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool ClearBeforeFill {
|
|
get {
|
|
return this._clearBeforeFill;
|
|
}
|
|
set {
|
|
this._clearBeforeFill = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitAdapter() {
|
|
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
tableMapping.SourceTable = "Table";
|
|
tableMapping.DataSetTable = "UserGroup";
|
|
tableMapping.ColumnMappings.Add("dept", "dept");
|
|
tableMapping.ColumnMappings.Add("gcode", "gcode");
|
|
tableMapping.ColumnMappings.Add("path_kj", "path_kj");
|
|
tableMapping.ColumnMappings.Add("advpurchase", "advpurchase");
|
|
tableMapping.ColumnMappings.Add("permission", "permission");
|
|
tableMapping.ColumnMappings.Add("advkisul", "advkisul");
|
|
tableMapping.ColumnMappings.Add("managerinfo", "managerinfo");
|
|
tableMapping.ColumnMappings.Add("devinfo", "devinfo");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.DeleteCommand.Connection = this.Connection;
|
|
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [UserGroup] WHERE (([dept] = @Original_dept) AND ((@IsNull_gcode = 1 AND [gcode] IS NULL) OR ([gcode] = @Original_gcode)) AND ((@IsNull_path_kj = 1 AND [path_kj] IS NULL) OR ([path_kj] = @Original_path_kj)) AND ((@IsNull_advpurchase = 1 AND [advpurchase] IS NULL) OR ([advpurchase] = @Original_advpurchase)) AND ((@IsNull_permission = 1 AND [permission] IS NULL) OR ([permission] = @Original_permission)) AND ((@IsNull_advkisul = 1 AND [advkisul] IS NULL) OR ([advkisul] = @Original_advkisul)) AND ((@IsNull_managerinfo = 1 AND [managerinfo] IS NULL) OR ([managerinfo] = @Original_managerinfo)) AND ((@IsNull_devinfo = 1 AND [devinfo] IS NULL) OR ([devinfo] = @Original_devinfo)))";
|
|
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dept", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_gcode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_path_kj", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "path_kj", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_path_kj", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "path_kj", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_advpurchase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "advpurchase", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_advpurchase", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "advpurchase", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_permission", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "permission", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_permission", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "permission", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_advkisul", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "advkisul", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_advkisul", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "advkisul", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_managerinfo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "managerinfo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_managerinfo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "managerinfo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_devinfo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "devinfo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_devinfo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "devinfo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.InsertCommand.Connection = this.Connection;
|
|
this._adapter.InsertCommand.CommandText = @"INSERT INTO [UserGroup] ([dept], [gcode], [path_kj], [advpurchase], [permission], [advkisul], [managerinfo], [devinfo]) VALUES (@dept, @gcode, @path_kj, @advpurchase, @permission, @advkisul, @managerinfo, @devinfo);
|
|
SELECT dept, gcode, path_kj, advpurchase, permission, advkisul, managerinfo, devinfo FROM UserGroup WHERE (dept = @dept)";
|
|
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@path_kj", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "path_kj", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@advpurchase", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "advpurchase", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@permission", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "permission", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@advkisul", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "advkisul", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@managerinfo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "managerinfo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@devinfo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "devinfo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.UpdateCommand.Connection = this.Connection;
|
|
this._adapter.UpdateCommand.CommandText = @"UPDATE [UserGroup] SET [dept] = @dept, [gcode] = @gcode, [path_kj] = @path_kj, [advpurchase] = @advpurchase, [permission] = @permission, [advkisul] = @advkisul, [managerinfo] = @managerinfo, [devinfo] = @devinfo WHERE (([dept] = @Original_dept) AND ((@IsNull_gcode = 1 AND [gcode] IS NULL) OR ([gcode] = @Original_gcode)) AND ((@IsNull_path_kj = 1 AND [path_kj] IS NULL) OR ([path_kj] = @Original_path_kj)) AND ((@IsNull_advpurchase = 1 AND [advpurchase] IS NULL) OR ([advpurchase] = @Original_advpurchase)) AND ((@IsNull_permission = 1 AND [permission] IS NULL) OR ([permission] = @Original_permission)) AND ((@IsNull_advkisul = 1 AND [advkisul] IS NULL) OR ([advkisul] = @Original_advkisul)) AND ((@IsNull_managerinfo = 1 AND [managerinfo] IS NULL) OR ([managerinfo] = @Original_managerinfo)) AND ((@IsNull_devinfo = 1 AND [devinfo] IS NULL) OR ([devinfo] = @Original_devinfo)));
|
|
SELECT dept, gcode, path_kj, advpurchase, permission, advkisul, managerinfo, devinfo FROM UserGroup WHERE (dept = @dept)";
|
|
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@path_kj", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "path_kj", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@advpurchase", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "advpurchase", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@permission", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "permission", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@advkisul", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "advkisul", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@managerinfo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "managerinfo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@devinfo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "devinfo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dept", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_gcode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_path_kj", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "path_kj", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_path_kj", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "path_kj", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_advpurchase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "advpurchase", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_advpurchase", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "advpurchase", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_permission", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "permission", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_permission", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "permission", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_advkisul", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "advkisul", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_advkisul", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "advkisul", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_managerinfo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "managerinfo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_managerinfo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "managerinfo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_devinfo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "devinfo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_devinfo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "devinfo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitConnection() {
|
|
this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
this._connection.ConnectionString = global::Project.Properties.Settings.Default.gwcs;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "SELECT dept, gcode, path_kj, advpurchase, permission, advkisul, managerinfo, dev" +
|
|
"info\r\nFROM UserGroup\r\nWHERE (ISNULL(gcode, \'\') <> \'\') AND (ISNULL(permissio" +
|
|
"n, 0) > 0)";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(dsMSSQL.UserGroupDataTable dataTable) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((this.ClearBeforeFill == true)) {
|
|
dataTable.Clear();
|
|
}
|
|
int returnValue = this.Adapter.Fill(dataTable);
|
|
return returnValue;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
public virtual dsMSSQL.UserGroupDataTable GetData() {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
dsMSSQL.UserGroupDataTable dataTable = new dsMSSQL.UserGroupDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(dsMSSQL.UserGroupDataTable dataTable) {
|
|
return this.Adapter.Update(dataTable);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(dsMSSQL dataSet) {
|
|
return this.Adapter.Update(dataSet, "UserGroup");
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
dataRow});
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
return this.Adapter.Update(dataRows);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
public virtual int Delete(string Original_dept, string Original_gcode, string Original_path_kj, global::System.Nullable<bool> Original_advpurchase, global::System.Nullable<int> Original_permission, global::System.Nullable<bool> Original_advkisul, string Original_managerinfo, string Original_devinfo) {
|
|
if ((Original_dept == null)) {
|
|
throw new global::System.ArgumentNullException("Original_dept");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_dept));
|
|
}
|
|
if ((Original_gcode == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_gcode));
|
|
}
|
|
if ((Original_path_kj == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_path_kj));
|
|
}
|
|
if ((Original_advpurchase.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[6].Value = ((bool)(Original_advpurchase.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_permission.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_permission.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_advkisul.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[10].Value = ((bool)(Original_advkisul.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_managerinfo == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_managerinfo));
|
|
}
|
|
if ((Original_devinfo == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_devinfo));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.DeleteCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.DeleteCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
public virtual int Insert(string dept, string gcode, string path_kj, global::System.Nullable<bool> advpurchase, global::System.Nullable<int> permission, global::System.Nullable<bool> advkisul, string managerinfo, string devinfo) {
|
|
if ((dept == null)) {
|
|
throw new global::System.ArgumentNullException("dept");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(dept));
|
|
}
|
|
if ((gcode == null)) {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(gcode));
|
|
}
|
|
if ((path_kj == null)) {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(path_kj));
|
|
}
|
|
if ((advpurchase.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = ((bool)(advpurchase.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((permission.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[4].Value = ((int)(permission.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((advkisul.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[5].Value = ((bool)(advkisul.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((managerinfo == null)) {
|
|
this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[6].Value = ((string)(managerinfo));
|
|
}
|
|
if ((devinfo == null)) {
|
|
this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[7].Value = ((string)(devinfo));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.InsertCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.InsertCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(
|
|
string dept,
|
|
string gcode,
|
|
string path_kj,
|
|
global::System.Nullable<bool> advpurchase,
|
|
global::System.Nullable<int> permission,
|
|
global::System.Nullable<bool> advkisul,
|
|
string managerinfo,
|
|
string devinfo,
|
|
string Original_dept,
|
|
string Original_gcode,
|
|
string Original_path_kj,
|
|
global::System.Nullable<bool> Original_advpurchase,
|
|
global::System.Nullable<int> Original_permission,
|
|
global::System.Nullable<bool> Original_advkisul,
|
|
string Original_managerinfo,
|
|
string Original_devinfo) {
|
|
if ((dept == null)) {
|
|
throw new global::System.ArgumentNullException("dept");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(dept));
|
|
}
|
|
if ((gcode == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(gcode));
|
|
}
|
|
if ((path_kj == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(path_kj));
|
|
}
|
|
if ((advpurchase.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = ((bool)(advpurchase.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((permission.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(permission.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((advkisul.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = ((bool)(advkisul.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((managerinfo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(managerinfo));
|
|
}
|
|
if ((devinfo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(devinfo));
|
|
}
|
|
if ((Original_dept == null)) {
|
|
throw new global::System.ArgumentNullException("Original_dept");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_dept));
|
|
}
|
|
if ((Original_gcode == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_gcode));
|
|
}
|
|
if ((Original_path_kj == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_path_kj));
|
|
}
|
|
if ((Original_advpurchase.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[14].Value = ((bool)(Original_advpurchase.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_permission.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(Original_permission.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_advkisul.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[18].Value = ((bool)(Original_advkisul.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_managerinfo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_managerinfo));
|
|
}
|
|
if ((Original_devinfo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_devinfo));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.UpdateCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.UpdateCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(string gcode, string path_kj, global::System.Nullable<bool> advpurchase, global::System.Nullable<int> permission, global::System.Nullable<bool> advkisul, string managerinfo, string devinfo, string Original_dept, string Original_gcode, string Original_path_kj, global::System.Nullable<bool> Original_advpurchase, global::System.Nullable<int> Original_permission, global::System.Nullable<bool> Original_advkisul, string Original_managerinfo, string Original_devinfo) {
|
|
return this.Update(Original_dept, gcode, path_kj, advpurchase, permission, advkisul, managerinfo, devinfo, Original_dept, Original_gcode, Original_path_kj, Original_advpurchase, Original_permission, Original_advkisul, Original_managerinfo, Original_devinfo);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[global::System.ComponentModel.ToolboxItem(true)]
|
|
[global::System.ComponentModel.DataObjectAttribute(true)]
|
|
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
|
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public partial class SPMasterTableAdapter : global::System.ComponentModel.Component {
|
|
|
|
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
|
private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
|
private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
|
private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
|
private bool _clearBeforeFill;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public SPMasterTableAdapter() {
|
|
this.ClearBeforeFill = true;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
get {
|
|
if ((this._adapter == null)) {
|
|
this.InitAdapter();
|
|
}
|
|
return this._adapter;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
get {
|
|
if ((this._connection == null)) {
|
|
this.InitConnection();
|
|
}
|
|
return this._connection;
|
|
}
|
|
set {
|
|
this._connection = value;
|
|
if ((this.Adapter.InsertCommand != null)) {
|
|
this.Adapter.InsertCommand.Connection = value;
|
|
}
|
|
if ((this.Adapter.DeleteCommand != null)) {
|
|
this.Adapter.DeleteCommand.Connection = value;
|
|
}
|
|
if ((this.Adapter.UpdateCommand != null)) {
|
|
this.Adapter.UpdateCommand.Connection = value;
|
|
}
|
|
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
if ((this.CommandCollection[i] != null)) {
|
|
((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
get {
|
|
return this._transaction;
|
|
}
|
|
set {
|
|
this._transaction = value;
|
|
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
this.CommandCollection[i].Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.DeleteCommand != null))) {
|
|
this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.InsertCommand != null))) {
|
|
this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.UpdateCommand != null))) {
|
|
this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
get {
|
|
if ((this._commandCollection == null)) {
|
|
this.InitCommandCollection();
|
|
}
|
|
return this._commandCollection;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool ClearBeforeFill {
|
|
get {
|
|
return this._clearBeforeFill;
|
|
}
|
|
set {
|
|
this._clearBeforeFill = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitAdapter() {
|
|
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
tableMapping.SourceTable = "Table";
|
|
tableMapping.DataSetTable = "SPMaster";
|
|
tableMapping.ColumnMappings.Add("ID", "ID");
|
|
tableMapping.ColumnMappings.Add("CtrlNo", "CtrlNo");
|
|
tableMapping.ColumnMappings.Add("SIDNo", "SIDNo");
|
|
tableMapping.ColumnMappings.Add("Storage", "Storage");
|
|
tableMapping.ColumnMappings.Add("Location", "Location");
|
|
tableMapping.ColumnMappings.Add("UseEqmt", "UseEqmt");
|
|
tableMapping.ColumnMappings.Add("PartName", "PartName");
|
|
tableMapping.ColumnMappings.Add("PartNo", "PartNo");
|
|
tableMapping.ColumnMappings.Add("Process", "Process");
|
|
tableMapping.ColumnMappings.Add("SupplierNo", "SupplierNo");
|
|
tableMapping.ColumnMappings.Add("CurrentQty", "CurrentQty");
|
|
tableMapping.ColumnMappings.Add("MHA", "MHA");
|
|
tableMapping.ColumnMappings.Add("Division", "Division");
|
|
tableMapping.ColumnMappings.Add("BadQty", "BadQty");
|
|
tableMapping.ColumnMappings.Add("Price", "Price");
|
|
tableMapping.ColumnMappings.Add("PriceUnit", "PriceUnit");
|
|
tableMapping.ColumnMappings.Add("CostCenter", "CostCenter");
|
|
tableMapping.ColumnMappings.Add("Memo", "Memo");
|
|
tableMapping.ColumnMappings.Add("EnrDate", "EnrDate");
|
|
tableMapping.ColumnMappings.Add("Enrollee", "Enrollee");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.DeleteCommand.Connection = this.Connection;
|
|
this._adapter.DeleteCommand.CommandText = "DELETE FROM [SPMaster] WHERE (([ID] = @Original_ID) AND ((@IsNull_CtrlNo = 1 AND " +
|
|
"[CtrlNo] IS NULL) OR ([CtrlNo] = @Original_CtrlNo)) AND ((@IsNull_SIDNo = 1 AND " +
|
|
"[SIDNo] IS NULL) OR ([SIDNo] = @Original_SIDNo)) AND ((@IsNull_Storage = 1 AND [" +
|
|
"Storage] IS NULL) OR ([Storage] = @Original_Storage)) AND ((@IsNull_Location = 1" +
|
|
" AND [Location] IS NULL) OR ([Location] = @Original_Location)) AND ((@IsNull_Use" +
|
|
"Eqmt = 1 AND [UseEqmt] IS NULL) OR ([UseEqmt] = @Original_UseEqmt)) AND ((@IsNul" +
|
|
"l_PartName = 1 AND [PartName] IS NULL) OR ([PartName] = @Original_PartName)) AND" +
|
|
" ((@IsNull_PartNo = 1 AND [PartNo] IS NULL) OR ([PartNo] = @Original_PartNo)) AN" +
|
|
"D ((@IsNull_Process = 1 AND [Process] IS NULL) OR ([Process] = @Original_Process" +
|
|
")) AND ((@IsNull_SupplierNo = 1 AND [SupplierNo] IS NULL) OR ([SupplierNo] = @Or" +
|
|
"iginal_SupplierNo)) AND ((@IsNull_CurrentQty = 1 AND [CurrentQty] IS NULL) OR ([" +
|
|
"CurrentQty] = @Original_CurrentQty)) AND ((@IsNull_MHA = 1 AND [MHA] IS NULL) OR" +
|
|
" ([MHA] = @Original_MHA)) AND ((@IsNull_Division = 1 AND [Division] IS NULL) OR " +
|
|
"([Division] = @Original_Division)) AND ((@IsNull_BadQty = 1 AND [BadQty] IS NULL" +
|
|
") OR ([BadQty] = @Original_BadQty)) AND ((@IsNull_Price = 1 AND [Price] IS NULL)" +
|
|
" OR ([Price] = @Original_Price)) AND ((@IsNull_PriceUnit = 1 AND [PriceUnit] IS " +
|
|
"NULL) OR ([PriceUnit] = @Original_PriceUnit)) AND ((@IsNull_CostCenter = 1 AND [" +
|
|
"CostCenter] IS NULL) OR ([CostCenter] = @Original_CostCenter)) AND ((@IsNull_Mem" +
|
|
"o = 1 AND [Memo] IS NULL) OR ([Memo] = @Original_Memo)) AND ((@IsNull_EnrDate = " +
|
|
"1 AND [EnrDate] IS NULL) OR ([EnrDate] = @Original_EnrDate)) AND ((@IsNull_Enrol" +
|
|
"lee = 1 AND [Enrollee] IS NULL) OR ([Enrollee] = @Original_Enrollee)))";
|
|
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CtrlNo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CtrlNo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CtrlNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CtrlNo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SIDNo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SIDNo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SIDNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SIDNo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Storage", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Storage", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Storage", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Storage", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Location", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Location", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Location", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Location", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_UseEqmt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UseEqmt", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UseEqmt", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UseEqmt", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PartName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PartName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PartName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PartName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PartNo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PartNo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PartNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PartNo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Process", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Process", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Process", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Process", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SupplierNo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierNo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SupplierNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierNo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CurrentQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CurrentQty", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CurrentQty", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "CurrentQty", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MHA", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MHA", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MHA", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "MHA", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Division", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Division", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Division", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Division", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BadQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BadQty", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BadQty", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "BadQty", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Price", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Price", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Price", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "Price", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PriceUnit", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PriceUnit", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PriceUnit", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PriceUnit", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CostCenter", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CostCenter", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CostCenter", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CostCenter", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Memo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Memo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EnrDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EnrDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EnrDate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EnrDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Enrollee", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Enrollee", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Enrollee", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Enrollee", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.InsertCommand.Connection = this.Connection;
|
|
this._adapter.InsertCommand.CommandText = @"INSERT INTO [SPMaster] ([ID], [CtrlNo], [SIDNo], [Storage], [Location], [UseEqmt], [PartName], [PartNo], [Process], [SupplierNo], [CurrentQty], [MHA], [Division], [BadQty], [Price], [PriceUnit], [CostCenter], [Memo], [EnrDate], [Enrollee]) VALUES (@ID, @CtrlNo, @SIDNo, @Storage, @Location, @UseEqmt, @PartName, @PartNo, @Process, @SupplierNo, @CurrentQty, @MHA, @Division, @BadQty, @Price, @PriceUnit, @CostCenter, @Memo, @EnrDate, @Enrollee);
|
|
SELECT ID, CtrlNo, SIDNo, Storage, Location, UseEqmt, PartName, PartNo, Process, SupplierNo, CurrentQty, MHA, Division, BadQty, Price, PriceUnit, CostCenter, Memo, EnrDate, Enrollee FROM SPMaster WHERE (ID = @ID)";
|
|
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CtrlNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CtrlNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SIDNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SIDNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Storage", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Storage", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Location", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Location", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UseEqmt", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UseEqmt", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PartName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PartName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PartNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PartNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Process", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Process", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SupplierNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CurrentQty", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "CurrentQty", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MHA", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "MHA", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Division", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Division", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BadQty", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "BadQty", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Price", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "Price", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PriceUnit", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PriceUnit", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CostCenter", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CostCenter", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Memo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EnrDate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EnrDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Enrollee", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Enrollee", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.UpdateCommand.Connection = this.Connection;
|
|
this._adapter.UpdateCommand.CommandText = "UPDATE [SPMaster] SET [ID] = @ID, [CtrlNo] = @CtrlNo, [SIDNo] = @SIDNo, [Storage]" +
|
|
" = @Storage, [Location] = @Location, [UseEqmt] = @UseEqmt, [PartName] = @PartNam" +
|
|
"e, [PartNo] = @PartNo, [Process] = @Process, [SupplierNo] = @SupplierNo, [Curren" +
|
|
"tQty] = @CurrentQty, [MHA] = @MHA, [Division] = @Division, [BadQty] = @BadQty, [" +
|
|
"Price] = @Price, [PriceUnit] = @PriceUnit, [CostCenter] = @CostCenter, [Memo] = " +
|
|
"@Memo, [EnrDate] = @EnrDate, [Enrollee] = @Enrollee WHERE (([ID] = @Original_ID)" +
|
|
" AND ((@IsNull_CtrlNo = 1 AND [CtrlNo] IS NULL) OR ([CtrlNo] = @Original_CtrlNo)" +
|
|
") AND ((@IsNull_SIDNo = 1 AND [SIDNo] IS NULL) OR ([SIDNo] = @Original_SIDNo)) A" +
|
|
"ND ((@IsNull_Storage = 1 AND [Storage] IS NULL) OR ([Storage] = @Original_Storag" +
|
|
"e)) AND ((@IsNull_Location = 1 AND [Location] IS NULL) OR ([Location] = @Origina" +
|
|
"l_Location)) AND ((@IsNull_UseEqmt = 1 AND [UseEqmt] IS NULL) OR ([UseEqmt] = @O" +
|
|
"riginal_UseEqmt)) AND ((@IsNull_PartName = 1 AND [PartName] IS NULL) OR ([PartNa" +
|
|
"me] = @Original_PartName)) AND ((@IsNull_PartNo = 1 AND [PartNo] IS NULL) OR ([P" +
|
|
"artNo] = @Original_PartNo)) AND ((@IsNull_Process = 1 AND [Process] IS NULL) OR " +
|
|
"([Process] = @Original_Process)) AND ((@IsNull_SupplierNo = 1 AND [SupplierNo] I" +
|
|
"S NULL) OR ([SupplierNo] = @Original_SupplierNo)) AND ((@IsNull_CurrentQty = 1 A" +
|
|
"ND [CurrentQty] IS NULL) OR ([CurrentQty] = @Original_CurrentQty)) AND ((@IsNull" +
|
|
"_MHA = 1 AND [MHA] IS NULL) OR ([MHA] = @Original_MHA)) AND ((@IsNull_Division =" +
|
|
" 1 AND [Division] IS NULL) OR ([Division] = @Original_Division)) AND ((@IsNull_B" +
|
|
"adQty = 1 AND [BadQty] IS NULL) OR ([BadQty] = @Original_BadQty)) AND ((@IsNull_" +
|
|
"Price = 1 AND [Price] IS NULL) OR ([Price] = @Original_Price)) AND ((@IsNull_Pri" +
|
|
"ceUnit = 1 AND [PriceUnit] IS NULL) OR ([PriceUnit] = @Original_PriceUnit)) AND " +
|
|
"((@IsNull_CostCenter = 1 AND [CostCenter] IS NULL) OR ([CostCenter] = @Original_" +
|
|
"CostCenter)) AND ((@IsNull_Memo = 1 AND [Memo] IS NULL) OR ([Memo] = @Original_M" +
|
|
"emo)) AND ((@IsNull_EnrDate = 1 AND [EnrDate] IS NULL) OR ([EnrDate] = @Original" +
|
|
"_EnrDate)) AND ((@IsNull_Enrollee = 1 AND [Enrollee] IS NULL) OR ([Enrollee] = @" +
|
|
"Original_Enrollee)));\r\nSELECT ID, CtrlNo, SIDNo, Storage, Location, UseEqmt, Par" +
|
|
"tName, PartNo, Process, SupplierNo, CurrentQty, MHA, Division, BadQty, Price, Pr" +
|
|
"iceUnit, CostCenter, Memo, EnrDate, Enrollee FROM SPMaster WHERE (ID = @ID)";
|
|
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CtrlNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CtrlNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SIDNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SIDNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Storage", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Storage", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Location", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Location", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UseEqmt", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UseEqmt", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PartName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PartName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PartNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PartNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Process", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Process", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SupplierNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CurrentQty", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "CurrentQty", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MHA", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "MHA", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Division", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Division", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BadQty", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "BadQty", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Price", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "Price", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PriceUnit", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PriceUnit", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CostCenter", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CostCenter", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Memo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EnrDate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EnrDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Enrollee", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Enrollee", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CtrlNo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CtrlNo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CtrlNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CtrlNo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SIDNo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SIDNo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SIDNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SIDNo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Storage", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Storage", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Storage", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Storage", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Location", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Location", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Location", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Location", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_UseEqmt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UseEqmt", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UseEqmt", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UseEqmt", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PartName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PartName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PartName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PartName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PartNo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PartNo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PartNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PartNo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Process", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Process", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Process", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Process", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SupplierNo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierNo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SupplierNo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierNo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CurrentQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CurrentQty", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CurrentQty", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "CurrentQty", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MHA", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MHA", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MHA", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "MHA", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Division", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Division", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Division", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Division", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_BadQty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BadQty", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BadQty", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "BadQty", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Price", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Price", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Price", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "Price", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PriceUnit", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PriceUnit", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PriceUnit", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PriceUnit", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CostCenter", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CostCenter", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CostCenter", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CostCenter", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Memo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Memo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Memo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_EnrDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EnrDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_EnrDate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EnrDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Enrollee", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Enrollee", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Enrollee", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Enrollee", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitConnection() {
|
|
this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
this._connection.ConnectionString = global::Project.Properties.Settings.Default.gwcs;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "SELECT SPMaster.*\r\nFROM SPMaster";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[1].Connection = this.Connection;
|
|
this._commandCollection[1].CommandText = "DELETE FROM [SPMaster] ";
|
|
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(dsMSSQL.SPMasterDataTable dataTable) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((this.ClearBeforeFill == true)) {
|
|
dataTable.Clear();
|
|
}
|
|
int returnValue = this.Adapter.Fill(dataTable);
|
|
return returnValue;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
public virtual dsMSSQL.SPMasterDataTable GetData() {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
dsMSSQL.SPMasterDataTable dataTable = new dsMSSQL.SPMasterDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(dsMSSQL.SPMasterDataTable dataTable) {
|
|
return this.Adapter.Update(dataTable);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(dsMSSQL dataSet) {
|
|
return this.Adapter.Update(dataSet, "SPMaster");
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
dataRow});
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
return this.Adapter.Update(dataRows);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
public virtual int Delete(
|
|
int Original_ID,
|
|
string Original_CtrlNo,
|
|
string Original_SIDNo,
|
|
string Original_Storage,
|
|
string Original_Location,
|
|
string Original_UseEqmt,
|
|
string Original_PartName,
|
|
string Original_PartNo,
|
|
string Original_Process,
|
|
string Original_SupplierNo,
|
|
global::System.Nullable<decimal> Original_CurrentQty,
|
|
global::System.Nullable<decimal> Original_MHA,
|
|
string Original_Division,
|
|
global::System.Nullable<decimal> Original_BadQty,
|
|
global::System.Nullable<decimal> Original_Price,
|
|
string Original_PriceUnit,
|
|
string Original_CostCenter,
|
|
string Original_Memo,
|
|
string Original_EnrDate,
|
|
string Original_Enrollee) {
|
|
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
|
|
if ((Original_CtrlNo == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CtrlNo));
|
|
}
|
|
if ((Original_SIDNo == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_SIDNo));
|
|
}
|
|
if ((Original_Storage == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Storage));
|
|
}
|
|
if ((Original_Location == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Location));
|
|
}
|
|
if ((Original_UseEqmt == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_UseEqmt));
|
|
}
|
|
if ((Original_PartName == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_PartName));
|
|
}
|
|
if ((Original_PartNo == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_PartNo));
|
|
}
|
|
if ((Original_Process == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_Process));
|
|
}
|
|
if ((Original_SupplierNo == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[18].Value = ((string)(Original_SupplierNo));
|
|
}
|
|
if ((Original_CurrentQty.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[20].Value = ((decimal)(Original_CurrentQty.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_MHA.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[22].Value = ((decimal)(Original_MHA.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_Division == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[24].Value = ((string)(Original_Division));
|
|
}
|
|
if ((Original_BadQty.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[26].Value = ((decimal)(Original_BadQty.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_Price.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[28].Value = ((decimal)(Original_Price.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[28].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_PriceUnit == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[30].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[30].Value = ((string)(Original_PriceUnit));
|
|
}
|
|
if ((Original_CostCenter == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[32].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[32].Value = ((string)(Original_CostCenter));
|
|
}
|
|
if ((Original_Memo == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[33].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[34].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[33].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[34].Value = ((string)(Original_Memo));
|
|
}
|
|
if ((Original_EnrDate == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[35].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[36].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[35].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[36].Value = ((string)(Original_EnrDate));
|
|
}
|
|
if ((Original_Enrollee == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[37].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[38].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[37].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[38].Value = ((string)(Original_Enrollee));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.DeleteCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.DeleteCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
public virtual int Insert(
|
|
int ID,
|
|
string CtrlNo,
|
|
string SIDNo,
|
|
string Storage,
|
|
string Location,
|
|
string UseEqmt,
|
|
string PartName,
|
|
string PartNo,
|
|
string Process,
|
|
string SupplierNo,
|
|
global::System.Nullable<decimal> CurrentQty,
|
|
global::System.Nullable<decimal> MHA,
|
|
string Division,
|
|
global::System.Nullable<decimal> BadQty,
|
|
global::System.Nullable<decimal> Price,
|
|
string PriceUnit,
|
|
string CostCenter,
|
|
string Memo,
|
|
string EnrDate,
|
|
string Enrollee) {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID));
|
|
if ((CtrlNo == null)) {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CtrlNo));
|
|
}
|
|
if ((SIDNo == null)) {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(SIDNo));
|
|
}
|
|
if ((Storage == null)) {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Storage));
|
|
}
|
|
if ((Location == null)) {
|
|
this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Location));
|
|
}
|
|
if ((UseEqmt == null)) {
|
|
this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[5].Value = ((string)(UseEqmt));
|
|
}
|
|
if ((PartName == null)) {
|
|
this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[6].Value = ((string)(PartName));
|
|
}
|
|
if ((PartNo == null)) {
|
|
this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[7].Value = ((string)(PartNo));
|
|
}
|
|
if ((Process == null)) {
|
|
this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[8].Value = ((string)(Process));
|
|
}
|
|
if ((SupplierNo == null)) {
|
|
this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[9].Value = ((string)(SupplierNo));
|
|
}
|
|
if ((CurrentQty.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[10].Value = ((decimal)(CurrentQty.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((MHA.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[11].Value = ((decimal)(MHA.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Division == null)) {
|
|
this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[12].Value = ((string)(Division));
|
|
}
|
|
if ((BadQty.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[13].Value = ((decimal)(BadQty.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Price.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[14].Value = ((decimal)(Price.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((PriceUnit == null)) {
|
|
this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[15].Value = ((string)(PriceUnit));
|
|
}
|
|
if ((CostCenter == null)) {
|
|
this.Adapter.InsertCommand.Parameters[16].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[16].Value = ((string)(CostCenter));
|
|
}
|
|
if ((Memo == null)) {
|
|
this.Adapter.InsertCommand.Parameters[17].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[17].Value = ((string)(Memo));
|
|
}
|
|
if ((EnrDate == null)) {
|
|
this.Adapter.InsertCommand.Parameters[18].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[18].Value = ((string)(EnrDate));
|
|
}
|
|
if ((Enrollee == null)) {
|
|
this.Adapter.InsertCommand.Parameters[19].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[19].Value = ((string)(Enrollee));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.InsertCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.InsertCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(
|
|
int ID,
|
|
string CtrlNo,
|
|
string SIDNo,
|
|
string Storage,
|
|
string Location,
|
|
string UseEqmt,
|
|
string PartName,
|
|
string PartNo,
|
|
string Process,
|
|
string SupplierNo,
|
|
global::System.Nullable<decimal> CurrentQty,
|
|
global::System.Nullable<decimal> MHA,
|
|
string Division,
|
|
global::System.Nullable<decimal> BadQty,
|
|
global::System.Nullable<decimal> Price,
|
|
string PriceUnit,
|
|
string CostCenter,
|
|
string Memo,
|
|
string EnrDate,
|
|
string Enrollee,
|
|
int Original_ID,
|
|
string Original_CtrlNo,
|
|
string Original_SIDNo,
|
|
string Original_Storage,
|
|
string Original_Location,
|
|
string Original_UseEqmt,
|
|
string Original_PartName,
|
|
string Original_PartNo,
|
|
string Original_Process,
|
|
string Original_SupplierNo,
|
|
global::System.Nullable<decimal> Original_CurrentQty,
|
|
global::System.Nullable<decimal> Original_MHA,
|
|
string Original_Division,
|
|
global::System.Nullable<decimal> Original_BadQty,
|
|
global::System.Nullable<decimal> Original_Price,
|
|
string Original_PriceUnit,
|
|
string Original_CostCenter,
|
|
string Original_Memo,
|
|
string Original_EnrDate,
|
|
string Original_Enrollee) {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID));
|
|
if ((CtrlNo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CtrlNo));
|
|
}
|
|
if ((SIDNo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(SIDNo));
|
|
}
|
|
if ((Storage == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Storage));
|
|
}
|
|
if ((Location == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Location));
|
|
}
|
|
if ((UseEqmt == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(UseEqmt));
|
|
}
|
|
if ((PartName == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(PartName));
|
|
}
|
|
if ((PartNo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(PartNo));
|
|
}
|
|
if ((Process == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Process));
|
|
}
|
|
if ((SupplierNo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(SupplierNo));
|
|
}
|
|
if ((CurrentQty.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[10].Value = ((decimal)(CurrentQty.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((MHA.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[11].Value = ((decimal)(MHA.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Division == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Division));
|
|
}
|
|
if ((BadQty.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[13].Value = ((decimal)(BadQty.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Price.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[14].Value = ((decimal)(Price.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((PriceUnit == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(PriceUnit));
|
|
}
|
|
if ((CostCenter == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(CostCenter));
|
|
}
|
|
if ((Memo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Memo));
|
|
}
|
|
if ((EnrDate == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(EnrDate));
|
|
}
|
|
if ((Enrollee == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Enrollee));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[20].Value = ((int)(Original_ID));
|
|
if ((Original_CtrlNo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_CtrlNo));
|
|
}
|
|
if ((Original_SIDNo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_SIDNo));
|
|
}
|
|
if ((Original_Storage == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(Original_Storage));
|
|
}
|
|
if ((Original_Location == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[28].Value = ((string)(Original_Location));
|
|
}
|
|
if ((Original_UseEqmt == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(Original_UseEqmt));
|
|
}
|
|
if ((Original_PartName == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[32].Value = ((string)(Original_PartName));
|
|
}
|
|
if ((Original_PartNo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[34].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[34].Value = ((string)(Original_PartNo));
|
|
}
|
|
if ((Original_Process == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[36].Value = ((string)(Original_Process));
|
|
}
|
|
if ((Original_SupplierNo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[38].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[38].Value = ((string)(Original_SupplierNo));
|
|
}
|
|
if ((Original_CurrentQty.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[40].Value = ((decimal)(Original_CurrentQty.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[40].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_MHA.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[42].Value = ((decimal)(Original_MHA.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[42].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_Division == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[43].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[44].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[43].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[44].Value = ((string)(Original_Division));
|
|
}
|
|
if ((Original_BadQty.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[45].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[46].Value = ((decimal)(Original_BadQty.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[45].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[46].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_Price.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[48].Value = ((decimal)(Original_Price.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[48].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_PriceUnit == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[50].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[50].Value = ((string)(Original_PriceUnit));
|
|
}
|
|
if ((Original_CostCenter == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[52].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[52].Value = ((string)(Original_CostCenter));
|
|
}
|
|
if ((Original_Memo == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[54].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[54].Value = ((string)(Original_Memo));
|
|
}
|
|
if ((Original_EnrDate == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[56].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[56].Value = ((string)(Original_EnrDate));
|
|
}
|
|
if ((Original_Enrollee == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[58].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[58].Value = ((string)(Original_Enrollee));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.UpdateCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.UpdateCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(
|
|
string CtrlNo,
|
|
string SIDNo,
|
|
string Storage,
|
|
string Location,
|
|
string UseEqmt,
|
|
string PartName,
|
|
string PartNo,
|
|
string Process,
|
|
string SupplierNo,
|
|
global::System.Nullable<decimal> CurrentQty,
|
|
global::System.Nullable<decimal> MHA,
|
|
string Division,
|
|
global::System.Nullable<decimal> BadQty,
|
|
global::System.Nullable<decimal> Price,
|
|
string PriceUnit,
|
|
string CostCenter,
|
|
string Memo,
|
|
string EnrDate,
|
|
string Enrollee,
|
|
int Original_ID,
|
|
string Original_CtrlNo,
|
|
string Original_SIDNo,
|
|
string Original_Storage,
|
|
string Original_Location,
|
|
string Original_UseEqmt,
|
|
string Original_PartName,
|
|
string Original_PartNo,
|
|
string Original_Process,
|
|
string Original_SupplierNo,
|
|
global::System.Nullable<decimal> Original_CurrentQty,
|
|
global::System.Nullable<decimal> Original_MHA,
|
|
string Original_Division,
|
|
global::System.Nullable<decimal> Original_BadQty,
|
|
global::System.Nullable<decimal> Original_Price,
|
|
string Original_PriceUnit,
|
|
string Original_CostCenter,
|
|
string Original_Memo,
|
|
string Original_EnrDate,
|
|
string Original_Enrollee) {
|
|
return this.Update(Original_ID, CtrlNo, SIDNo, Storage, Location, UseEqmt, PartName, PartNo, Process, SupplierNo, CurrentQty, MHA, Division, BadQty, Price, PriceUnit, CostCenter, Memo, EnrDate, Enrollee, Original_ID, Original_CtrlNo, Original_SIDNo, Original_Storage, Original_Location, Original_UseEqmt, Original_PartName, Original_PartNo, Original_Process, Original_SupplierNo, Original_CurrentQty, Original_MHA, Original_Division, Original_BadQty, Original_Price, Original_PriceUnit, Original_CostCenter, Original_Memo, Original_EnrDate, Original_Enrollee);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)]
|
|
public virtual int DeleteAll() {
|
|
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
|
|
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
|
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
command.Connection.Open();
|
|
}
|
|
int returnValue;
|
|
try {
|
|
returnValue = command.ExecuteNonQuery();
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
command.Connection.Close();
|
|
}
|
|
}
|
|
return returnValue;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[global::System.ComponentModel.ToolboxItem(true)]
|
|
[global::System.ComponentModel.DataObjectAttribute(true)]
|
|
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
|
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public partial class EETGW_GroupUserTableAdapter : global::System.ComponentModel.Component {
|
|
|
|
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
|
private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
|
private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
|
private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
|
private bool _clearBeforeFill;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public EETGW_GroupUserTableAdapter() {
|
|
this.ClearBeforeFill = true;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
get {
|
|
if ((this._adapter == null)) {
|
|
this.InitAdapter();
|
|
}
|
|
return this._adapter;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
get {
|
|
if ((this._connection == null)) {
|
|
this.InitConnection();
|
|
}
|
|
return this._connection;
|
|
}
|
|
set {
|
|
this._connection = value;
|
|
if ((this.Adapter.InsertCommand != null)) {
|
|
this.Adapter.InsertCommand.Connection = value;
|
|
}
|
|
if ((this.Adapter.DeleteCommand != null)) {
|
|
this.Adapter.DeleteCommand.Connection = value;
|
|
}
|
|
if ((this.Adapter.UpdateCommand != null)) {
|
|
this.Adapter.UpdateCommand.Connection = value;
|
|
}
|
|
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
if ((this.CommandCollection[i] != null)) {
|
|
((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
get {
|
|
return this._transaction;
|
|
}
|
|
set {
|
|
this._transaction = value;
|
|
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
this.CommandCollection[i].Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.DeleteCommand != null))) {
|
|
this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.InsertCommand != null))) {
|
|
this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.UpdateCommand != null))) {
|
|
this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
get {
|
|
if ((this._commandCollection == null)) {
|
|
this.InitCommandCollection();
|
|
}
|
|
return this._commandCollection;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool ClearBeforeFill {
|
|
get {
|
|
return this._clearBeforeFill;
|
|
}
|
|
set {
|
|
this._clearBeforeFill = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitAdapter() {
|
|
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
tableMapping.SourceTable = "Table";
|
|
tableMapping.DataSetTable = "EETGW_GroupUser";
|
|
tableMapping.ColumnMappings.Add("idx", "idx");
|
|
tableMapping.ColumnMappings.Add("gcode", "gcode");
|
|
tableMapping.ColumnMappings.Add("uid", "uid");
|
|
tableMapping.ColumnMappings.Add("level", "level");
|
|
tableMapping.ColumnMappings.Add("wuid", "wuid");
|
|
tableMapping.ColumnMappings.Add("wdate", "wdate");
|
|
tableMapping.ColumnMappings.Add("useJobReport", "useJobReport");
|
|
tableMapping.ColumnMappings.Add("useUserState", "useUserState");
|
|
tableMapping.ColumnMappings.Add("state", "state");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.DeleteCommand.Connection = this.Connection;
|
|
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [EETGW_GroupUser] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ([uid] = @Original_uid) AND ((@IsNull_level = 1 AND [level] IS NULL) OR ([level] = @Original_level)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_useJobReport = 1 AND [useJobReport] IS NULL) OR ([useJobReport] = @Original_useJobReport)) AND ((@IsNull_useUserState = 1 AND [useUserState] IS NULL) OR ([useUserState] = @Original_useUserState)) AND ((@IsNull_state = 1 AND [state] IS NULL) OR ([state] = @Original_state)))";
|
|
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_level", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "level", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_level", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "level", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_useJobReport", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "useJobReport", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_useJobReport", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "useJobReport", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_useUserState", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "useUserState", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_useUserState", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "useUserState", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_state", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "state", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_state", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "state", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.InsertCommand.Connection = this.Connection;
|
|
this._adapter.InsertCommand.CommandText = @"INSERT INTO [EETGW_GroupUser] ([gcode], [uid], [level], [wuid], [wdate], [useJobReport], [useUserState], [state]) VALUES (@gcode, @uid, @level, @wuid, @wdate, @useJobReport, @useUserState, @state);
|
|
SELECT idx, gcode, uid, level, wuid, wdate, useJobReport, useUserState, state FROM EETGW_GroupUser WHERE (idx = SCOPE_IDENTITY())";
|
|
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@level", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "level", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@useJobReport", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "useJobReport", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@useUserState", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "useUserState", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@state", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "state", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.UpdateCommand.Connection = this.Connection;
|
|
this._adapter.UpdateCommand.CommandText = @"UPDATE [EETGW_GroupUser] SET [gcode] = @gcode, [uid] = @uid, [level] = @level, [wuid] = @wuid, [wdate] = @wdate, [useJobReport] = @useJobReport, [useUserState] = @useUserState, [state] = @state WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ([uid] = @Original_uid) AND ((@IsNull_level = 1 AND [level] IS NULL) OR ([level] = @Original_level)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_useJobReport = 1 AND [useJobReport] IS NULL) OR ([useJobReport] = @Original_useJobReport)) AND ((@IsNull_useUserState = 1 AND [useUserState] IS NULL) OR ([useUserState] = @Original_useUserState)) AND ((@IsNull_state = 1 AND [state] IS NULL) OR ([state] = @Original_state)));
|
|
SELECT idx, gcode, uid, level, wuid, wdate, useJobReport, useUserState, state FROM EETGW_GroupUser WHERE (idx = @idx)";
|
|
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@level", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "level", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@useJobReport", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "useJobReport", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@useUserState", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "useUserState", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@state", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "state", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_level", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "level", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_level", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "level", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_useJobReport", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "useJobReport", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_useJobReport", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "useJobReport", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_useUserState", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "useUserState", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_useUserState", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "useUserState", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_state", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "state", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_state", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "state", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitConnection() {
|
|
this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
this._connection.ConnectionString = global::Project.Properties.Settings.Default.gwcs;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "SELECT idx, gcode, uid, level, wuid, wdate, useJobReport, useUserState, state\r\nF" +
|
|
"ROM EETGW_GroupUser\r\nWHERE (gcode = @gcode)";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[1].Connection = this.Connection;
|
|
this._commandCollection[1].CommandText = "SELECT COUNT(*) FROM EETGW_GroupUser\r\nwhere gcode =@gcode\r\nand uid = @uid";
|
|
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
|
|
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(dsMSSQL.EETGW_GroupUserDataTable dataTable, string gcode) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((gcode == null)) {
|
|
throw new global::System.ArgumentNullException("gcode");
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode));
|
|
}
|
|
if ((this.ClearBeforeFill == true)) {
|
|
dataTable.Clear();
|
|
}
|
|
int returnValue = this.Adapter.Fill(dataTable);
|
|
return returnValue;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
public virtual dsMSSQL.EETGW_GroupUserDataTable GetData(string gcode) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((gcode == null)) {
|
|
throw new global::System.ArgumentNullException("gcode");
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode));
|
|
}
|
|
dsMSSQL.EETGW_GroupUserDataTable dataTable = new dsMSSQL.EETGW_GroupUserDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(dsMSSQL.EETGW_GroupUserDataTable dataTable) {
|
|
return this.Adapter.Update(dataTable);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(dsMSSQL dataSet) {
|
|
return this.Adapter.Update(dataSet, "EETGW_GroupUser");
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
dataRow});
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
return this.Adapter.Update(dataRows);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
public virtual int Delete(int Original_idx, string Original_gcode, string Original_uid, global::System.Nullable<short> Original_level, string Original_wuid, System.DateTime Original_wdate, global::System.Nullable<bool> Original_useJobReport, global::System.Nullable<bool> Original_useUserState, string Original_state) {
|
|
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
|
|
if ((Original_gcode == null)) {
|
|
throw new global::System.ArgumentNullException("Original_gcode");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_gcode));
|
|
}
|
|
if ((Original_uid == null)) {
|
|
throw new global::System.ArgumentNullException("Original_uid");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_uid));
|
|
}
|
|
if ((Original_level.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = ((short)(Original_level.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_wuid == null)) {
|
|
throw new global::System.ArgumentNullException("Original_wuid");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_wuid));
|
|
}
|
|
this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_wdate));
|
|
if ((Original_useJobReport.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[8].Value = ((bool)(Original_useJobReport.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_useUserState.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[10].Value = ((bool)(Original_useUserState.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_state == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_state));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.DeleteCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.DeleteCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
public virtual int Insert(string gcode, string uid, global::System.Nullable<short> level, string wuid, System.DateTime wdate, global::System.Nullable<bool> useJobReport, global::System.Nullable<bool> useUserState, string state) {
|
|
if ((gcode == null)) {
|
|
throw new global::System.ArgumentNullException("gcode");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(gcode));
|
|
}
|
|
if ((uid == null)) {
|
|
throw new global::System.ArgumentNullException("uid");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(uid));
|
|
}
|
|
if ((level.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = ((short)(level.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((wuid == null)) {
|
|
throw new global::System.ArgumentNullException("wuid");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(wuid));
|
|
}
|
|
this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(wdate));
|
|
if ((useJobReport.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[5].Value = ((bool)(useJobReport.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((useUserState.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[6].Value = ((bool)(useUserState.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((state == null)) {
|
|
this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[7].Value = ((string)(state));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.InsertCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.InsertCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(
|
|
string gcode,
|
|
string uid,
|
|
global::System.Nullable<short> level,
|
|
string wuid,
|
|
System.DateTime wdate,
|
|
global::System.Nullable<bool> useJobReport,
|
|
global::System.Nullable<bool> useUserState,
|
|
string state,
|
|
int Original_idx,
|
|
string Original_gcode,
|
|
string Original_uid,
|
|
global::System.Nullable<short> Original_level,
|
|
string Original_wuid,
|
|
System.DateTime Original_wdate,
|
|
global::System.Nullable<bool> Original_useJobReport,
|
|
global::System.Nullable<bool> Original_useUserState,
|
|
string Original_state,
|
|
int idx) {
|
|
if ((gcode == null)) {
|
|
throw new global::System.ArgumentNullException("gcode");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(gcode));
|
|
}
|
|
if ((uid == null)) {
|
|
throw new global::System.ArgumentNullException("uid");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(uid));
|
|
}
|
|
if ((level.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = ((short)(level.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((wuid == null)) {
|
|
throw new global::System.ArgumentNullException("wuid");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(wuid));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(wdate));
|
|
if ((useJobReport.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = ((bool)(useJobReport.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((useUserState.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = ((bool)(useUserState.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((state == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(state));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_idx));
|
|
if ((Original_gcode == null)) {
|
|
throw new global::System.ArgumentNullException("Original_gcode");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_gcode));
|
|
}
|
|
if ((Original_uid == null)) {
|
|
throw new global::System.ArgumentNullException("Original_uid");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_uid));
|
|
}
|
|
if ((Original_level.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[12].Value = ((short)(Original_level.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_wuid == null)) {
|
|
throw new global::System.ArgumentNullException("Original_wuid");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_wuid));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[14].Value = ((System.DateTime)(Original_wdate));
|
|
if ((Original_useJobReport.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[16].Value = ((bool)(Original_useJobReport.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_useUserState.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[18].Value = ((bool)(Original_useUserState.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_state == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_state));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(idx));
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.UpdateCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.UpdateCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(
|
|
string gcode,
|
|
string uid,
|
|
global::System.Nullable<short> level,
|
|
string wuid,
|
|
System.DateTime wdate,
|
|
global::System.Nullable<bool> useJobReport,
|
|
global::System.Nullable<bool> useUserState,
|
|
string state,
|
|
int Original_idx,
|
|
string Original_gcode,
|
|
string Original_uid,
|
|
global::System.Nullable<short> Original_level,
|
|
string Original_wuid,
|
|
System.DateTime Original_wdate,
|
|
global::System.Nullable<bool> Original_useJobReport,
|
|
global::System.Nullable<bool> Original_useUserState,
|
|
string Original_state) {
|
|
return this.Update(gcode, uid, level, wuid, wdate, useJobReport, useUserState, state, Original_idx, Original_gcode, Original_uid, Original_level, Original_wuid, Original_wdate, Original_useJobReport, Original_useUserState, Original_state, Original_idx);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual global::System.Nullable<int> ExistCheck(string gcode, string uid) {
|
|
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
|
|
if ((gcode == null)) {
|
|
throw new global::System.ArgumentNullException("gcode");
|
|
}
|
|
else {
|
|
command.Parameters[0].Value = ((string)(gcode));
|
|
}
|
|
if ((uid == null)) {
|
|
throw new global::System.ArgumentNullException("uid");
|
|
}
|
|
else {
|
|
command.Parameters[1].Value = ((string)(uid));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
|
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
command.Connection.Open();
|
|
}
|
|
object returnValue;
|
|
try {
|
|
returnValue = command.ExecuteScalar();
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
command.Connection.Close();
|
|
}
|
|
}
|
|
if (((returnValue == null)
|
|
|| (returnValue.GetType() == typeof(global::System.DBNull)))) {
|
|
return new global::System.Nullable<int>();
|
|
}
|
|
else {
|
|
return new global::System.Nullable<int>(((int)(returnValue)));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[global::System.ComponentModel.ToolboxItem(true)]
|
|
[global::System.ComponentModel.DataObjectAttribute(true)]
|
|
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
|
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public partial class vGroupUserTableAdapter : global::System.ComponentModel.Component {
|
|
|
|
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
|
private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
|
private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
|
private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
|
private bool _clearBeforeFill;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public vGroupUserTableAdapter() {
|
|
this.ClearBeforeFill = true;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
get {
|
|
if ((this._adapter == null)) {
|
|
this.InitAdapter();
|
|
}
|
|
return this._adapter;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
get {
|
|
if ((this._connection == null)) {
|
|
this.InitConnection();
|
|
}
|
|
return this._connection;
|
|
}
|
|
set {
|
|
this._connection = value;
|
|
if ((this.Adapter.InsertCommand != null)) {
|
|
this.Adapter.InsertCommand.Connection = value;
|
|
}
|
|
if ((this.Adapter.DeleteCommand != null)) {
|
|
this.Adapter.DeleteCommand.Connection = value;
|
|
}
|
|
if ((this.Adapter.UpdateCommand != null)) {
|
|
this.Adapter.UpdateCommand.Connection = value;
|
|
}
|
|
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
if ((this.CommandCollection[i] != null)) {
|
|
((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
get {
|
|
return this._transaction;
|
|
}
|
|
set {
|
|
this._transaction = value;
|
|
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
this.CommandCollection[i].Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.DeleteCommand != null))) {
|
|
this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.InsertCommand != null))) {
|
|
this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.UpdateCommand != null))) {
|
|
this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
get {
|
|
if ((this._commandCollection == null)) {
|
|
this.InitCommandCollection();
|
|
}
|
|
return this._commandCollection;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool ClearBeforeFill {
|
|
get {
|
|
return this._clearBeforeFill;
|
|
}
|
|
set {
|
|
this._clearBeforeFill = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitAdapter() {
|
|
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
tableMapping.SourceTable = "Table";
|
|
tableMapping.DataSetTable = "vGroupUser";
|
|
tableMapping.ColumnMappings.Add("gcode", "gcode");
|
|
tableMapping.ColumnMappings.Add("dept", "dept");
|
|
tableMapping.ColumnMappings.Add("level", "level");
|
|
tableMapping.ColumnMappings.Add("name", "name");
|
|
tableMapping.ColumnMappings.Add("nameE", "nameE");
|
|
tableMapping.ColumnMappings.Add("grade", "grade");
|
|
tableMapping.ColumnMappings.Add("email", "email");
|
|
tableMapping.ColumnMappings.Add("tel", "tel");
|
|
tableMapping.ColumnMappings.Add("indate", "indate");
|
|
tableMapping.ColumnMappings.Add("outdate", "outdate");
|
|
tableMapping.ColumnMappings.Add("hp", "hp");
|
|
tableMapping.ColumnMappings.Add("place", "place");
|
|
tableMapping.ColumnMappings.Add("ads_employNo", "ads_employNo");
|
|
tableMapping.ColumnMappings.Add("ads_title", "ads_title");
|
|
tableMapping.ColumnMappings.Add("ads_created", "ads_created");
|
|
tableMapping.ColumnMappings.Add("memo", "memo");
|
|
tableMapping.ColumnMappings.Add("processs", "processs");
|
|
tableMapping.ColumnMappings.Add("id", "id");
|
|
tableMapping.ColumnMappings.Add("state", "state");
|
|
tableMapping.ColumnMappings.Add("useJobReport", "useJobReport");
|
|
tableMapping.ColumnMappings.Add("useUserState", "useUserState");
|
|
tableMapping.ColumnMappings.Add("password", "password");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.DeleteCommand.Connection = this.Connection;
|
|
this._adapter.DeleteCommand.CommandText = "";
|
|
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.UpdateCommand.Connection = this.Connection;
|
|
this._adapter.UpdateCommand.CommandText = "UPDATE EETGW_GroupUser\r\nSET Process = @Process, state = @state\r\nWHERE (gc" +
|
|
"ode = @gcode) AND (uid = @id)";
|
|
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Process", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "processs", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@state", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "state", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitConnection() {
|
|
this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
this._connection.ConnectionString = global::Project.Properties.Settings.Default.gwcs;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = @"SELECT gcode, dept, level, name, nameE, grade, email, tel, indate, outdate, hp, place, ads_employNo, ads_title, ads_created, memo, processs, id, state, useJobReport, useUserState, password
|
|
FROM vGroupUser
|
|
WHERE (gcode = @gcode) AND (ISNULL(processs, '') LIKE @processs)
|
|
ORDER BY name";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@processs", global::System.Data.SqlDbType.VarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[1].Connection = this.Connection;
|
|
this._commandCollection[1].CommandText = @"SELECT ads_created, ads_employNo, ads_title, dept, email, gcode, grade, hp, id, indate, level, memo, name, nameE, outdate, password, place, processs, state, tel, useJobReport, useUserState FROM vGroupUser WHERE (gcode = @gcode) AND (id = @id) ORDER BY name";
|
|
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
|
|
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(dsMSSQL.vGroupUserDataTable dataTable, string gcode, string processs) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((gcode == null)) {
|
|
throw new global::System.ArgumentNullException("gcode");
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode));
|
|
}
|
|
if ((processs == null)) {
|
|
throw new global::System.ArgumentNullException("processs");
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(processs));
|
|
}
|
|
if ((this.ClearBeforeFill == true)) {
|
|
dataTable.Clear();
|
|
}
|
|
int returnValue = this.Adapter.Fill(dataTable);
|
|
return returnValue;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
public virtual dsMSSQL.vGroupUserDataTable GetData(string gcode, string processs) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((gcode == null)) {
|
|
throw new global::System.ArgumentNullException("gcode");
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode));
|
|
}
|
|
if ((processs == null)) {
|
|
throw new global::System.ArgumentNullException("processs");
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(processs));
|
|
}
|
|
dsMSSQL.vGroupUserDataTable dataTable = new dsMSSQL.vGroupUserDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
|
|
public virtual int FillByID(dsMSSQL.vGroupUserDataTable dataTable, string gcode, string id) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[1];
|
|
if ((gcode == null)) {
|
|
throw new global::System.ArgumentNullException("gcode");
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode));
|
|
}
|
|
if ((id == null)) {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(id));
|
|
}
|
|
if ((this.ClearBeforeFill == true)) {
|
|
dataTable.Clear();
|
|
}
|
|
int returnValue = this.Adapter.Fill(dataTable);
|
|
return returnValue;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
|
public virtual dsMSSQL.vGroupUserDataTable GetByID(string gcode, string id) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[1];
|
|
if ((gcode == null)) {
|
|
throw new global::System.ArgumentNullException("gcode");
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode));
|
|
}
|
|
if ((id == null)) {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(id));
|
|
}
|
|
dsMSSQL.vGroupUserDataTable dataTable = new dsMSSQL.vGroupUserDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(dsMSSQL.vGroupUserDataTable dataTable) {
|
|
return this.Adapter.Update(dataTable);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(dsMSSQL dataSet) {
|
|
return this.Adapter.Update(dataSet, "vGroupUser");
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
dataRow});
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
return this.Adapter.Update(dataRows);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[global::System.ComponentModel.ToolboxItem(true)]
|
|
[global::System.ComponentModel.DataObjectAttribute(true)]
|
|
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
|
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public partial class JobReportTableAdapter : global::System.ComponentModel.Component {
|
|
|
|
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
|
|
|
private global::System.Data.SqlClient.SqlConnection _connection;
|
|
|
|
private global::System.Data.SqlClient.SqlTransaction _transaction;
|
|
|
|
private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
|
|
|
private bool _clearBeforeFill;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public JobReportTableAdapter() {
|
|
this.ClearBeforeFill = true;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
|
get {
|
|
if ((this._adapter == null)) {
|
|
this.InitAdapter();
|
|
}
|
|
return this._adapter;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal global::System.Data.SqlClient.SqlConnection Connection {
|
|
get {
|
|
if ((this._connection == null)) {
|
|
this.InitConnection();
|
|
}
|
|
return this._connection;
|
|
}
|
|
set {
|
|
this._connection = value;
|
|
if ((this.Adapter.InsertCommand != null)) {
|
|
this.Adapter.InsertCommand.Connection = value;
|
|
}
|
|
if ((this.Adapter.DeleteCommand != null)) {
|
|
this.Adapter.DeleteCommand.Connection = value;
|
|
}
|
|
if ((this.Adapter.UpdateCommand != null)) {
|
|
this.Adapter.UpdateCommand.Connection = value;
|
|
}
|
|
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
if ((this.CommandCollection[i] != null)) {
|
|
((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
|
get {
|
|
return this._transaction;
|
|
}
|
|
set {
|
|
this._transaction = value;
|
|
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
|
this.CommandCollection[i].Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.DeleteCommand != null))) {
|
|
this.Adapter.DeleteCommand.Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.InsertCommand != null))) {
|
|
this.Adapter.InsertCommand.Transaction = this._transaction;
|
|
}
|
|
if (((this.Adapter != null)
|
|
&& (this.Adapter.UpdateCommand != null))) {
|
|
this.Adapter.UpdateCommand.Transaction = this._transaction;
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
|
get {
|
|
if ((this._commandCollection == null)) {
|
|
this.InitCommandCollection();
|
|
}
|
|
return this._commandCollection;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool ClearBeforeFill {
|
|
get {
|
|
return this._clearBeforeFill;
|
|
}
|
|
set {
|
|
this._clearBeforeFill = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitAdapter() {
|
|
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
|
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
|
tableMapping.SourceTable = "Table";
|
|
tableMapping.DataSetTable = "JobReport";
|
|
tableMapping.ColumnMappings.Add("idx", "idx");
|
|
tableMapping.ColumnMappings.Add("gcode", "gcode");
|
|
tableMapping.ColumnMappings.Add("pdate", "pdate");
|
|
tableMapping.ColumnMappings.Add("pidx", "pidx");
|
|
tableMapping.ColumnMappings.Add("projectName", "projectName");
|
|
tableMapping.ColumnMappings.Add("uid", "uid");
|
|
tableMapping.ColumnMappings.Add("requestpart", "requestpart");
|
|
tableMapping.ColumnMappings.Add("package", "package");
|
|
tableMapping.ColumnMappings.Add("status", "status");
|
|
tableMapping.ColumnMappings.Add("type", "type");
|
|
tableMapping.ColumnMappings.Add("process", "process");
|
|
tableMapping.ColumnMappings.Add("description", "description");
|
|
tableMapping.ColumnMappings.Add("remark", "remark");
|
|
tableMapping.ColumnMappings.Add("hrs", "hrs");
|
|
tableMapping.ColumnMappings.Add("ot", "ot");
|
|
tableMapping.ColumnMappings.Add("import", "import");
|
|
tableMapping.ColumnMappings.Add("wuid", "wuid");
|
|
tableMapping.ColumnMappings.Add("wdate", "wdate");
|
|
tableMapping.ColumnMappings.Add("description2", "description2");
|
|
tableMapping.ColumnMappings.Add("tag", "tag");
|
|
tableMapping.ColumnMappings.Add("autoinput", "autoinput");
|
|
this._adapter.TableMappings.Add(tableMapping);
|
|
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.DeleteCommand.Connection = this.Connection;
|
|
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [JobReport] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx)) AND ((@IsNull_projectName = 1 AND [projectName] IS NULL) OR ([projectName] = @Original_projectName)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_requestpart = 1 AND [requestpart] IS NULL) OR ([requestpart] = @Original_requestpart)) AND ((@IsNull_package = 1 AND [package] IS NULL) OR ([package] = @Original_package)) AND ((@IsNull_status = 1 AND [status] IS NULL) OR ([status] = @Original_status)) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_remark = 1 AND [remark] IS NULL) OR ([remark] = @Original_remark)) AND ((@IsNull_hrs = 1 AND [hrs] IS NULL) OR ([hrs] = @Original_hrs)) AND ((@IsNull_ot = 1 AND [ot] IS NULL) OR ([ot] = @Original_ot)) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_tag = 1 AND [tag] IS NULL) OR ([tag] = @Original_tag)) AND ((@IsNull_autoinput = 1 AND [autoinput] IS NULL) OR ([autoinput] = @Original_autoinput)))";
|
|
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_projectName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_projectName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_uid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_requestpart", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "requestpart", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_requestpart", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "requestpart", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_package", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "package", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_package", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "package", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_type", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_process", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "process", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_process", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "process", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_remark", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "remark", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_remark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "remark", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_hrs", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hrs", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_hrs", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hrs", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ot", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ot", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_import", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_import", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_tag", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tag", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_tag", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tag", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_autoinput", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "autoinput", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_autoinput", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "autoinput", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.InsertCommand.Connection = this.Connection;
|
|
this._adapter.InsertCommand.CommandText = @"INSERT INTO [JobReport] ([gcode], [pdate], [pidx], [projectName], [uid], [requestpart], [package], [status], [type], [process], [description], [remark], [hrs], [ot], [import], [wuid], [wdate], [description2], [tag], [autoinput]) VALUES (@gcode, @pdate, @pidx, @projectName, @uid, @requestpart, @package, @status, @type, @process, @description, @remark, @hrs, @ot, @import, @wuid, @wdate, @description2, @tag, @autoinput);
|
|
SELECT idx, gcode, pdate, pidx, projectName, uid, requestpart, package, status, type, process, description, remark, hrs, ot, import, wuid, wdate, description2, tag, autoinput FROM JobReport WHERE (idx = SCOPE_IDENTITY()) ORDER BY pdate";
|
|
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@projectName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@requestpart", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "requestpart", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@package", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "package", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@process", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "process", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@remark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "remark", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@hrs", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hrs", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ot", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@import", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@description2", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "description2", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tag", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tag", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@autoinput", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "autoinput", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
|
this._adapter.UpdateCommand.Connection = this.Connection;
|
|
this._adapter.UpdateCommand.CommandText = "UPDATE [JobReport] SET [gcode] = @gcode, [pdate] = @pdate, [pidx] = @pidx, [proje" +
|
|
"ctName] = @projectName, [uid] = @uid, [requestpart] = @requestpart, [package] = " +
|
|
"@package, [status] = @status, [type] = @type, [process] = @process, [description" +
|
|
"] = @description, [remark] = @remark, [hrs] = @hrs, [ot] = @ot, [import] = @impo" +
|
|
"rt, [wuid] = @wuid, [wdate] = @wdate, [description2] = @description2, [tag] = @t" +
|
|
"ag, [autoinput] = @autoinput WHERE (([idx] = @Original_idx) AND ([gcode] = @Orig" +
|
|
"inal_gcode) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original" +
|
|
"_pdate)) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx)" +
|
|
") AND ((@IsNull_projectName = 1 AND [projectName] IS NULL) OR ([projectName] = @" +
|
|
"Original_projectName)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Ori" +
|
|
"ginal_uid)) AND ((@IsNull_requestpart = 1 AND [requestpart] IS NULL) OR ([reques" +
|
|
"tpart] = @Original_requestpart)) AND ((@IsNull_package = 1 AND [package] IS NULL" +
|
|
") OR ([package] = @Original_package)) AND ((@IsNull_status = 1 AND [status] IS N" +
|
|
"ULL) OR ([status] = @Original_status)) AND ((@IsNull_type = 1 AND [type] IS NULL" +
|
|
") OR ([type] = @Original_type)) AND ((@IsNull_process = 1 AND [process] IS NULL)" +
|
|
" OR ([process] = @Original_process)) AND ((@IsNull_remark = 1 AND [remark] IS NU" +
|
|
"LL) OR ([remark] = @Original_remark)) AND ((@IsNull_hrs = 1 AND [hrs] IS NULL) O" +
|
|
"R ([hrs] = @Original_hrs)) AND ((@IsNull_ot = 1 AND [ot] IS NULL) OR ([ot] = @Or" +
|
|
"iginal_ot)) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Origi" +
|
|
"nal_import)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND (" +
|
|
"(@IsNull_tag = 1 AND [tag] IS NULL) OR ([tag] = @Original_tag)) AND ((@IsNull_au" +
|
|
"toinput = 1 AND [autoinput] IS NULL) OR ([autoinput] = @Original_autoinput)));\r\n" +
|
|
"SELECT idx, gcode, pdate, pidx, projectName, uid, requestpart, package, status, " +
|
|
"type, process, description, remark, hrs, ot, import, wuid, wdate, description2, " +
|
|
"tag, autoinput FROM JobReport WHERE (idx = @idx) ORDER BY pdate";
|
|
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@projectName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@requestpart", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "requestpart", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@package", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "package", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@process", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "process", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@remark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "remark", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@hrs", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hrs", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ot", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@import", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@description2", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "description2", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tag", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tag", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@autoinput", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "autoinput", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_projectName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_projectName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_uid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_requestpart", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "requestpart", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_requestpart", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "requestpart", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_package", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "package", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_package", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "package", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_type", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_process", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "process", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_process", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "process", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_remark", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "remark", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_remark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "remark", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_hrs", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hrs", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_hrs", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hrs", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ot", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ot", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_import", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_import", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_tag", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tag", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_tag", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tag", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_autoinput", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "autoinput", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_autoinput", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "autoinput", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
|
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitConnection() {
|
|
this._connection = new global::System.Data.SqlClient.SqlConnection();
|
|
this._connection.ConnectionString = global::Project.Properties.Settings.Default.gwcs;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
this._commandCollection[0].Connection = this.Connection;
|
|
this._commandCollection[0].CommandText = "SELECT idx, gcode, pdate, pidx, projectName, uid, requestpart, package, status, " +
|
|
"type, process, description, remark, hrs, ot, import, wuid, wdate, description2, " +
|
|
"tag, autoinput\r\nFROM JobReport\r\nWHERE (gcode = @GCODE) AND (uid = @UID)\r\nOR" +
|
|
"DER BY pdate";
|
|
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GCODE", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UID", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
|
public virtual int Fill(dsMSSQL.JobReportDataTable dataTable, string GCODE, string UID) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((GCODE == null)) {
|
|
throw new global::System.ArgumentNullException("GCODE");
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(GCODE));
|
|
}
|
|
if ((UID == null)) {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UID));
|
|
}
|
|
if ((this.ClearBeforeFill == true)) {
|
|
dataTable.Clear();
|
|
}
|
|
int returnValue = this.Adapter.Fill(dataTable);
|
|
return returnValue;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
|
public virtual dsMSSQL.JobReportDataTable GetData(string GCODE, string UID) {
|
|
this.Adapter.SelectCommand = this.CommandCollection[0];
|
|
if ((GCODE == null)) {
|
|
throw new global::System.ArgumentNullException("GCODE");
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(GCODE));
|
|
}
|
|
if ((UID == null)) {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UID));
|
|
}
|
|
dsMSSQL.JobReportDataTable dataTable = new dsMSSQL.JobReportDataTable();
|
|
this.Adapter.Fill(dataTable);
|
|
return dataTable;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(dsMSSQL.JobReportDataTable dataTable) {
|
|
return this.Adapter.Update(dataTable);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(dsMSSQL dataSet) {
|
|
return this.Adapter.Update(dataSet, "JobReport");
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(global::System.Data.DataRow dataRow) {
|
|
return this.Adapter.Update(new global::System.Data.DataRow[] {
|
|
dataRow});
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual int Update(global::System.Data.DataRow[] dataRows) {
|
|
return this.Adapter.Update(dataRows);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
|
public virtual int Delete(
|
|
int Original_idx,
|
|
string Original_gcode,
|
|
string Original_pdate,
|
|
global::System.Nullable<int> Original_pidx,
|
|
string Original_projectName,
|
|
string Original_uid,
|
|
string Original_requestpart,
|
|
string Original_package,
|
|
string Original_status,
|
|
string Original_type,
|
|
string Original_process,
|
|
string Original_remark,
|
|
global::System.Nullable<double> Original_hrs,
|
|
global::System.Nullable<double> Original_ot,
|
|
global::System.Nullable<bool> Original_import,
|
|
string Original_wuid,
|
|
System.DateTime Original_wdate,
|
|
string Original_tag,
|
|
global::System.Nullable<bool> Original_autoinput) {
|
|
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
|
|
if ((Original_gcode == null)) {
|
|
throw new global::System.ArgumentNullException("Original_gcode");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_gcode));
|
|
}
|
|
if ((Original_pdate == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_pdate));
|
|
}
|
|
if ((Original_pidx.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_pidx.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_projectName == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_projectName));
|
|
}
|
|
if ((Original_uid == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_uid));
|
|
}
|
|
if ((Original_requestpart == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_requestpart));
|
|
}
|
|
if ((Original_package == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_package));
|
|
}
|
|
if ((Original_status == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[15].Value = ((string)(Original_status));
|
|
}
|
|
if ((Original_type == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[17].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[17].Value = ((string)(Original_type));
|
|
}
|
|
if ((Original_process == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[19].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[19].Value = ((string)(Original_process));
|
|
}
|
|
if ((Original_remark == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[21].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[21].Value = ((string)(Original_remark));
|
|
}
|
|
if ((Original_hrs.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[23].Value = ((double)(Original_hrs.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[23].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_ot.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[24].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[25].Value = ((double)(Original_ot.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[24].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[25].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_import.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[26].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[27].Value = ((bool)(Original_import.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[26].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[27].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_wuid == null)) {
|
|
throw new global::System.ArgumentNullException("Original_wuid");
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[28].Value = ((string)(Original_wuid));
|
|
}
|
|
this.Adapter.DeleteCommand.Parameters[29].Value = ((System.DateTime)(Original_wdate));
|
|
if ((Original_tag == null)) {
|
|
this.Adapter.DeleteCommand.Parameters[30].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[31].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[30].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[31].Value = ((string)(Original_tag));
|
|
}
|
|
if ((Original_autoinput.HasValue == true)) {
|
|
this.Adapter.DeleteCommand.Parameters[32].Value = ((object)(0));
|
|
this.Adapter.DeleteCommand.Parameters[33].Value = ((bool)(Original_autoinput.Value));
|
|
}
|
|
else {
|
|
this.Adapter.DeleteCommand.Parameters[32].Value = ((object)(1));
|
|
this.Adapter.DeleteCommand.Parameters[33].Value = global::System.DBNull.Value;
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
|
|
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.DeleteCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.DeleteCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
|
public virtual int Insert(
|
|
string gcode,
|
|
string pdate,
|
|
global::System.Nullable<int> pidx,
|
|
string projectName,
|
|
string uid,
|
|
string requestpart,
|
|
string package,
|
|
string status,
|
|
string type,
|
|
string process,
|
|
string description,
|
|
string remark,
|
|
global::System.Nullable<double> hrs,
|
|
global::System.Nullable<double> ot,
|
|
global::System.Nullable<bool> import,
|
|
string wuid,
|
|
System.DateTime wdate,
|
|
string description2,
|
|
string tag,
|
|
global::System.Nullable<bool> autoinput) {
|
|
if ((gcode == null)) {
|
|
throw new global::System.ArgumentNullException("gcode");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(gcode));
|
|
}
|
|
if ((pdate == null)) {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(pdate));
|
|
}
|
|
if ((pidx.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = ((int)(pidx.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((projectName == null)) {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(projectName));
|
|
}
|
|
if ((uid == null)) {
|
|
this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[4].Value = ((string)(uid));
|
|
}
|
|
if ((requestpart == null)) {
|
|
this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[5].Value = ((string)(requestpart));
|
|
}
|
|
if ((package == null)) {
|
|
this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[6].Value = ((string)(package));
|
|
}
|
|
if ((status == null)) {
|
|
this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[7].Value = ((string)(status));
|
|
}
|
|
if ((type == null)) {
|
|
this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[8].Value = ((string)(type));
|
|
}
|
|
if ((process == null)) {
|
|
this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[9].Value = ((string)(process));
|
|
}
|
|
if ((description == null)) {
|
|
this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[10].Value = ((string)(description));
|
|
}
|
|
if ((remark == null)) {
|
|
this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[11].Value = ((string)(remark));
|
|
}
|
|
if ((hrs.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[12].Value = ((double)(hrs.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((ot.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[13].Value = ((double)(ot.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((import.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[14].Value = ((bool)(import.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((wuid == null)) {
|
|
throw new global::System.ArgumentNullException("wuid");
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[15].Value = ((string)(wuid));
|
|
}
|
|
this.Adapter.InsertCommand.Parameters[16].Value = ((System.DateTime)(wdate));
|
|
if ((description2 == null)) {
|
|
this.Adapter.InsertCommand.Parameters[17].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[17].Value = ((string)(description2));
|
|
}
|
|
if ((tag == null)) {
|
|
this.Adapter.InsertCommand.Parameters[18].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[18].Value = ((string)(tag));
|
|
}
|
|
if ((autoinput.HasValue == true)) {
|
|
this.Adapter.InsertCommand.Parameters[19].Value = ((bool)(autoinput.Value));
|
|
}
|
|
else {
|
|
this.Adapter.InsertCommand.Parameters[19].Value = global::System.DBNull.Value;
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
|
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.InsertCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.InsertCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(
|
|
string gcode,
|
|
string pdate,
|
|
global::System.Nullable<int> pidx,
|
|
string projectName,
|
|
string uid,
|
|
string requestpart,
|
|
string package,
|
|
string status,
|
|
string type,
|
|
string process,
|
|
string description,
|
|
string remark,
|
|
global::System.Nullable<double> hrs,
|
|
global::System.Nullable<double> ot,
|
|
global::System.Nullable<bool> import,
|
|
string wuid,
|
|
System.DateTime wdate,
|
|
string description2,
|
|
string tag,
|
|
global::System.Nullable<bool> autoinput,
|
|
int Original_idx,
|
|
string Original_gcode,
|
|
string Original_pdate,
|
|
global::System.Nullable<int> Original_pidx,
|
|
string Original_projectName,
|
|
string Original_uid,
|
|
string Original_requestpart,
|
|
string Original_package,
|
|
string Original_status,
|
|
string Original_type,
|
|
string Original_process,
|
|
string Original_remark,
|
|
global::System.Nullable<double> Original_hrs,
|
|
global::System.Nullable<double> Original_ot,
|
|
global::System.Nullable<bool> Original_import,
|
|
string Original_wuid,
|
|
System.DateTime Original_wdate,
|
|
string Original_tag,
|
|
global::System.Nullable<bool> Original_autoinput,
|
|
int idx) {
|
|
if ((gcode == null)) {
|
|
throw new global::System.ArgumentNullException("gcode");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(gcode));
|
|
}
|
|
if ((pdate == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(pdate));
|
|
}
|
|
if ((pidx.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(pidx.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((projectName == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(projectName));
|
|
}
|
|
if ((uid == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(uid));
|
|
}
|
|
if ((requestpart == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(requestpart));
|
|
}
|
|
if ((package == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(package));
|
|
}
|
|
if ((status == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(status));
|
|
}
|
|
if ((type == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(type));
|
|
}
|
|
if ((process == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(process));
|
|
}
|
|
if ((description == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(description));
|
|
}
|
|
if ((remark == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(remark));
|
|
}
|
|
if ((hrs.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[12].Value = ((double)(hrs.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((ot.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[13].Value = ((double)(ot.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((import.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[14].Value = ((bool)(import.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((wuid == null)) {
|
|
throw new global::System.ArgumentNullException("wuid");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(wuid));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(wdate));
|
|
if ((description2 == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(description2));
|
|
}
|
|
if ((tag == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(tag));
|
|
}
|
|
if ((autoinput.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[19].Value = ((bool)(autoinput.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[20].Value = ((int)(Original_idx));
|
|
if ((Original_gcode == null)) {
|
|
throw new global::System.ArgumentNullException("Original_gcode");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_gcode));
|
|
}
|
|
if ((Original_pdate == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_pdate));
|
|
}
|
|
if ((Original_pidx.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(Original_pidx.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_projectName == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_projectName));
|
|
}
|
|
if ((Original_uid == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_uid));
|
|
}
|
|
if ((Original_requestpart == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_requestpart));
|
|
}
|
|
if ((Original_package == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[33].Value = ((string)(Original_package));
|
|
}
|
|
if ((Original_status == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[35].Value = ((string)(Original_status));
|
|
}
|
|
if ((Original_type == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[37].Value = ((string)(Original_type));
|
|
}
|
|
if ((Original_process == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[39].Value = ((string)(Original_process));
|
|
}
|
|
if ((Original_remark == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[41].Value = ((string)(Original_remark));
|
|
}
|
|
if ((Original_hrs.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[43].Value = ((double)(Original_hrs.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[43].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_ot.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[45].Value = ((double)(Original_ot.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[45].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_import.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[47].Value = ((bool)(Original_import.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[47].Value = global::System.DBNull.Value;
|
|
}
|
|
if ((Original_wuid == null)) {
|
|
throw new global::System.ArgumentNullException("Original_wuid");
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[48].Value = ((string)(Original_wuid));
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[49].Value = ((System.DateTime)(Original_wdate));
|
|
if ((Original_tag == null)) {
|
|
this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[51].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[51].Value = ((string)(Original_tag));
|
|
}
|
|
if ((Original_autoinput.HasValue == true)) {
|
|
this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(0));
|
|
this.Adapter.UpdateCommand.Parameters[53].Value = ((bool)(Original_autoinput.Value));
|
|
}
|
|
else {
|
|
this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(1));
|
|
this.Adapter.UpdateCommand.Parameters[53].Value = global::System.DBNull.Value;
|
|
}
|
|
this.Adapter.UpdateCommand.Parameters[54].Value = ((int)(idx));
|
|
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
|
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
this.Adapter.UpdateCommand.Connection.Open();
|
|
}
|
|
try {
|
|
int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
|
|
return returnValue;
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
this.Adapter.UpdateCommand.Connection.Close();
|
|
}
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
|
public virtual int Update(
|
|
string gcode,
|
|
string pdate,
|
|
global::System.Nullable<int> pidx,
|
|
string projectName,
|
|
string uid,
|
|
string requestpart,
|
|
string package,
|
|
string status,
|
|
string type,
|
|
string process,
|
|
string description,
|
|
string remark,
|
|
global::System.Nullable<double> hrs,
|
|
global::System.Nullable<double> ot,
|
|
global::System.Nullable<bool> import,
|
|
string wuid,
|
|
System.DateTime wdate,
|
|
string description2,
|
|
string tag,
|
|
global::System.Nullable<bool> autoinput,
|
|
int Original_idx,
|
|
string Original_gcode,
|
|
string Original_pdate,
|
|
global::System.Nullable<int> Original_pidx,
|
|
string Original_projectName,
|
|
string Original_uid,
|
|
string Original_requestpart,
|
|
string Original_package,
|
|
string Original_status,
|
|
string Original_type,
|
|
string Original_process,
|
|
string Original_remark,
|
|
global::System.Nullable<double> Original_hrs,
|
|
global::System.Nullable<double> Original_ot,
|
|
global::System.Nullable<bool> Original_import,
|
|
string Original_wuid,
|
|
System.DateTime Original_wdate,
|
|
string Original_tag,
|
|
global::System.Nullable<bool> Original_autoinput) {
|
|
return this.Update(gcode, pdate, pidx, projectName, uid, requestpart, package, status, type, process, description, remark, hrs, ot, import, wuid, wdate, description2, tag, autoinput, Original_idx, Original_gcode, Original_pdate, Original_pidx, Original_projectName, Original_uid, Original_requestpart, Original_package, Original_status, Original_type, Original_process, Original_remark, Original_hrs, Original_ot, Original_import, Original_wuid, Original_wdate, Original_tag, Original_autoinput, Original_idx);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Represents the connection and commands used to retrieve and save data.
|
|
///</summary>
|
|
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[global::System.ComponentModel.ToolboxItem(true)]
|
|
[global::System.ComponentModel.DataObjectAttribute(true)]
|
|
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
|
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public partial class QueriesTableAdapter : global::System.ComponentModel.Component {
|
|
|
|
private global::System.Data.IDbCommand[] _commandCollection;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected global::System.Data.IDbCommand[] CommandCollection {
|
|
get {
|
|
if ((this._commandCollection == null)) {
|
|
this.InitCommandCollection();
|
|
}
|
|
return this._commandCollection;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private void InitCommandCollection() {
|
|
this._commandCollection = new global::System.Data.IDbCommand[3];
|
|
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Connection = new global::System.Data.SqlClient.SqlConnection(global::Project.Properties.Settings.Default.gwcs);
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).CommandText = "SELECT ISNULL(name, \'\') AS itemName\r\nFROM Items\r\nWHERE (idx = @id)";
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).CommandType = global::System.Data.CommandType.Text;
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).Connection = new global::System.Data.SqlClient.SqlConnection(global::Project.Properties.Settings.Default.gwcs);
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).CommandText = "SELECT ISNULL(name, \'\') AS ProjectName\r\nFROM Projects\r\nWHERE (idx = @idx)";
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).CommandType = global::System.Data.CommandType.Text;
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Connection = new global::System.Data.SqlClient.SqlConnection(global::Project.Properties.Settings.Default.gwcs);
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).CommandText = "dbo.GetUserLoginCheck";
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).CommandType = global::System.Data.CommandType.StoredProcedure;
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.ReturnValue, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pw", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual string GetItemName(int id) {
|
|
global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[0]));
|
|
command.Parameters[0].Value = ((int)(id));
|
|
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
|
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
command.Connection.Open();
|
|
}
|
|
object returnValue;
|
|
try {
|
|
returnValue = command.ExecuteScalar();
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
command.Connection.Close();
|
|
}
|
|
}
|
|
if (((returnValue == null)
|
|
|| (returnValue.GetType() == typeof(global::System.DBNull)))) {
|
|
return null;
|
|
}
|
|
else {
|
|
return ((string)(returnValue));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual string GetProjectName(int idx) {
|
|
global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[1]));
|
|
command.Parameters[0].Value = ((int)(idx));
|
|
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
|
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
command.Connection.Open();
|
|
}
|
|
object returnValue;
|
|
try {
|
|
returnValue = command.ExecuteScalar();
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
command.Connection.Close();
|
|
}
|
|
}
|
|
if (((returnValue == null)
|
|
|| (returnValue.GetType() == typeof(global::System.DBNull)))) {
|
|
return null;
|
|
}
|
|
else {
|
|
return ((string)(returnValue));
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
|
public virtual object GetUserLoginCheck(string id, string pw) {
|
|
global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[2]));
|
|
if ((id == null)) {
|
|
command.Parameters[1].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
command.Parameters[1].Value = ((string)(id));
|
|
}
|
|
if ((pw == null)) {
|
|
command.Parameters[2].Value = global::System.DBNull.Value;
|
|
}
|
|
else {
|
|
command.Parameters[2].Value = ((string)(pw));
|
|
}
|
|
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
|
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
|
!= global::System.Data.ConnectionState.Open)) {
|
|
command.Connection.Open();
|
|
}
|
|
object returnValue;
|
|
try {
|
|
returnValue = command.ExecuteScalar();
|
|
}
|
|
finally {
|
|
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
|
command.Connection.Close();
|
|
}
|
|
}
|
|
if (((returnValue == null)
|
|
|| (returnValue.GetType() == typeof(global::System.DBNull)))) {
|
|
return null;
|
|
}
|
|
else {
|
|
return ((object)(returnValue));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
|
|
///</summary>
|
|
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[global::System.ComponentModel.ToolboxItem(true)]
|
|
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
|
|
"esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
|
|
public partial class TableAdapterManager : global::System.ComponentModel.Component {
|
|
|
|
private UpdateOrderOption _updateOrder;
|
|
|
|
private UsersTableAdapter _usersTableAdapter;
|
|
|
|
private ProjectsTableAdapter _projectsTableAdapter;
|
|
|
|
private ItemsTableAdapter _itemsTableAdapter;
|
|
|
|
private InventoryTableAdapter _inventoryTableAdapter;
|
|
|
|
private LineCodeTableAdapter _lineCodeTableAdapter;
|
|
|
|
private UserGroupTableAdapter _userGroupTableAdapter;
|
|
|
|
private SPMasterTableAdapter _sPMasterTableAdapter;
|
|
|
|
private EETGW_GroupUserTableAdapter _eETGW_GroupUserTableAdapter;
|
|
|
|
private vGroupUserTableAdapter _vGroupUserTableAdapter;
|
|
|
|
private JobReportTableAdapter _jobReportTableAdapter;
|
|
|
|
private bool _backupDataSetBeforeUpdate;
|
|
|
|
private global::System.Data.IDbConnection _connection;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public UpdateOrderOption UpdateOrder {
|
|
get {
|
|
return this._updateOrder;
|
|
}
|
|
set {
|
|
this._updateOrder = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
"ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
"a", "System.Drawing.Design.UITypeEditor")]
|
|
public UsersTableAdapter UsersTableAdapter {
|
|
get {
|
|
return this._usersTableAdapter;
|
|
}
|
|
set {
|
|
this._usersTableAdapter = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
"ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
"a", "System.Drawing.Design.UITypeEditor")]
|
|
public ProjectsTableAdapter ProjectsTableAdapter {
|
|
get {
|
|
return this._projectsTableAdapter;
|
|
}
|
|
set {
|
|
this._projectsTableAdapter = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
"ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
"a", "System.Drawing.Design.UITypeEditor")]
|
|
public ItemsTableAdapter ItemsTableAdapter {
|
|
get {
|
|
return this._itemsTableAdapter;
|
|
}
|
|
set {
|
|
this._itemsTableAdapter = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
"ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
"a", "System.Drawing.Design.UITypeEditor")]
|
|
public InventoryTableAdapter InventoryTableAdapter {
|
|
get {
|
|
return this._inventoryTableAdapter;
|
|
}
|
|
set {
|
|
this._inventoryTableAdapter = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
"ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
"a", "System.Drawing.Design.UITypeEditor")]
|
|
public LineCodeTableAdapter LineCodeTableAdapter {
|
|
get {
|
|
return this._lineCodeTableAdapter;
|
|
}
|
|
set {
|
|
this._lineCodeTableAdapter = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
"ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
"a", "System.Drawing.Design.UITypeEditor")]
|
|
public UserGroupTableAdapter UserGroupTableAdapter {
|
|
get {
|
|
return this._userGroupTableAdapter;
|
|
}
|
|
set {
|
|
this._userGroupTableAdapter = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
"ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
"a", "System.Drawing.Design.UITypeEditor")]
|
|
public SPMasterTableAdapter SPMasterTableAdapter {
|
|
get {
|
|
return this._sPMasterTableAdapter;
|
|
}
|
|
set {
|
|
this._sPMasterTableAdapter = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
"ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
"a", "System.Drawing.Design.UITypeEditor")]
|
|
public EETGW_GroupUserTableAdapter EETGW_GroupUserTableAdapter {
|
|
get {
|
|
return this._eETGW_GroupUserTableAdapter;
|
|
}
|
|
set {
|
|
this._eETGW_GroupUserTableAdapter = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
"ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
"a", "System.Drawing.Design.UITypeEditor")]
|
|
public vGroupUserTableAdapter vGroupUserTableAdapter {
|
|
get {
|
|
return this._vGroupUserTableAdapter;
|
|
}
|
|
set {
|
|
this._vGroupUserTableAdapter = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
|
|
"ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
|
|
"a", "System.Drawing.Design.UITypeEditor")]
|
|
public JobReportTableAdapter JobReportTableAdapter {
|
|
get {
|
|
return this._jobReportTableAdapter;
|
|
}
|
|
set {
|
|
this._jobReportTableAdapter = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public bool BackupDataSetBeforeUpdate {
|
|
get {
|
|
return this._backupDataSetBeforeUpdate;
|
|
}
|
|
set {
|
|
this._backupDataSetBeforeUpdate = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public global::System.Data.IDbConnection Connection {
|
|
get {
|
|
if ((this._connection != null)) {
|
|
return this._connection;
|
|
}
|
|
if (((this._usersTableAdapter != null)
|
|
&& (this._usersTableAdapter.Connection != null))) {
|
|
return this._usersTableAdapter.Connection;
|
|
}
|
|
if (((this._projectsTableAdapter != null)
|
|
&& (this._projectsTableAdapter.Connection != null))) {
|
|
return this._projectsTableAdapter.Connection;
|
|
}
|
|
if (((this._itemsTableAdapter != null)
|
|
&& (this._itemsTableAdapter.Connection != null))) {
|
|
return this._itemsTableAdapter.Connection;
|
|
}
|
|
if (((this._inventoryTableAdapter != null)
|
|
&& (this._inventoryTableAdapter.Connection != null))) {
|
|
return this._inventoryTableAdapter.Connection;
|
|
}
|
|
if (((this._lineCodeTableAdapter != null)
|
|
&& (this._lineCodeTableAdapter.Connection != null))) {
|
|
return this._lineCodeTableAdapter.Connection;
|
|
}
|
|
if (((this._userGroupTableAdapter != null)
|
|
&& (this._userGroupTableAdapter.Connection != null))) {
|
|
return this._userGroupTableAdapter.Connection;
|
|
}
|
|
if (((this._sPMasterTableAdapter != null)
|
|
&& (this._sPMasterTableAdapter.Connection != null))) {
|
|
return this._sPMasterTableAdapter.Connection;
|
|
}
|
|
if (((this._eETGW_GroupUserTableAdapter != null)
|
|
&& (this._eETGW_GroupUserTableAdapter.Connection != null))) {
|
|
return this._eETGW_GroupUserTableAdapter.Connection;
|
|
}
|
|
if (((this._vGroupUserTableAdapter != null)
|
|
&& (this._vGroupUserTableAdapter.Connection != null))) {
|
|
return this._vGroupUserTableAdapter.Connection;
|
|
}
|
|
if (((this._jobReportTableAdapter != null)
|
|
&& (this._jobReportTableAdapter.Connection != null))) {
|
|
return this._jobReportTableAdapter.Connection;
|
|
}
|
|
return null;
|
|
}
|
|
set {
|
|
this._connection = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public int TableAdapterInstanceCount {
|
|
get {
|
|
int count = 0;
|
|
if ((this._usersTableAdapter != null)) {
|
|
count = (count + 1);
|
|
}
|
|
if ((this._projectsTableAdapter != null)) {
|
|
count = (count + 1);
|
|
}
|
|
if ((this._itemsTableAdapter != null)) {
|
|
count = (count + 1);
|
|
}
|
|
if ((this._inventoryTableAdapter != null)) {
|
|
count = (count + 1);
|
|
}
|
|
if ((this._lineCodeTableAdapter != null)) {
|
|
count = (count + 1);
|
|
}
|
|
if ((this._userGroupTableAdapter != null)) {
|
|
count = (count + 1);
|
|
}
|
|
if ((this._sPMasterTableAdapter != null)) {
|
|
count = (count + 1);
|
|
}
|
|
if ((this._eETGW_GroupUserTableAdapter != null)) {
|
|
count = (count + 1);
|
|
}
|
|
if ((this._vGroupUserTableAdapter != null)) {
|
|
count = (count + 1);
|
|
}
|
|
if ((this._jobReportTableAdapter != null)) {
|
|
count = (count + 1);
|
|
}
|
|
return count;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///Update rows in top-down order.
|
|
///</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private int UpdateUpdatedRows(dsMSSQL dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
|
|
int result = 0;
|
|
if ((this._usersTableAdapter != null)) {
|
|
global::System.Data.DataRow[] updatedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
if (((updatedRows != null)
|
|
&& (0 < updatedRows.Length))) {
|
|
result = (result + this._usersTableAdapter.Update(updatedRows));
|
|
allChangedRows.AddRange(updatedRows);
|
|
}
|
|
}
|
|
if ((this._projectsTableAdapter != null)) {
|
|
global::System.Data.DataRow[] updatedRows = dataSet.Projects.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
if (((updatedRows != null)
|
|
&& (0 < updatedRows.Length))) {
|
|
result = (result + this._projectsTableAdapter.Update(updatedRows));
|
|
allChangedRows.AddRange(updatedRows);
|
|
}
|
|
}
|
|
if ((this._itemsTableAdapter != null)) {
|
|
global::System.Data.DataRow[] updatedRows = dataSet.Items.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
if (((updatedRows != null)
|
|
&& (0 < updatedRows.Length))) {
|
|
result = (result + this._itemsTableAdapter.Update(updatedRows));
|
|
allChangedRows.AddRange(updatedRows);
|
|
}
|
|
}
|
|
if ((this._inventoryTableAdapter != null)) {
|
|
global::System.Data.DataRow[] updatedRows = dataSet.Inventory.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
if (((updatedRows != null)
|
|
&& (0 < updatedRows.Length))) {
|
|
result = (result + this._inventoryTableAdapter.Update(updatedRows));
|
|
allChangedRows.AddRange(updatedRows);
|
|
}
|
|
}
|
|
if ((this._lineCodeTableAdapter != null)) {
|
|
global::System.Data.DataRow[] updatedRows = dataSet.LineCode.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
if (((updatedRows != null)
|
|
&& (0 < updatedRows.Length))) {
|
|
result = (result + this._lineCodeTableAdapter.Update(updatedRows));
|
|
allChangedRows.AddRange(updatedRows);
|
|
}
|
|
}
|
|
if ((this._userGroupTableAdapter != null)) {
|
|
global::System.Data.DataRow[] updatedRows = dataSet.UserGroup.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
if (((updatedRows != null)
|
|
&& (0 < updatedRows.Length))) {
|
|
result = (result + this._userGroupTableAdapter.Update(updatedRows));
|
|
allChangedRows.AddRange(updatedRows);
|
|
}
|
|
}
|
|
if ((this._sPMasterTableAdapter != null)) {
|
|
global::System.Data.DataRow[] updatedRows = dataSet.SPMaster.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
if (((updatedRows != null)
|
|
&& (0 < updatedRows.Length))) {
|
|
result = (result + this._sPMasterTableAdapter.Update(updatedRows));
|
|
allChangedRows.AddRange(updatedRows);
|
|
}
|
|
}
|
|
if ((this._eETGW_GroupUserTableAdapter != null)) {
|
|
global::System.Data.DataRow[] updatedRows = dataSet.EETGW_GroupUser.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
if (((updatedRows != null)
|
|
&& (0 < updatedRows.Length))) {
|
|
result = (result + this._eETGW_GroupUserTableAdapter.Update(updatedRows));
|
|
allChangedRows.AddRange(updatedRows);
|
|
}
|
|
}
|
|
if ((this._vGroupUserTableAdapter != null)) {
|
|
global::System.Data.DataRow[] updatedRows = dataSet.vGroupUser.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
if (((updatedRows != null)
|
|
&& (0 < updatedRows.Length))) {
|
|
result = (result + this._vGroupUserTableAdapter.Update(updatedRows));
|
|
allChangedRows.AddRange(updatedRows);
|
|
}
|
|
}
|
|
if ((this._jobReportTableAdapter != null)) {
|
|
global::System.Data.DataRow[] updatedRows = dataSet.JobReport.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
|
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
|
if (((updatedRows != null)
|
|
&& (0 < updatedRows.Length))) {
|
|
result = (result + this._jobReportTableAdapter.Update(updatedRows));
|
|
allChangedRows.AddRange(updatedRows);
|
|
}
|
|
}
|
|
return result;
|
|
}
|
|
|
|
/// <summary>
|
|
///Insert rows in top-down order.
|
|
///</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private int UpdateInsertedRows(dsMSSQL dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
|
|
int result = 0;
|
|
if ((this._usersTableAdapter != null)) {
|
|
global::System.Data.DataRow[] addedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
if (((addedRows != null)
|
|
&& (0 < addedRows.Length))) {
|
|
result = (result + this._usersTableAdapter.Update(addedRows));
|
|
allAddedRows.AddRange(addedRows);
|
|
}
|
|
}
|
|
if ((this._projectsTableAdapter != null)) {
|
|
global::System.Data.DataRow[] addedRows = dataSet.Projects.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
if (((addedRows != null)
|
|
&& (0 < addedRows.Length))) {
|
|
result = (result + this._projectsTableAdapter.Update(addedRows));
|
|
allAddedRows.AddRange(addedRows);
|
|
}
|
|
}
|
|
if ((this._itemsTableAdapter != null)) {
|
|
global::System.Data.DataRow[] addedRows = dataSet.Items.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
if (((addedRows != null)
|
|
&& (0 < addedRows.Length))) {
|
|
result = (result + this._itemsTableAdapter.Update(addedRows));
|
|
allAddedRows.AddRange(addedRows);
|
|
}
|
|
}
|
|
if ((this._inventoryTableAdapter != null)) {
|
|
global::System.Data.DataRow[] addedRows = dataSet.Inventory.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
if (((addedRows != null)
|
|
&& (0 < addedRows.Length))) {
|
|
result = (result + this._inventoryTableAdapter.Update(addedRows));
|
|
allAddedRows.AddRange(addedRows);
|
|
}
|
|
}
|
|
if ((this._lineCodeTableAdapter != null)) {
|
|
global::System.Data.DataRow[] addedRows = dataSet.LineCode.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
if (((addedRows != null)
|
|
&& (0 < addedRows.Length))) {
|
|
result = (result + this._lineCodeTableAdapter.Update(addedRows));
|
|
allAddedRows.AddRange(addedRows);
|
|
}
|
|
}
|
|
if ((this._userGroupTableAdapter != null)) {
|
|
global::System.Data.DataRow[] addedRows = dataSet.UserGroup.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
if (((addedRows != null)
|
|
&& (0 < addedRows.Length))) {
|
|
result = (result + this._userGroupTableAdapter.Update(addedRows));
|
|
allAddedRows.AddRange(addedRows);
|
|
}
|
|
}
|
|
if ((this._sPMasterTableAdapter != null)) {
|
|
global::System.Data.DataRow[] addedRows = dataSet.SPMaster.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
if (((addedRows != null)
|
|
&& (0 < addedRows.Length))) {
|
|
result = (result + this._sPMasterTableAdapter.Update(addedRows));
|
|
allAddedRows.AddRange(addedRows);
|
|
}
|
|
}
|
|
if ((this._eETGW_GroupUserTableAdapter != null)) {
|
|
global::System.Data.DataRow[] addedRows = dataSet.EETGW_GroupUser.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
if (((addedRows != null)
|
|
&& (0 < addedRows.Length))) {
|
|
result = (result + this._eETGW_GroupUserTableAdapter.Update(addedRows));
|
|
allAddedRows.AddRange(addedRows);
|
|
}
|
|
}
|
|
if ((this._vGroupUserTableAdapter != null)) {
|
|
global::System.Data.DataRow[] addedRows = dataSet.vGroupUser.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
if (((addedRows != null)
|
|
&& (0 < addedRows.Length))) {
|
|
result = (result + this._vGroupUserTableAdapter.Update(addedRows));
|
|
allAddedRows.AddRange(addedRows);
|
|
}
|
|
}
|
|
if ((this._jobReportTableAdapter != null)) {
|
|
global::System.Data.DataRow[] addedRows = dataSet.JobReport.Select(null, null, global::System.Data.DataViewRowState.Added);
|
|
if (((addedRows != null)
|
|
&& (0 < addedRows.Length))) {
|
|
result = (result + this._jobReportTableAdapter.Update(addedRows));
|
|
allAddedRows.AddRange(addedRows);
|
|
}
|
|
}
|
|
return result;
|
|
}
|
|
|
|
/// <summary>
|
|
///Delete rows in bottom-up order.
|
|
///</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private int UpdateDeletedRows(dsMSSQL dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
|
|
int result = 0;
|
|
if ((this._jobReportTableAdapter != null)) {
|
|
global::System.Data.DataRow[] deletedRows = dataSet.JobReport.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
if (((deletedRows != null)
|
|
&& (0 < deletedRows.Length))) {
|
|
result = (result + this._jobReportTableAdapter.Update(deletedRows));
|
|
allChangedRows.AddRange(deletedRows);
|
|
}
|
|
}
|
|
if ((this._vGroupUserTableAdapter != null)) {
|
|
global::System.Data.DataRow[] deletedRows = dataSet.vGroupUser.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
if (((deletedRows != null)
|
|
&& (0 < deletedRows.Length))) {
|
|
result = (result + this._vGroupUserTableAdapter.Update(deletedRows));
|
|
allChangedRows.AddRange(deletedRows);
|
|
}
|
|
}
|
|
if ((this._eETGW_GroupUserTableAdapter != null)) {
|
|
global::System.Data.DataRow[] deletedRows = dataSet.EETGW_GroupUser.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
if (((deletedRows != null)
|
|
&& (0 < deletedRows.Length))) {
|
|
result = (result + this._eETGW_GroupUserTableAdapter.Update(deletedRows));
|
|
allChangedRows.AddRange(deletedRows);
|
|
}
|
|
}
|
|
if ((this._sPMasterTableAdapter != null)) {
|
|
global::System.Data.DataRow[] deletedRows = dataSet.SPMaster.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
if (((deletedRows != null)
|
|
&& (0 < deletedRows.Length))) {
|
|
result = (result + this._sPMasterTableAdapter.Update(deletedRows));
|
|
allChangedRows.AddRange(deletedRows);
|
|
}
|
|
}
|
|
if ((this._userGroupTableAdapter != null)) {
|
|
global::System.Data.DataRow[] deletedRows = dataSet.UserGroup.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
if (((deletedRows != null)
|
|
&& (0 < deletedRows.Length))) {
|
|
result = (result + this._userGroupTableAdapter.Update(deletedRows));
|
|
allChangedRows.AddRange(deletedRows);
|
|
}
|
|
}
|
|
if ((this._lineCodeTableAdapter != null)) {
|
|
global::System.Data.DataRow[] deletedRows = dataSet.LineCode.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
if (((deletedRows != null)
|
|
&& (0 < deletedRows.Length))) {
|
|
result = (result + this._lineCodeTableAdapter.Update(deletedRows));
|
|
allChangedRows.AddRange(deletedRows);
|
|
}
|
|
}
|
|
if ((this._inventoryTableAdapter != null)) {
|
|
global::System.Data.DataRow[] deletedRows = dataSet.Inventory.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
if (((deletedRows != null)
|
|
&& (0 < deletedRows.Length))) {
|
|
result = (result + this._inventoryTableAdapter.Update(deletedRows));
|
|
allChangedRows.AddRange(deletedRows);
|
|
}
|
|
}
|
|
if ((this._itemsTableAdapter != null)) {
|
|
global::System.Data.DataRow[] deletedRows = dataSet.Items.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
if (((deletedRows != null)
|
|
&& (0 < deletedRows.Length))) {
|
|
result = (result + this._itemsTableAdapter.Update(deletedRows));
|
|
allChangedRows.AddRange(deletedRows);
|
|
}
|
|
}
|
|
if ((this._projectsTableAdapter != null)) {
|
|
global::System.Data.DataRow[] deletedRows = dataSet.Projects.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
if (((deletedRows != null)
|
|
&& (0 < deletedRows.Length))) {
|
|
result = (result + this._projectsTableAdapter.Update(deletedRows));
|
|
allChangedRows.AddRange(deletedRows);
|
|
}
|
|
}
|
|
if ((this._usersTableAdapter != null)) {
|
|
global::System.Data.DataRow[] deletedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
|
if (((deletedRows != null)
|
|
&& (0 < deletedRows.Length))) {
|
|
result = (result + this._usersTableAdapter.Update(deletedRows));
|
|
allChangedRows.AddRange(deletedRows);
|
|
}
|
|
}
|
|
return result;
|
|
}
|
|
|
|
/// <summary>
|
|
///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
|
|
///</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
|
|
if (((updatedRows == null)
|
|
|| (updatedRows.Length < 1))) {
|
|
return updatedRows;
|
|
}
|
|
if (((allAddedRows == null)
|
|
|| (allAddedRows.Count < 1))) {
|
|
return updatedRows;
|
|
}
|
|
global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
|
|
for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
|
|
global::System.Data.DataRow row = updatedRows[i];
|
|
if ((allAddedRows.Contains(row) == false)) {
|
|
realUpdatedRows.Add(row);
|
|
}
|
|
}
|
|
return realUpdatedRows.ToArray();
|
|
}
|
|
|
|
/// <summary>
|
|
///Update all changes to the dataset.
|
|
///</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public virtual int UpdateAll(dsMSSQL dataSet) {
|
|
if ((dataSet == null)) {
|
|
throw new global::System.ArgumentNullException("dataSet");
|
|
}
|
|
if ((dataSet.HasChanges() == false)) {
|
|
return 0;
|
|
}
|
|
if (((this._usersTableAdapter != null)
|
|
&& (this.MatchTableAdapterConnection(this._usersTableAdapter.Connection) == false))) {
|
|
throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다.");
|
|
}
|
|
if (((this._projectsTableAdapter != null)
|
|
&& (this.MatchTableAdapterConnection(this._projectsTableAdapter.Connection) == false))) {
|
|
throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다.");
|
|
}
|
|
if (((this._itemsTableAdapter != null)
|
|
&& (this.MatchTableAdapterConnection(this._itemsTableAdapter.Connection) == false))) {
|
|
throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다.");
|
|
}
|
|
if (((this._inventoryTableAdapter != null)
|
|
&& (this.MatchTableAdapterConnection(this._inventoryTableAdapter.Connection) == false))) {
|
|
throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다.");
|
|
}
|
|
if (((this._lineCodeTableAdapter != null)
|
|
&& (this.MatchTableAdapterConnection(this._lineCodeTableAdapter.Connection) == false))) {
|
|
throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다.");
|
|
}
|
|
if (((this._userGroupTableAdapter != null)
|
|
&& (this.MatchTableAdapterConnection(this._userGroupTableAdapter.Connection) == false))) {
|
|
throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다.");
|
|
}
|
|
if (((this._sPMasterTableAdapter != null)
|
|
&& (this.MatchTableAdapterConnection(this._sPMasterTableAdapter.Connection) == false))) {
|
|
throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다.");
|
|
}
|
|
if (((this._eETGW_GroupUserTableAdapter != null)
|
|
&& (this.MatchTableAdapterConnection(this._eETGW_GroupUserTableAdapter.Connection) == false))) {
|
|
throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다.");
|
|
}
|
|
if (((this._vGroupUserTableAdapter != null)
|
|
&& (this.MatchTableAdapterConnection(this._vGroupUserTableAdapter.Connection) == false))) {
|
|
throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다.");
|
|
}
|
|
if (((this._jobReportTableAdapter != null)
|
|
&& (this.MatchTableAdapterConnection(this._jobReportTableAdapter.Connection) == false))) {
|
|
throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다.");
|
|
}
|
|
global::System.Data.IDbConnection workConnection = this.Connection;
|
|
if ((workConnection == null)) {
|
|
throw new global::System.ApplicationException("TableAdapterManager에 연결 정보가 없습니다. 각 TableAdapterManager TableAdapter 속성을 올바른 Tabl" +
|
|
"eAdapter 인스턴스로 설정하십시오.");
|
|
}
|
|
bool workConnOpened = false;
|
|
if (((workConnection.State & global::System.Data.ConnectionState.Broken)
|
|
== global::System.Data.ConnectionState.Broken)) {
|
|
workConnection.Close();
|
|
}
|
|
if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
|
|
workConnection.Open();
|
|
workConnOpened = true;
|
|
}
|
|
global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
|
|
if ((workTransaction == null)) {
|
|
throw new global::System.ApplicationException("트랜잭션을 시작할 수 없습니다. 현재 데이터 연결에서 트랜잭션이 지원되지 않거나 현재 상태에서 트랜잭션을 시작할 수 없습니다.");
|
|
}
|
|
global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
|
|
global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
|
|
global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
|
|
global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
|
|
int result = 0;
|
|
global::System.Data.DataSet backupDataSet = null;
|
|
if (this.BackupDataSetBeforeUpdate) {
|
|
backupDataSet = new global::System.Data.DataSet();
|
|
backupDataSet.Merge(dataSet);
|
|
}
|
|
try {
|
|
// ---- Prepare for update -----------
|
|
//
|
|
if ((this._usersTableAdapter != null)) {
|
|
revertConnections.Add(this._usersTableAdapter, this._usersTableAdapter.Connection);
|
|
this._usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
this._usersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
if (this._usersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
this._usersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
adaptersWithAcceptChangesDuringUpdate.Add(this._usersTableAdapter.Adapter);
|
|
}
|
|
}
|
|
if ((this._projectsTableAdapter != null)) {
|
|
revertConnections.Add(this._projectsTableAdapter, this._projectsTableAdapter.Connection);
|
|
this._projectsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
this._projectsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
if (this._projectsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
this._projectsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
adaptersWithAcceptChangesDuringUpdate.Add(this._projectsTableAdapter.Adapter);
|
|
}
|
|
}
|
|
if ((this._itemsTableAdapter != null)) {
|
|
revertConnections.Add(this._itemsTableAdapter, this._itemsTableAdapter.Connection);
|
|
this._itemsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
this._itemsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
if (this._itemsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
this._itemsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
adaptersWithAcceptChangesDuringUpdate.Add(this._itemsTableAdapter.Adapter);
|
|
}
|
|
}
|
|
if ((this._inventoryTableAdapter != null)) {
|
|
revertConnections.Add(this._inventoryTableAdapter, this._inventoryTableAdapter.Connection);
|
|
this._inventoryTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
this._inventoryTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
if (this._inventoryTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
this._inventoryTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
adaptersWithAcceptChangesDuringUpdate.Add(this._inventoryTableAdapter.Adapter);
|
|
}
|
|
}
|
|
if ((this._lineCodeTableAdapter != null)) {
|
|
revertConnections.Add(this._lineCodeTableAdapter, this._lineCodeTableAdapter.Connection);
|
|
this._lineCodeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
this._lineCodeTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
if (this._lineCodeTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
this._lineCodeTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
adaptersWithAcceptChangesDuringUpdate.Add(this._lineCodeTableAdapter.Adapter);
|
|
}
|
|
}
|
|
if ((this._userGroupTableAdapter != null)) {
|
|
revertConnections.Add(this._userGroupTableAdapter, this._userGroupTableAdapter.Connection);
|
|
this._userGroupTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
this._userGroupTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
if (this._userGroupTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
this._userGroupTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
adaptersWithAcceptChangesDuringUpdate.Add(this._userGroupTableAdapter.Adapter);
|
|
}
|
|
}
|
|
if ((this._sPMasterTableAdapter != null)) {
|
|
revertConnections.Add(this._sPMasterTableAdapter, this._sPMasterTableAdapter.Connection);
|
|
this._sPMasterTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
this._sPMasterTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
if (this._sPMasterTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
this._sPMasterTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
adaptersWithAcceptChangesDuringUpdate.Add(this._sPMasterTableAdapter.Adapter);
|
|
}
|
|
}
|
|
if ((this._eETGW_GroupUserTableAdapter != null)) {
|
|
revertConnections.Add(this._eETGW_GroupUserTableAdapter, this._eETGW_GroupUserTableAdapter.Connection);
|
|
this._eETGW_GroupUserTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
this._eETGW_GroupUserTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
if (this._eETGW_GroupUserTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
this._eETGW_GroupUserTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
adaptersWithAcceptChangesDuringUpdate.Add(this._eETGW_GroupUserTableAdapter.Adapter);
|
|
}
|
|
}
|
|
if ((this._vGroupUserTableAdapter != null)) {
|
|
revertConnections.Add(this._vGroupUserTableAdapter, this._vGroupUserTableAdapter.Connection);
|
|
this._vGroupUserTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
this._vGroupUserTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
if (this._vGroupUserTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
this._vGroupUserTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
adaptersWithAcceptChangesDuringUpdate.Add(this._vGroupUserTableAdapter.Adapter);
|
|
}
|
|
}
|
|
if ((this._jobReportTableAdapter != null)) {
|
|
revertConnections.Add(this._jobReportTableAdapter, this._jobReportTableAdapter.Connection);
|
|
this._jobReportTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
|
|
this._jobReportTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
|
|
if (this._jobReportTableAdapter.Adapter.AcceptChangesDuringUpdate) {
|
|
this._jobReportTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
|
|
adaptersWithAcceptChangesDuringUpdate.Add(this._jobReportTableAdapter.Adapter);
|
|
}
|
|
}
|
|
//
|
|
//---- Perform updates -----------
|
|
//
|
|
if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
|
|
result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
|
|
result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
|
|
}
|
|
else {
|
|
result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
|
|
result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
|
|
}
|
|
result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
|
|
//
|
|
//---- Commit updates -----------
|
|
//
|
|
workTransaction.Commit();
|
|
if ((0 < allAddedRows.Count)) {
|
|
global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
|
|
allAddedRows.CopyTo(rows);
|
|
for (int i = 0; (i < rows.Length); i = (i + 1)) {
|
|
global::System.Data.DataRow row = rows[i];
|
|
row.AcceptChanges();
|
|
}
|
|
}
|
|
if ((0 < allChangedRows.Count)) {
|
|
global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
|
|
allChangedRows.CopyTo(rows);
|
|
for (int i = 0; (i < rows.Length); i = (i + 1)) {
|
|
global::System.Data.DataRow row = rows[i];
|
|
row.AcceptChanges();
|
|
}
|
|
}
|
|
}
|
|
catch (global::System.Exception ex) {
|
|
workTransaction.Rollback();
|
|
// ---- Restore the dataset -----------
|
|
if (this.BackupDataSetBeforeUpdate) {
|
|
global::System.Diagnostics.Debug.Assert((backupDataSet != null));
|
|
dataSet.Clear();
|
|
dataSet.Merge(backupDataSet);
|
|
}
|
|
else {
|
|
if ((0 < allAddedRows.Count)) {
|
|
global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
|
|
allAddedRows.CopyTo(rows);
|
|
for (int i = 0; (i < rows.Length); i = (i + 1)) {
|
|
global::System.Data.DataRow row = rows[i];
|
|
row.AcceptChanges();
|
|
row.SetAdded();
|
|
}
|
|
}
|
|
}
|
|
throw ex;
|
|
}
|
|
finally {
|
|
if (workConnOpened) {
|
|
workConnection.Close();
|
|
}
|
|
if ((this._usersTableAdapter != null)) {
|
|
this._usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._usersTableAdapter]));
|
|
this._usersTableAdapter.Transaction = null;
|
|
}
|
|
if ((this._projectsTableAdapter != null)) {
|
|
this._projectsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._projectsTableAdapter]));
|
|
this._projectsTableAdapter.Transaction = null;
|
|
}
|
|
if ((this._itemsTableAdapter != null)) {
|
|
this._itemsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._itemsTableAdapter]));
|
|
this._itemsTableAdapter.Transaction = null;
|
|
}
|
|
if ((this._inventoryTableAdapter != null)) {
|
|
this._inventoryTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._inventoryTableAdapter]));
|
|
this._inventoryTableAdapter.Transaction = null;
|
|
}
|
|
if ((this._lineCodeTableAdapter != null)) {
|
|
this._lineCodeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._lineCodeTableAdapter]));
|
|
this._lineCodeTableAdapter.Transaction = null;
|
|
}
|
|
if ((this._userGroupTableAdapter != null)) {
|
|
this._userGroupTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._userGroupTableAdapter]));
|
|
this._userGroupTableAdapter.Transaction = null;
|
|
}
|
|
if ((this._sPMasterTableAdapter != null)) {
|
|
this._sPMasterTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._sPMasterTableAdapter]));
|
|
this._sPMasterTableAdapter.Transaction = null;
|
|
}
|
|
if ((this._eETGW_GroupUserTableAdapter != null)) {
|
|
this._eETGW_GroupUserTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._eETGW_GroupUserTableAdapter]));
|
|
this._eETGW_GroupUserTableAdapter.Transaction = null;
|
|
}
|
|
if ((this._vGroupUserTableAdapter != null)) {
|
|
this._vGroupUserTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._vGroupUserTableAdapter]));
|
|
this._vGroupUserTableAdapter.Transaction = null;
|
|
}
|
|
if ((this._jobReportTableAdapter != null)) {
|
|
this._jobReportTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._jobReportTableAdapter]));
|
|
this._jobReportTableAdapter.Transaction = null;
|
|
}
|
|
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
|
|
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
|
|
adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
|
|
for (int i = 0; (i < adapters.Length); i = (i + 1)) {
|
|
global::System.Data.Common.DataAdapter adapter = adapters[i];
|
|
adapter.AcceptChangesDuringUpdate = true;
|
|
}
|
|
}
|
|
}
|
|
return result;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
|
|
global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
|
|
if ((this._connection != null)) {
|
|
return true;
|
|
}
|
|
if (((this.Connection == null)
|
|
|| (inputConnection == null))) {
|
|
return true;
|
|
}
|
|
if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
/// <summary>
|
|
///Update Order Option
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public enum UpdateOrderOption {
|
|
|
|
InsertUpdateDelete = 0,
|
|
|
|
UpdateInsertDelete = 1,
|
|
}
|
|
|
|
/// <summary>
|
|
///Used to sort self-referenced table's rows
|
|
///</summary>
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
|
|
|
|
private global::System.Data.DataRelation _relation;
|
|
|
|
private int _childFirst;
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
|
|
this._relation = relation;
|
|
if (childFirst) {
|
|
this._childFirst = -1;
|
|
}
|
|
else {
|
|
this._childFirst = 1;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
|
|
global::System.Diagnostics.Debug.Assert((row != null));
|
|
global::System.Data.DataRow root = row;
|
|
distance = 0;
|
|
|
|
global::System.Collections.Generic.IDictionary<global::System.Data.DataRow, global::System.Data.DataRow> traversedRows = new global::System.Collections.Generic.Dictionary<global::System.Data.DataRow, global::System.Data.DataRow>();
|
|
traversedRows[row] = row;
|
|
|
|
global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
|
|
for (
|
|
; ((parent != null)
|
|
&& (traversedRows.ContainsKey(parent) == false));
|
|
) {
|
|
distance = (distance + 1);
|
|
root = parent;
|
|
traversedRows[parent] = parent;
|
|
parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
|
|
}
|
|
|
|
if ((distance == 0)) {
|
|
traversedRows.Clear();
|
|
traversedRows[row] = row;
|
|
parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
|
|
for (
|
|
; ((parent != null)
|
|
&& (traversedRows.ContainsKey(parent) == false));
|
|
) {
|
|
distance = (distance + 1);
|
|
root = parent;
|
|
traversedRows[parent] = parent;
|
|
parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
|
|
}
|
|
}
|
|
|
|
return root;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
|
public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
|
|
if (object.ReferenceEquals(row1, row2)) {
|
|
return 0;
|
|
}
|
|
if ((row1 == null)) {
|
|
return -1;
|
|
}
|
|
if ((row2 == null)) {
|
|
return 1;
|
|
}
|
|
|
|
int distance1 = 0;
|
|
global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
|
|
|
|
int distance2 = 0;
|
|
global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
|
|
|
|
if (object.ReferenceEquals(root1, root2)) {
|
|
return (this._childFirst * distance1.CompareTo(distance2));
|
|
}
|
|
else {
|
|
global::System.Diagnostics.Debug.Assert(((root1.Table != null)
|
|
&& (root2.Table != null)));
|
|
if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
|
|
return -1;
|
|
}
|
|
else {
|
|
return 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#pragma warning restore 1591 |