예제 #1
0
        /// <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);
        }
예제 #2
0
        /// <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);
        }//频次
예제 #3
0
        /// <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);
        }
예제 #4
0
        /// <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);
        }
예제 #5
0
        /// <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);
        }
예제 #6
0
        /// <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;
        }
예제 #7
0
 private void SetXapFormControl()
 {
     //窗体中控件布局
     xapFormControl = new XapFormControl
     {
         Location = Panel.Location,
         Width    = Panel.Width,
         Height   = Panel.Height
     };
     xapFormControl.SetEditPolicy(true);
     Panel = xapFormControl;
 }
예제 #8
0
        /// <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;
        }
예제 #10
0
        /// <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);
        }
예제 #11
0
 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
         }
     });
 }
예제 #12
0
        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;
        }
예제 #13
0
        /// <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);
        }