//查询用户信息 private EI.EIInfo queryUser() { //this.//EFMsgInfo = ""; EI.EIInfo inblk = new EI.EIInfo(); EI.EIInfo outblk = new EI.EIInfo(); inblk.SetColName(1, "ename"); inblk.SetColName(2, "cname"); inblk.SetColName(3, "userid"); inblk.SetColName(4, "dept_ename"); inblk.SetColName(5, "q_appname"); inblk.SetColName(6, "page_index"); inblk.SetColVal(1, "cname", userCname); inblk.SetColVal(1, "ename", userEname); inblk.SetColVal(1, "userid", "XXLoginUserIDXX"); inblk.SetColVal(1, "dept_ename", userDeptName); inblk.SetColVal(1, "q_appname", fgDevComboBoxEditApp.EditValue.ToString().Split(':')[0]); inblk.SetColVal(1, "page_index", pageIndex); outblk = EI.EITuxedo.CallService("epesuser_inq2", inblk); dataSetEPESSUBJ.TESUSERINFO.Clear(); outblk.ConvertToStrongType(dataSetEPESSUBJ); dataSetEPESSUBJ.TESUSERINFO.AcceptChanges(); gridViewUserInfo_FocusedRowChanged(null, null); ShowReturnMsg(outblk); userSaveStatus = 0; return outblk; }
private void QueryForm() { EI.EIInfo inblk = new EI.EIInfo(); EI.EIInfo outblk = new EI.EIInfo(); inblk.SetColName(1, "name"); inblk.SetColName(2, "dllname"); inblk.SetColName(3, "appname"); inblk.SetColName(4, "companycode"); string companyCode = this.comboComp.EditValue.ToString().Split(':')[0]; inblk.SetColVal(1, 1, 1, fgtFormName.Text); inblk.SetColVal(1, 1, 2, fgtDllName.Text); inblk.SetColVal(1, 1, 3, comboApp.EditValue.ToString().Split(':')[0]); inblk.SetColVal(1, 1, 4, companyCode); if (chkAuth.Checked) //未分配到资源组的 { outblk = EI.EITuxedo.CallService("epesform_inq3", inblk); } else if (chkTree.Checked) //未挂到菜单上的 { outblk = EI.EITuxedo.CallService("epesform_inq4", inblk); } else { outblk = EI.EITuxedo.CallService("epesform_inq2", inblk); } ShowReturnMsg(outblk); dataSetESOBJ.TESFORMRESINFO.Rows.Clear(); outblk.ConvertToStrongType(dataSetESOBJ); dataSetESOBJ.TESFORMRESINFO.AcceptChanges(); gridViewFormInfo_FocusedRowChanged_1(null, null); //gridViewFormInfo.BestFitColumns(); }
private void queryOth() { //查询 //this.EFMsgInfo = ""; string type = ""; this.gridViewOthInfo.ClearSorting(); EI.EIInfo inblk = new EI.EIInfo(); EI.EIInfo outblk = new EI.EIInfo(); inblk.SetColName(1, "name"); inblk.SetColName(2, "resourcetype"); inblk.SetColName(3, "appname"); if (fgDevLookUpEditType.EditValue == null) { MessageBox.Show(EP.EPES.EPESC0000146/*获取资源类型失败!*/, EP.EPES.EPESC0000024/*提示*/, MessageBoxButtons.OK, MessageBoxIcon.Error); return; } type = fgDevLookUpEditType.EditValue.ToString(); if (type.Length < 1) { type = "0"; } inblk.SetColVal(1, 1, "name", fgtOthName.Text); inblk.SetColVal(1, 1, "resourcetype", type); inblk.SetColVal(1, 1, "appname", comboApp.EditValue.ToString().Split(':')[0]); if (chkOth.Checked) { outblk = EI.EITuxedo.CallService("epesother_inq3", inblk); } else { outblk = EI.EITuxedo.CallService("epesother_inq", inblk); } dataSetESOBJ.TESOTHERRESINFO.Rows.Clear(); outblk.ConvertToStrongType(dataSetESOBJ); dataSetESOBJ.TESOTHERRESINFO.AcceptChanges(); gridViewOthInfo_FocusedRowChanged(null, null); ShowReturnMsg(outblk); }
private void QueryButton() { if (formName == string.Empty) return; //this.EFMsgInfo = ""; EI.EIInfo inblk = new EI.EIInfo(); EI.EIInfo outblk = new EI.EIInfo(); inblk.SetColName(1, "fname"); inblk.SetColName(2, "appname"); inblk.SetColName(3, "companycode"); string companyCode = this.comboComp.EditValue.ToString().Split(':')[0]; inblk.SetColVal(1, 1, "fname", formName); inblk.SetColVal(1, 1, "appname", appName); inblk.SetColVal(1, 1, "companycode", companyCode); if (chkAuth.Checked) //查询未分配到资源组的按钮 { inblk.SetColVal(1, 1, "fname", fgtFormName.Text); outblk = EI.EITuxedo.CallService("epesbutt_inq3", inblk); } else { outblk = EI.EITuxedo.CallService("epesbutt_inq2", inblk); } ShowReturnMsg(outblk); dataSetESOBJ.TESBUTTONRESINFO.Rows.Clear(); outblk.ConvertToStrongType(dataSetESOBJ); dataSetESOBJ.TESBUTTONRESINFO.AcceptChanges(); //gridViewButtInfo.BestFitColumns(); }