private void UcIncomeList1_SelectValueChange(object sender, object obj) { Model.Info_fin_order_income info = this.ucIncomeList1.CurrentSelectValue as Model.Info_fin_order_income; if (obj == null) { return; } this.SetDataBind(info); //显示合同摘要信息 Model.Info_fin_order_gen infoGen = genManager.FindTheVaildGen(info.Odr_No); if (infoGen.BuildItems.Count == 0) { infoGen.BuildItems = genManager.GetBuildItems(info.Odr_No); } if (infoGen.FreightItems.Count == 0) { infoGen.FreightItems = genManager.GetFreightItems(info.Odr_No); } //orderGenManagerReport.GridControl = this.reoGridControl1; orderGenManagerReport.Show(infoGen, this.reoGridControl1); }
void mDataGridNvl_CurrentRowChanged(object sender, EventArgs e) { if (this.mDataGridNvl.CurrentRow == null) { return; } Model.Info_fin_order_income info = mDataGridNvl.GetCurrentEntity() as Model.Info_fin_order_income; this.DoSelectValueEvent(info); }
private void DocumentAdd(ToolStripButton sender) { FmGenSelect fmOrderNo = new FmGenSelect(); fmOrderNo.SelectValue += (obj) => { Model.Info_fin_order_gen infoGen = obj as Model.Info_fin_order_gen; Model.Info_fin_order_income infoIncome = Miles.Coro.Common.Utils.CopyToOther <Model.Info_fin_order_gen, Model.Info_fin_order_income>(infoGen); if (this.manager.Save(infoIncome)) { LoadSelfOrder(); } }; fmOrderNo.ShowDialog(); }
private void Check(ToolStripButton sender) { if (this.ucIncomeList1.CurrentSelectValue == null) { return; } Model.Info_fin_order_income info = this.ucIncomeList1.CurrentSelectValue as Model.Info_fin_order_income; string msg = string.Format("确定通过:{0},{1}?", info.Odr_No, info.Jia_Name); if (Miles.Framework.UI.Function.Dialog.ShowQuestionYesNo(msg)) { if (manager.CheckIncomePass(info)) { Clear(); LoadSelfOrder(); } } }
protected override void Save(ToolStripButton sender) { if (this.ucIncomeList1.CurrentSelectValue == null) { return; } Model.Info_fin_order_income old = this.ucIncomeList1.CurrentSelectValue as Model.Info_fin_order_income; Model.Info_fin_order_income info = old != null?this.GetDataBind <Model.Info_fin_order_income>(old) : this.GetDataBind <Model.Info_fin_order_income>(); if (this.manager.Save(info)) { LoadSelfOrder(); this.SetButtonClickResultTip(sender, "保存成功"); } else { this.SetButtonClickResultTip(sender, "保存失败"); } }
private void Backward(ToolStripButton sender) { if (this.ucIncomeList1.CurrentSelectValue == null) { return; } Model.Info_fin_order_income info = this.ucIncomeList1.CurrentSelectValue as Model.Info_fin_order_income; Win.FmCheckCommentInfo fm = new Win.FmCheckCommentInfo(); fm.SelectValue += (obj) => { if (manager.CheckIncomeNoPass(info, obj.ToString())) { Clear(); LoadSelfOrder(); } }; fm.ShowDialog(); }
private void Commit(ToolStripButton sender) { Model.Info_fin_order_income info = this.ucIncomeList1.CurrentSelectValue as Model.Info_fin_order_income; if (info == null) { return; } string msg = string.Format("确定提交:{0},{1}?", info.Odr_No, info.Odr_Prt_Name); if (!Miles.Framework.UI.Function.Dialog.ShowQuestionYesNo(msg)) { return; } if (this.manager.Commit(info)) { LoadSelfOrder(); this.SetButtonClickResultTip(sender, "提交成功"); } else { this.SetButtonClickResultTip(sender, "提交失败"); } }
public void UpdateCurrentValue(Model.Info_fin_order_income info) { this.mDataGridNvl.EditCurrentItem <Model.Info_fin_order_income>(info); }