📄 codemakerm.cs
字号:
else
{
rowArray = columnInfoDt.Select();
}
List<LTP.CodeHelper.ColumnInfo> list2 = new List<LTP.CodeHelper.ColumnInfo>();
foreach (DataRow row in rowArray)
{
string str2 = row["Colorder"].ToString();
string str3 = row["ColumnName"].ToString();
string str4 = row["TypeName"].ToString();
string str5 = row["IsIdentity"].ToString();
string str6 = row["IsPK"].ToString();
string str7 = row["Length"].ToString();
string str8 = row["Preci"].ToString();
string str9 = row["Scale"].ToString();
string str10 = row["cisNull"].ToString();
string str11 = row["DefaultVal"].ToString();
string str12 = row["DeText"].ToString();
LTP.CodeHelper.ColumnInfo item = new LTP.CodeHelper.ColumnInfo();
item.Colorder = str2;
item.ColumnName = str3;
item.TypeName = str4;
item.IsIdentity = str5 == "√";
item.IsPK = str6 == "√";
item.Length = str7;
item.Preci = str8;
item.Scale = str9;
item.cisNull = str10 == "√";
item.DefaultVal = str11;
item.DeText = str12;
list2.Add(item);
}
return list2;
}
private List<LTP.CodeHelper.ColumnInfo> GetKeyFieldsS()
{
DataRow[] rowArray;
string text = this.cmbox_STab.Text;
DataTable columnInfoDt = CodeCommon.GetColumnInfoDt(this.dbobj.GetColumnInfoList(this.dbname, text));
StringPlus plus = new StringPlus();
plus.Append("'" + this.cmbox_SField.Text + "'");
if (columnInfoDt == null)
{
return null;
}
if (plus.Value.Length > 0)
{
rowArray = columnInfoDt.Select("ColumnName in (" + plus.Value + ")", "colorder asc");
}
else
{
rowArray = columnInfoDt.Select();
}
List<LTP.CodeHelper.ColumnInfo> list2 = new List<LTP.CodeHelper.ColumnInfo>();
foreach (DataRow row in rowArray)
{
string str2 = row["Colorder"].ToString();
string str3 = row["ColumnName"].ToString();
string str4 = row["TypeName"].ToString();
string str5 = row["IsIdentity"].ToString();
string str6 = row["IsPK"].ToString();
string str7 = row["Length"].ToString();
string str8 = row["Preci"].ToString();
string str9 = row["Scale"].ToString();
string str10 = row["cisNull"].ToString();
string str11 = row["DefaultVal"].ToString();
string str12 = row["DeText"].ToString();
LTP.CodeHelper.ColumnInfo item = new LTP.CodeHelper.ColumnInfo();
item.Colorder = str2;
item.ColumnName = str3;
item.TypeName = str4;
item.IsIdentity = str5 == "√";
item.IsPK = str6 == "√";
item.Length = str7;
item.Preci = str8;
item.Scale = str9;
item.cisNull = str10 == "√";
item.DefaultVal = str11;
item.DeText = str12;
list2.Add(item);
}
return list2;
}
private void InitializeComponent()
{
this.components = new Container();
ComponentResourceManager manager = new ComponentResourceManager(typeof(CodeMakerM));
this.tabControl1 = new TabControl();
this.tabPage3 = new TabPage();
this.btn_Next = new Button();
this.panel1 = new Panel();
this.groupBox1 = new GroupBox();
this.label8 = new Label();
this.txtClassName2 = new TextBox();
this.listView1 = new ListView();
this.label14 = new Label();
this.listView2 = new ListView();
this.txtClassName = new TextBox();
this.cmbox_PTab = new ComboBox();
this.label3 = new Label();
this.cmbox_PField = new ComboBox();
this.label9 = new Label();
this.cmbox_STab = new ComboBox();
this.label12 = new Label();
this.cmbox_SField = new ComboBox();
this.label11 = new Label();
this.btn_SelAll = new Button();
this.label13 = new Label();
this.btn_SelAll2 = new Button();
this.label10 = new Label();
this.btn_SelI = new Button();
this.btn_SelI2 = new Button();
this.tabPage1 = new TabPage();
this.panel2 = new Panel();
this.btn_Ok = new Button();
this.groupBox_Web = new GroupBox();
this.chk_Web_Show = new CheckBox();
this.chk_Web_Update = new CheckBox();
this.chk_Web_HasKey = new CheckBox();
this.chk_Web_Add = new CheckBox();
this.radbtn_Web_AspxCS = new RadioButton();
this.radbtn_Web_Aspx = new RadioButton();
this.groupBox_AppType = new GroupBox();
this.radbtn_AppType_Winform = new RadioButton();
this.radbtn_AppType_Web = new RadioButton();
this.groupBox_Method = new GroupBox();
this.chk_CS_GetList = new CheckBox();
this.chk_CS_GetModelByCache = new CheckBox();
this.chk_CS_GetModel = new CheckBox();
this.chk_CS_Delete = new CheckBox();
this.chk_CS_Update = new CheckBox();
this.chk_CS_Add = new CheckBox();
this.chk_CS_Exists = new CheckBox();
this.groupBox_DALType = new GroupBox();
this.groupBox_F3 = new GroupBox();
this.radbtn_F3_BLL = new RadioButton();
this.radbtn_F3_DALFactory = new RadioButton();
this.radbtn_F3_IDAL = new RadioButton();
this.radbtn_F3_DAL = new RadioButton();
this.radbtn_F3_Model = new RadioButton();
this.groupBox_FrameSel = new GroupBox();
this.radbtn_Frame_F3 = new RadioButton();
this.radbtn_Frame_S3 = new RadioButton();
this.radbtn_Frame_One = new RadioButton();
this.groupBox_DB = new GroupBox();
this.chk_DB_GetList = new CheckBox();
this.chk_DB_GetModel = new CheckBox();
this.chk_DB_Delete = new CheckBox();
this.chk_DB_Update = new CheckBox();
this.chk_DB_Add = new CheckBox();
this.chk_DB_Exists = new CheckBox();
this.chk_DB_GetMaxID = new CheckBox();
this.txtTabname = new TextBox();
this.txtProcPrefix = new TextBox();
this.label6 = new Label();
this.label7 = new Label();
this.label5 = new Label();
this.radbtn_DB_DDL = new RadioButton();
this.radbtn_DB_Proc = new RadioButton();
this.groupBox_Type = new GroupBox();
this.radbtn_Type_Web = new RadioButton();
this.radbtn_Type_CS = new RadioButton();
this.radbtn_Type_DB = new RadioButton();
this.groupBox_Parameter = new GroupBox();
this.txtNameSpace2 = new TextBox();
this.txtNameSpace = new TextBox();
this.txtProjectName = new TextBox();
this.label4 = new Label();
this.label2 = new Label();
this.label1 = new Label();
this.tabPage2 = new TabPage();
this.imgListTabpage = new ImageList(this.components);
this.imglistDB = new ImageList(this.components);
this.imglistView = new ImageList(this.components);
this.toolStripButton2 = new ToolStripButton();
this.toolStripSeparator1 = new ToolStripSeparator();
this.toolStripSplitButton1 = new ToolStripSplitButton();
this.列表ToolStripMenuItem = new ToolStripMenuItem();
this.详细信息ToolStripMenuItem = new ToolStripMenuItem();
this.tabControl1.SuspendLayout();
this.tabPage3.SuspendLayout();
this.panel1.SuspendLayout();
this.groupBox1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.panel2.SuspendLayout();
this.groupBox_Web.SuspendLayout();
this.groupBox_AppType.SuspendLayout();
this.groupBox_Method.SuspendLayout();
this.groupBox_F3.SuspendLayout();
this.groupBox_FrameSel.SuspendLayout();
this.groupBox_DB.SuspendLayout();
this.groupBox_Type.SuspendLayout();
this.groupBox_Parameter.SuspendLayout();
base.SuspendLayout();
this.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Dock = DockStyle.Fill;
this.tabControl1.ImageList = this.imgListTabpage;
this.tabControl1.Location = new Point(0, 0);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new Size(0x27b, 0x281);
this.tabControl1.TabIndex = 0;
this.tabPage3.Controls.Add(this.btn_Next);
this.tabPage3.Controls.Add(this.panel1);
this.tabPage3.ImageIndex = 2;
this.tabPage3.Location = new Point(4, 0x17);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Size = new Size(0x273, 0x266);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "数据源";
this.tabPage3.UseVisualStyleBackColor = true;
this.btn_Next.Location = new Point(0x1d9, 0x11b);
this.btn_Next.Name = "btn_Next";
this.btn_Next.Size = new Size(0x52, 0x17);
this.btn_Next.TabIndex = 3;
this.btn_Next.Text = "继续设置>>";
this.btn_Next.UseVisualStyleBackColor = true;
this.btn_Next.Click += new EventHandler(this.btn_Next_Click);
this.panel1.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
this.panel1.Controls.Add(this.groupBox1);
this.panel1.Location = new Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new Size(0x270, 0x115);
this.panel1.TabIndex = 2;
this.groupBox1.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
this.groupBox1.Controls.Add(this.label8);
this.groupBox1.Controls.Add(this.txtClassName2);
this.groupBox1.Controls.Add(this.listView1);
this.groupBox1.Controls.Add(this.label14);
this.groupBox1.Controls.Add(this.listView2);
this.groupBox1.Controls.Add(this.txtClassName);
this.groupBox1.Controls.Add(this.cmbox_PTab);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.cmbox_PField);
this.groupBox1.Controls.Add(this.label9);
this.groupBox1.Controls.Add(this.cmbox_STab);
this.groupBox1.Controls.Add(this.label12);
this.groupBox1.Controls.Add(this.cmbox_SField);
this.groupBox1.Controls.Add(this.label11);
this.groupBox1.Controls.Add(this.btn_SelAll);
this.groupBox1.Controls.Add(this.label13);
this.groupBox1.Controls.Add(this.btn_SelAll2);
this.groupBox1.Controls.Add(this.label10);
this.groupBox1.Controls.Add(this.btn_SelI);
this.groupBox1.Controls.Add(this.btn_SelI2);
this.groupBox1.Location = new Point(8, 7);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new Size(0x263, 0x108);
this.groupBox1.TabIndex = 5;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "选择表与字段";
this.label8.AutoSize = true;
this.label8.Location = new Point(0x27, 0x19);
this.label8.Name = "label8";
this.label8.Size = new Size(0x29, 12);
this.label8.TabIndex = 2;
this.label8.Text = "父表:";
this.txtClassName2.Location = new Point(400, 230);
this.txtClassName2.Name = "txtClassName2";
this.txtClassName2.Size = new Size(200, 0x15);
this.txtClassName2.TabIndex = 4;
this.listView1.Location = new Point(0x56, 0x33);
this.listView1.Name = "listView1";
this.listView1.Size = new Size(200, 0x93);
this.listView1.TabIndex = 0;
this.listView1.UseCompatibleStateImageBehavior = false;
this.label14.AutoSize = true;
this.label14.Location = new Point(0x143, 0xed);
this.label14.Name = "label14";
this.label14.Size = new Size(0x47, 12);
this.label14.TabIndex = 3;
this.label14.Text = "类名:";
this.listView2.Location = new Point(400, 0x33);
this.listView2.Name = "listView2";
this.listView2.Size = new Size(200, 0x93);
this.listView2.TabIndex = 0;
this.listView2.UseCompatibleStateImageBehavior = false;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -