GG_DPS/BaseInFo/frmOperatorMdf.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace GG_DPS
{
public partial class frmOperatorMdf : Form
{
DataSet ds;
DataTable tbx;
ControlDB lnk = new ControlDB();
public string strGroupId=String.Empty;
public string strAccountId=String.Empty;
public frmOperatorMdf()
{
InitializeComponent();
}
private void frmOperatorMdf_Load(object sender, EventArgs e)
{
ds = new DataSet();
ds = lnk.ExecuteToDataSet("Select groupId as '组别代号',groupname as '组别名称' from tblUserGroup", "tb");
this.cbogroup.DataSource = ds.Tables["tb"];
this.cbogroup.DisplayMember = "组别名称";
this.cbogroup.ValueMember = "组别代号";
tbx = lnk.ExecuteToTable("Select accountId as '套帐代号',accountName as '套帐名称' from tblAccountSet");
this.cboaccount.DataSource = tbx;
this.cboaccount.DisplayMember = "套帐名称";
this.cboaccount.ValueMember = "套帐代号";
if (VarDef.flgAddEdit == 2)
{
this.cbogroup.SelectedValue = strGroupId;//
this.cboaccount.SelectedValue = strAccountId;//
txtuserId.ReadOnly = true;
}
else
txtuserId.ReadOnly = false;
VarDef.sAim_Value = new string[1] { this.txtuserId.Text };
}
private void btnSave_Click(object sender, EventArgs e)
{
#region
bool flgSave=false;
if (this.txtuserId.Text.Trim() == "" || this.txtname.Text.Trim() == "" || this.txtpassword.Text.Trim() == "" || this.cbosex.Text.Trim() == "" || this.cbogroup.Text.Trim() == "" || this.cboaccount.Text.Trim()=="")
{
MessageBox.Show("您提交的字段信息似乎不完整!");
this.txtuserId.Focus();
return;
后面还有 67 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
