//btnListUpdate_Click... private void btnListUpdate_Click_Extend(object sender, EventArgs e) { //调用模版提供的默认实现.--默认实现可能会调用相应的Action. NaviteParamter paramter = new NaviteParamter(); paramter.NameValues.Add("EntityFullName", HttpUtility.UrlEncode("UFIDA.U9.Cust.GS.FT.BrokerageBE.BrokerageHead")); paramter.NameValues.Add("CardFormID", "339398c0-5956-496d-9477-048d5376664f"); IList <IUIRecord> res = this.Model.Views[0].Cache.GetSelectRecord(); List <long> list = new List <long>(); foreach (IUIRecord record in res) { list.Add(Convert.ToInt64(record["MainID"])); } this.CurrentState["BatchModify_EntityIDs"] = list; this.CurrentState["BatchModify_Opath"] = this.Model.Views[0].CurrentFilter.OPath; this.ShowModalDialog("99f1b00a-1dc8-45e3-9331-2352aeeeac3e", "批量修改", "580", "408", this.TaskId.ToString(), paramter.NameValues, false, true); this.Action.NavigateAction.Refresh(null, true); btnListUpdate_Click_DefaultImpl(sender, e); }
private void OnGridRowDbClick_Extend(object sender, UIActionEventArgs e) { UFIDA.U9.UI.PDHelper.NaviteParamter p = new NaviteParamter(); //是正拖的话,这里需用MainID string dataid = this.CurrentModel.SynergyHead.FocusedRecord["ID"].ToString(); if (!string.IsNullOrEmpty(dataid)) { p.NameValues.Add("PDPageStatus", "browser"); p.NameValues.Add("ID", dataid); UFIDA.U9.UI.PDHelper.NavigateManager.NavigatePage(this.CurrentPart, "Cust.GS.FT.SynergyDocUIURI", p); } //List Grid RowDbClic Code Demo... //string DataID = this.CurrentModel.PositionType.FocusedRecord.ID.ToString(); //string CardPageID="Test";//在这里CardPageID表示卡片的URI //OnNavigatCard("Browse", DataID, CardPageID); //调用模版定义的默认实现方法.如需扩展,请直接在此编程. this.OnGridRowDbClick_DefaultImpl(sender, e); }
private void IssueClick(bool isUnIssue) { HBHCommon.HBHCommonUI.UICommonHelper.ClearErrorInfo(_strongPart); //DepartmentRecord focused = _strongPart.Model.Department.FocusedRecord; long[] selectDepts = _strongPart.Model.Department.GetSelectedRecordIDs(); if (selectDepts != null && selectDepts.Length > 0 ) { NaviteParamter naviteParamter = new NaviteParamter(); naviteParamter.NameValues.Add("FromOrg", UFIDA.U9.UI.PDHelper.PDContext.Current.OrgID); naviteParamter.NameValues.Add("EntityType", _strongPart.Model.Department.EntityFullName); naviteParamter.NameValues.Add("UnIssue", isUnIssue.ToString()); //naviteParamter.NameValues.Add("EntityID", focused.ID.ToString()); this._strongPart.CurrentState["HBH_DongHui_EntityIDs"] = selectDepts.ToList(); NavigateManager.ShowModelWebpart(_strongPart, "a03cdb71-d70b-4cf4-96d2-6ea1e7f28ac7", 410, 370, naviteParamter); } else { HBHCommon.HBHCommonUI.UICommonHelper.ShowErrorInfo(_strongPart, "必须指定下发实体!"); } }
private void IssueClick(bool isUnIssue) { HBHCommon.HBHCommonUI.UICommonHelper.ClearErrorInfo(_strongPart); PersonRecord focused = _strongPart.Model.Person.FocusedRecord; if (focused != null) { NaviteParamter naviteParamter = new NaviteParamter(); naviteParamter.NameValues.Add("FromOrg", focused.AttachOrg.GetValueOrDefault(-1).ToString()); naviteParamter.NameValues.Add("EntityType", _strongPart.Model.Person.EntityFullName); naviteParamter.NameValues.Add("UnIssue", isUnIssue.ToString()); //naviteParamter.NameValues.Add("EntityID", focused.ID.ToString()); this._strongPart.CurrentState["HBH_DongHui_EntityIDs"] = new List<long>() { focused.ID }; NavigateManager.ShowModelWebpart(_strongPart, "a03cdb71-d70b-4cf4-96d2-6ea1e7f28ac7", 410, 370, naviteParamter); } else { HBHCommon.HBHCommonUI.UICommonHelper.ShowErrorInfo(_strongPart, "必须指定下发实体!"); } }