//DataGrid_GridRowDbClicked... private void DataGrid_GridRowDbClicked_Extend(object sender, GridDBClickEventArgs e) { //调用模版提供的默认实现.--默认实现可能会调用相应的Action. DataGrid_GridRowDbClicked_DefaultImpl(sender, e); }
//default implement by tpl ... private void DataGrid_GridRowDbClicked_DefaultImpl(object sender, GridDBClickEventArgs e) { //Template (tpl) Code here... //加入{action.Name}的代码模版:.\UITpls\WebPart\RefCodeBehindCommon.tpl,参数:GridDoubleClick UFIDA.U9.UI.Commands.CommandFactory.DoCommand("ReferenceGridRowDbClicked", this.Action, sender, e); }
//default implement by tpl ... private void DataGrid1_GridRowDbClicked_DefaultImpl(object sender, GridDBClickEventArgs e) { //Template (tpl) Code here... //通用事件模版定义的相应操作内容. Action.OnGridRowDbClick(sender, new UIActionEventArgs()); }
//DataGrid_GridRowDbClicked... private void DataGrid_GridRowDbClicked_Extend(object sender, GridDBClickEventArgs e) { //调用模版提供的默认实现.--默认实现可能会调用相应的Action. DataTable table = new DataTable(); table.Columns.Add("ID", typeof(long)); table.Columns.Add("DocNo", typeof(string)); table.Columns.Add("Date", typeof(DateTime)); table.Columns.Add("Customer", typeof(long)); table.Columns.Add("Customer_Code", typeof(string)); table.Columns.Add("Customer_Name", typeof(string)); table.Columns.Add("Org", typeof(long)); table.Columns.Add("Org_Code", typeof(string)); table.Columns.Add("Org_Name", typeof(string)); table.Columns.Add("Currency", typeof(string)); table.Columns.Add("SalMan", typeof(string)); table.Columns.Add("ParkingType", typeof(string)); table.Columns.Add("BillNoItem", typeof(long)); table.Columns.Add("BillNoItem_Name", typeof(string)); foreach (cRefRecord record in this.Model.cRef.SelectRecords) { DataRow dr = table.NewRow(); dr["ID"] = record.ID; dr["DocNo"] = record.DocNo; dr["Date"] = record.BusinessDate; dr["Customer"] = record.Client_ID; dr["Customer_Code"] = record.Client_Code; dr["Customer_Name"] = record.Client_Name; dr["Org"] = record.GetOrderOrg_ID; dr["Org_Code"] = record.GetOrderOrg_Code; dr["Org_Name"] = record.GetOrderOrg_Name; dr["Currency"] = record.Currency_ID.ToString(); dr["SalMan"] = record.SaleMan_ID.ToString(); dr["ParkingType"] = (record.PackagingType ?? 0).ToString(); dr["BillNoItem"] = record.BillNoItem_ID; dr["BillNoItem_Name"] = record.BillNoItem_BillNoItemID; table.Rows.Add(dr); } this.CurrentState["BillNoAllocationShip"] = table; DataGrid_GridRowDbClicked_DefaultImpl(sender, e); }
//MethodName:DataGrid_GridRowDbClicked ActionName: /// <summary> /// Help Info : {varEvent.Help} /// </summary> public void DataGrid_GridRowDbClicked(object sender, GridDBClickEventArgs e) { OnDataCollect(this); //当前事件先执行数据收集 this.IsDataBinding = true; //当前事件执行后会进行数据绑定 this.IsConsuming = false; try { DataGrid_GridRowDbClicked_Extend(sender, e); } catch (Exception ex) { if (UFSoft.UBF.Exceptions.ExceptionHelper.IsUnknownException(ex, true)) { throw; } IUIModel model = this.Model; this.Model.ErrorMessage.SetErrorMessage(ref model, ex); } }
//DataGrid_GridRowDbClicked... private void DataGrid_GridRowDbClicked_Extend(object sender, GridDBClickEventArgs e) { //调用模版提供的默认实现.--默认实现可能会调用相应的Action. DataTable table = new DataTable(); table.Columns.Add("ID", typeof(long)); table.Columns.Add("Code", typeof(string)); table.Columns.Add("Name", typeof(string)); foreach (cRefRecord record in this.Model.cRef.SelectRecords) { DataRow dr = table.NewRow(); dr["ID"] = record.ID; dr["Code"] = record.BillNoID; dr["Name"] = record.BillNoID; table.Rows.Add(dr); } this.CurrentState["ReturnShipBillNoListID"] = table; DataGrid_GridRowDbClicked_DefaultImpl(sender, e); }
//DataGrid1_GridRowDbClicked... private void DataGrid1_GridRowDbClicked_Extend(object sender, GridDBClickEventArgs e) { //调用模版提供的默认实现.--默认实现可能会调用相应的Action. //DataGrid1_GridRowDbClicked_DefaultImpl(sender,e); U9.VOB.HBHCommon.HBHCommonUI.HBHUIHelper.UIList_GridRowDbClicked(this); }
//DataGrid_GridRowDbClicked... private void DataGrid_GridRowDbClicked_Extend(object sender, GridDBClickEventArgs e) { //调用模版提供的默认实现.--默认实现可能会调用相应的Action. //DataGrid_GridRowDbClicked_DefaultImpl(sender, e); //clsMultiSelect multiSel = new clsMultiSelect(this, MultiSelect_IDModel.RandomID); ////multiSel.Code_Field = this.Model.cRef.FieldCode.Name; ////multiSel.Name_Field = this.Model.cRef.FieldName.Name; //clsMultiSelect.RegistScript((Control)this.TopLevelContainer, base.GetType(), "ReferenceReturn", multiSel.GetScriptNew(), false); ConfirmButton_Click_Extend(sender, e); }
private void DataGrid10_GridRowDbClicked_Extend(object sender, GridDBClickEventArgs e) { DataGrid10_GridRowDbClicked_DefaultImpl(sender, e); }
//DataGrid_GridRowDbClicked... private void DataGrid_GridRowDbClicked_Extend(object sender, GridDBClickEventArgs e) { //调用模版提供的默认实现.--默认实现可能会调用相应的Action. DataGrid_GridRowDbClicked_DefaultImpl(sender,e); }
private void DataGrid5_GridRowDbClicked_Extend(object sender, GridDBClickEventArgs e) { this.ShowAtlasModalDialog(this.TrimBtn, "f4223fb0-904f-4bbe-9b55-c4751d8c21a2", "批量生成", "870", "401", this.TaskId.ToString(), null, true, false, false); DataGrid5_GridRowDbClicked_DefaultImpl(sender, e); }