/// <summary> /// CreateView执行完毕后,用LoadData的数据填充界面 /// </summary> protected override void OnFillData() { var f = new FormFile(); f.FormId = CiOrdBillFormTmplConst.CIORD_IP_OrderConfirmView_Qry;// "20160818014239481F8F"; f.FormStyle = FormStyle.Card; f.ViewModel = model; xapFormControl.ViewFile = f; xapFormControl.SetEditPolicy(true); }
/// <summary> /// CreateView执行完毕后,用LoadData的数据填充界面 /// </summary> protected override void OnFillData() { FormFile file = new FormFile(); file.FormId = CiOrdBillFormTmplConst.CIORD_IP_OpOrderHerbsView;// "20151218072433749U5F";// "20151218072433749U5F"; file.FormStyle = FormStyle.Card; file.ViewModel = EmsHeadDO.Emsdrugs; this.xapFormControl1.ViewFile = file; xapFormControl1.SetEditPolicy(true); }//频次
/// <summary> /// 初始化表单控件 /// </summary> private void initXapFormControl() { //窗体中控件布局 xapFormControl = new XapFormControl { Location = Panel.Location, Width = Panel.Width, Height = Panel.Height }; xapFormControl.SetEditPolicy(true); Panel = xapFormControl; saveButton = new XButton { Size = new Size(75, 25), Text = "确定" }; cancelButton = new XButton { Size = new Size(75, 25), Text = "取消" }; this.saveButton.MouseClick += saveButton_MouseClick; this.cancelButton.MouseClick += cancelButton_MouseClick; saveButton.Enabled = bAllowEdit; // cancelButton.Enabled = bAllowEdit; Text = @"处置明细"; AddRender_Btn(saveButton, cancelButton); }
/// <summary> /// 构造窗体中的 UI 对象 /// </summary> private void constructControls() { // 创建表单容器 xapFormControl = new XapFormControl { Location = Panel.Location, Width = Panel.Width, Height = Panel.Height }; // 设置可编辑状态 xapFormControl.SetEditPolicy(true); // 将表单容器添加到对话框布局容器 Panel = xapFormControl; // 新建保存按钮以及取消按钮 saveButton = new XButton { Size = new Size(75, 25), Text = "确定" }; cancelButton = new XButton { Size = new Size(75, 25), Text = "取消" }; // 注册事件 saveButton.MouseClick += new MouseEventHandler(saveButton_MouseClick); cancelButton.MouseClick += new MouseEventHandler(cancelButton_MouseClick); Text = @"变动用药"; // 将保存按钮以及取消按钮添加到窗体中 AddRender_Btn(saveButton, cancelButton); }
/// <summary> /// CreateView执行完毕后,用LoadData的数据填充界面 /// </summary> protected override void OnFillData() { var f = new FormFile(); f.FormId = CiOrdBillFormTmplConst.CIORD_IP_CiOrdFirmCardView_Qry;// "20160818021218954GMP"; f.FormStyle = FormStyle.Card; f.ViewModel = model.orConfirm; xapFormControl.ViewFile = f; xapFormControl.SetEditPolicy(true); }
/// <summary> /// CreateView执行完毕后,用LoadData的数据填充界面 /// </summary> protected override void OnFillData() { var f = new FormFile(); //20160815012934772L07 f.FormId = CiOrdBillFormTmplConst.CIORD_IP_OrderConfirmView;// "20161026093054112000"; f.FormStyle = FormStyle.Card; f.ViewModel = model.OrderList; xapFormControl.ViewFile = f; xapFormControl.SetEditPolicy(true); oldrow = null; }
private void SetXapFormControl() { //窗体中控件布局 xapFormControl = new XapFormControl { Location = Panel.Location, Width = Panel.Width, Height = Panel.Height }; xapFormControl.SetEditPolicy(true); Panel = xapFormControl; }
/// <summary> /// CreateView执行完毕后,用LoadData的数据填充界面 /// </summary> protected override void OnFillData() { FormFile file = new FormFile(); file.FormId = CiOrdBillFormTmplConst.CIORD_IP_OrSkinTest;// "20150928050019641UA0"; file.FormStyle = FormStyle.Card; //DrugDO = listDrug[0]; //file.ViewModel = CiHeadDo;// drugDO; //file.ViewModel = CiHeadDo.Emsdrugs;// 新的 this.xapFormControl1.ViewFile = file; xapFormControl1.SetEditPolicy(true); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Text = "检验套明细"; xapFormControl = new XapFormControl { Location = Panel.Location, Width = Panel.Width, Height = Panel.Height }; xapFormControl.SetEditPolicy(true); Panel = xapFormControl; }
/// <summary> /// CreateView执行完毕后,用LoadData的数据填充界面 /// </summary> protected override void OnFillData() { var file = new FormFile(); file.FormId = CiOrdBillFormTmplConst.CIORD_IP_CiRptLabView;// "20151112020237400FY2"; file.FormStyle = FormStyle.Card; if (labdto != null) { model.getCiRptlabDO(labdto.Id); file.ViewModel = model.AggDo; } xapFormControl1.ViewFile = file; xapFormControl1.SetEditPolicy(true); }
private void setFeeEditable(bool flag2) { xapFormControl.SetEditPolicy(flag2, new[] { new DataPolicy { AllowEdit = flag2, FullEdit = flag2, ClassName = "iih.ci.ord.ciordems.d.AddFeeDTO", AllowNew = flag2, AutoNewRow = false, AllowRemove = flag2, AllowSave = flag2 } }); }
private void InitializeComponent() { //this.AutoScaleDimensions = new SizeF(6F, 12F); this.Name = "DiProvePrintDialog"; this.Text = "打印预览"; this.Formsize = FormSize.ExtraLarge; this.ResumeLayout(false); //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; xapFormControl = new XapFormControl { Location = Panel.Location, Width = Panel.Width, Height = Panel.Height }; xapFormControl.SetEditPolicy(true); Panel = xapFormControl; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Text = "检验套明细"; xapFormControl = new XapFormControl { Location = Panel.Location, Width = Panel.Width, Height = Panel.Height }; xapFormControl.SetEditPolicy(true); Panel = xapFormControl; saveButton = new XButton { Size = new Size(75, 25), Text = "确定" }; cancelButton = new XButton { Size = new Size(75, 25), Text = "取消" }; AddRender_Btn(saveButton, cancelButton); }