private void CreatSql() { List <string> strlst = GetChoiceList(); if (strlst == null || allfeild == null) { return; } if (allfeild.Count == 0) { return; } if (strlst.Count == 0) { return; } rtxb_add_normal.Text = insql.CreatNormalSQL(strlst, BaseName); rtxb_add_param.Text = insql.CreatParamSQL(strlst, BaseName); rtxb_update_normal.Text = updatesql.CreatNormalSQL(strlst, BaseName); rtxb_update_param.Text = updatesql.CreatParamSQL(strlst, BaseName); rtxb_c_con.Text = ocon.CreatCSharpConstructor(allfeild, false); rtxb_c_con2.Text = ocon.CreatCSharpConstructor(allfeild, true); rtxb_j_con.Text = ocon.CreatJavaConstructor(allfeild, false); rtxb_j_con2.Text = ocon.CreatJavaConstructor(allfeild, true); if (txb_obj.Text.Trim().Length > 0) { rtxb_object.Text = ocon.ObjectList(strlst, txb_obj.Text.Trim(), false); rtxb_object2.Text = ocon.ObjectList(strlst, txb_obj.Text.Trim(), true); } else { rtxb_object.Text = ""; rtxb_object2.Text = ""; } }
private void btn_output_Click(object sender, EventArgs e) { List <string> strlst = GetChoice(false); List <string> allfeild = GetChoice(true); if (strlst == null || allfeild == null) { return; } if (strlst.Count == 0 || allfeild.Count == 0) { return; } rtxb_add_normal.Text = insql.CreatNormalSQL(strlst, chooseBaseName); rtxb_add_param.Text = insql.CreatParamSQL(strlst, chooseBaseName); rtxb_update_normal.Text = updatesql.CreatNormalSQL(strlst, chooseBaseName); rtxb_update_param.Text = updatesql.CreatParamSQL(strlst, chooseBaseName); rtxb_c_con.Text = ocon.CreatCSharpConstructor(allfeild, false); rtxb_c_con2.Text = ocon.CreatCSharpConstructor(allfeild, true); rtxb_j_con.Text = ocon.CreatJavaConstructor(allfeild, false); rtxb_j_con2.Text = ocon.CreatJavaConstructor(allfeild, true); if (txb_obj.Text.Trim().Length > 0) { rtxb_object.Text = ocon.ObjectList(strlst, txb_obj.Text.Trim(), false); rtxb_object2.Text = ocon.ObjectList(strlst, txb_obj.Text.Trim(), true); } else { rtxb_object.Text = ""; rtxb_object2.Text = ""; } }