Exemplo n.º 1
0
        public CWButtomProperty(ButtomControl obj)
        {
            InitializeComponent();
            FontHeadle.InitCombox(LabelFontname);
            FontHeadle.InitCombox(TagFontname);
            FontHeadle.InitCombox(EnlabelFontname);

            _Qh = obj.ButtomOR;
            _QHC = obj;

            cbYW.ItemsSource = MainPage.ListYw;
            cbYW.DisplayMemberPath = "Name";

            //ListPageWin = Common.ListPageWin;
            cbPageWin.ItemsSource = Common.ListPageWin;
            cbPageWin.DisplayMemberPath = "Name";
            //this.DataContext= this;

            InitValue();
        }
Exemplo n.º 2
0
        public ButtomControl InitAddPosition(Point position, string _wdbh)
        {
            ButtomControl mbc = new ButtomControl();
            mbc.OpType = 0;
            mbc.ID = Guid.NewGuid().ToString();
            QhandyOR mButtom = new QhandyOR();

            mButtom = Init(mButtom, _wdbh);// Init(mButtom);
            mButtom.Orgbh = _wdbh;
            mbc.ButtomOR = mButtom;

            mbc.ButtomOR.LabelLeft = Convert.ToInt16(position.X);
            mbc.ButtomOR.LabelTop = Convert.ToInt16(position.Y);

            mbc.ButtomOR.EnlabelLeftoffset = Convert.ToInt16(position.X);
            mbc.ButtomOR.EnlabelTopoffset = Convert.ToInt16(position.Y + lableHeight * 0.7);

            mbc.ButtomOR.TagLeftoffset = Convert.ToInt16(position.X + TagWidth * 0.7);
            mbc.ButtomOR.TagTopoffset = Convert.ToInt16(position.Y);

            AddAButtom(mbc);
            return mbc;
        }
Exemplo n.º 3
0
 private void SetScreen(QhandyOR obj)
 {
     string strSize = ScreenHeadle.GetScreenSize(obj.Screentype);
     cbScreen.SelectedIndex = obj.Screentype;
     SetScreenSize(strSize);
 }
Exemplo n.º 4
0
        public QhandyOR Init(QhandyOR mButtom,string _wdbh)
        {
            mButtom.Id = Guid.NewGuid().ToString();
            mButtom.Windowid = "";
            mButtom.Windowonid = "";
            mButtom.Orgbh = _wdbh;// this._WDBH;

            // 标签ID
            //_LabelIdx = Convert.ToInt32(row["LABEL_IDX"]);
            // 标签是否显示
            mButtom.LabelVisible = true;
            // 标签显示内容
            mButtom.LabelCaption = "Text";
            // 标签颜色
            mButtom.LabelFontcolor = 0;
            // 标签字体名称
            mButtom.LabelFontname = "宋体";
            // 标签下划线
            mButtom.LabelFontunderline = false;
            // 标签是否斜体
            mButtom.LabelFontitalic = false;
            // 标签是否加粗
            mButtom.LabelFontbold = false;
            // 标签字体大小
            mButtom.LabelFontsize = 12;
            //标签Top

            // 标签业务No
            mButtom.LabelJobno = "";
            // 标签业务名称
            mButtom.LabelJobname = "";
            // 标签打印字字符串
            mButtom.LabelPrintstr = "";
            // 标签是否显示边框
            mButtom.LabelShade = false;

            // Tag是否显示
            mButtom.TagVisible = true;
            // Tag显示内容
            mButtom.TagCaption = "TagText";
            // Tag字体颜色
            mButtom.TagFontcolor = 0;
            // Tag字体
            mButtom.TagFontname = "宋体";
            // Tag下划线
            mButtom.TagFontunderline = false;
            // Tag是否斜体
            mButtom.TagFontitalic = false;
            // Tag是否加粗
            mButtom.TagFontbold = false;
            // Tag字体大小
            mButtom.TagFontsize = 9;

            // Tag类型
            mButtom.LabelType = "";

            // 英文标签是否显示
            mButtom.EnlabelVisible = true;
            // 英文标签显示内容
            mButtom.EnlabelCaption = "EnLabelText";
            // 英文标签颜色
            mButtom.EnlabelFontcolor = 0;
            // 英文标签字体名称
            mButtom.EnlabelFontname = "宋体";
            // 英文标签下划线
            mButtom.EnlabelFontunderline = false;
            // 英文标签是否斜体
            mButtom.EnlabelFontitalic = false;
            // 英文标签是否加粗
            mButtom.EnlabelFontbold = true;
            // 英文标签字体大小
            mButtom.EnlabelFontsize = 12;

            mButtom.Screentype = 0;// Convert.ToInt32(row["SCREENTYPE"]);
            return mButtom;
        }