// Token: 0x06000457 RID: 1111 RVA: 0x00041FD0 File Offset: 0x000401D0 private void initCombox() { DbUtil dbUtil = new DbUtil(); this.userTypeDataTable = dbUtil.ExecuteQuery("SELECT * FROM userTypeTable ORDER BY typeId ASC"); if (this.userTypeDataTable != null && this.userTypeDataTable.Rows != null && this.userTypeDataTable.Rows.Count > 0) { List <string> list = new List <string>(); for (int i = 0; i < this.userTypeDataTable.Rows.Count; i++) { list.Add(this.userTypeDataTable.Rows[i]["userType"].ToString()); } SettingsUtils.setComboBoxData(list, this.userTypeCB); this.displayFields(this.userTypeDataTable.Rows[0]); } }
// Token: 0x060004ED RID: 1261 RVA: 0x00050E6C File Offset: 0x0004F06C private void staffMdifyEnterBtn_Click(object sender, EventArgs e) { if (this.staffModifyStaffIdTB.Text == "" || this.staffModifyStaffPwdTB.Text == "" || this.staffModifyStaffRePwdTB.Text == "") { WMMessageBox.Show(this, "请输入所有信息!"); return; } if (this.staffModifyStaffPwdTB.Text != this.staffModifyStaffRePwdTB.Text) { WMMessageBox.Show(this, "请检查确认密码,确保两次输入相同!"); return; } DbUtil dbUtil = new DbUtil(); dbUtil.AddParameter("staffId", this.staffModifyStaffIdTB.Text); DataRow dataRow = dbUtil.ExecuteRow("SELECT * FROM staffTable WHERE staffId=@staffId"); if (dataRow == null) { WMMessageBox.Show(this, "该员工ID不存在!"); return; } if (Convert.ToInt64(dataRow[1]) != 0L) { WMMessageBox.Show(this, "该员工账号为注销或停用状态!"); return; } dbUtil.AddParameter("staffId", this.staffModifyStaffIdTB.Text); string md = SettingsUtils.GetMD5(this.staffModifyStaffRePwdTB.Text.Trim()); dbUtil.AddParameter("staffPwd", md); if (WMMessageBox.Show(this, "是否重置员工" + dataRow[3] + "的登录密码?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK) { int num = dbUtil.ExecuteNonQuery("UPDATE staffTable SET staffPwd=@staffPwd WHERE staffId=@staffId"); if (num > 0) { WMMessageBox.Show(this, "密码修改成功!"); } } }
// Token: 0x06000298 RID: 664 RVA: 0x000172EC File Offset: 0x000154EC public void setQueryAction(IQueryAction queryAction) { this.queryAction = queryAction; if (queryAction == null) { return; } this.qces = this.queryAction.getQueryConditionEntitys(); List <string> list = new List <string>(); foreach (QueryConditionEntity queryConditionEntity in this.qces) { list.Add(queryConditionEntity.Key); } SettingsUtils.setComboBoxData(list, this.queryItemCB); if (this.qces[0].OperatorsNum == 2) { SettingsUtils.setComboBoxData(this.op2CN, this.typeCB); return; } SettingsUtils.setComboBoxData(this.op3CN, this.typeCB); }
// Token: 0x06000426 RID: 1062 RVA: 0x0003D76C File Offset: 0x0003B96C private void initCB() { SettingsUtils.setComboBoxData(this.QUERY_CONDITION, this.queryListCB); this.userTypeDataTable = this.db.ExecuteQuery("SELECT * FROM userTypeTable ORDER BY typeId ASC"); this.priceTypeDataTable = this.db.ExecuteQuery("SELECT * FROM priceConsistTable ORDER BY priceConsistId ASC"); if (this.userTypeDataTable != null && this.userTypeDataTable.Rows != null && this.userTypeDataTable.Rows.Count > 0) { List <string> list = new List <string>(); for (int i = 0; i < this.userTypeDataTable.Rows.Count; i++) { list.Add(this.userTypeDataTable.Rows[i]["userType"].ToString()); } SettingsUtils.setComboBoxData(list, this.userTypeCB); } if (this.priceTypeDataTable != null && this.priceTypeDataTable.Rows != null && this.priceTypeDataTable.Rows.Count > 0) { List <string> list2 = new List <string>(); for (int j = 0; j < this.priceTypeDataTable.Rows.Count; j++) { list2.Add(this.priceTypeDataTable.Rows[j]["priceConstistName"].ToString()); } SettingsUtils.setComboBoxData(list2, this.priceTypeCB); } }
// Token: 0x0600039E RID: 926 RVA: 0x0002B3C8 File Offset: 0x000295C8 private void initWidget() { SettingsUtils.setComboBoxData(this.QUERY_CONDITION, this.queryListCB); this.initUserInfoDGV("", ""); this.initPursuitLogDGV(null); }
// Token: 0x060003E1 RID: 993 RVA: 0x00034D45 File Offset: 0x00032F45 public ReplaceCardPage() { this.InitializeComponent(); SettingsUtils.setComboBoxData(WMConstant.UserCardForceStatusList, this.forceStatus_CB); }