void Init() { this.SecondOrderCollections = new List <GroupOrderSecondRender>(); this.IsFirstLoad = true; _userMethodCheckBox = new OrderCheckBox(); _userMethodCheckBox.ValueTextChanged += _userMethodCheckBox_ValueTextChanged; this.AddRender(_userMethodCheckBox); _comboBox = new OrderComboBox(); _comboBox.GotFocus += new EventHandler(_comboBox_GotFocus); this.AddRender(_comboBox); _userDaysTextBox = new OrderTextUnit(); _userDaysTextBox.IsOnlyNum = true; _userDaysTextBox.GotFocus += new EventHandler(_comboBox_GotFocus); this.AddRender(_userDaysTextBox); //执行科室先不显示 _excuteDepartment = new OrderLabel(); _excuteDepartment.IsSuitScreenRelative = true; _excuteDepartment.Format = new StringFormat() { Alignment = StringAlignment.Far, LineAlignment = StringAlignment.Center }; this.AddRender(_excuteDepartment); this._userMethodCheckBox.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(_userMethodCheckBox_MouseDoubleClick); }
void Init() { this.IsFirstLoad = true; this.IsTopLevelNode = true; _checkBox = new OrderCheckBox(); _checkBox.ValueTextChanged += _checkBox_ValueTextChanged; this.AddRender(_checkBox); this.CanFocus = false; this._checkBox.MouseDoubleClick += LisSecondOrder_MouseClick; }
void Init() { _checkBox = new OrderCheckBox(); _checkBox.ValueTextChanged += _checkBox_ValueTextChanged; this.AddRender(_checkBox); _orderLabel = new OrderLabel(); this.AddRender(_orderLabel); _unitTextBox = new OrderTextUnit(); _unitTextBox.GotFocus += new EventHandler(_checkBox_GotFocus); this.AddRender(_unitTextBox); this._checkBox.MouseDoubleClick += new MouseEventHandler(_checkBox_MouseDoubleClick); }
void Init(String treatStyle) { this.TreatStyle = treatStyle; this.IsFirstLoad = true; _treatNameCheckBox = new OrderCheckBox(); _treatNameCheckBox.ValueTextChanged += _treatNameCheckBox_ValueTextChanged; _userNum = new OrderTextUnit(); _userNum.GotFocus += new EventHandler(_userNum_GotFocus); _userNum.MaxUnitWidth = 40; _freqXComboBox = new XComboBox(); _freqXComboBox.GotFocus += new EventHandler(_userNum_GotFocus); _userDays = new OrderTextUnit(); _userDays.GotFocus += new EventHandler(_userNum_GotFocus); _userDays.IsOnlyNum = true; _userDays.MaxUnitWidth = 40; _excuteProject = new OrderLabel(); _excuteProject.IsSuitScreenRelative = true; _orderLabel = new OrderLabel(); _orderLabel.TextBrush = OrderContext.TitleBrush; if (String.IsNullOrEmpty(this.TreatStyle) || (this.TreatStyle.Equals("1")))//诊疗模式为1或者空(默认) { this.AddRender(_treatNameCheckBox); this.AddRender(_orderLabel); this.AddRender(_userNum); this.AddRender(_excuteProject); } else if (this.TreatStyle.Equals("0")) { this.AddRender(_treatNameCheckBox); // this.AddRender(_orderLabel); this.AddRender(_userNum); this.AddRender(_freqXComboBox); this.AddRender(_userDays); this.AddRender(_excuteProject); } this._treatNameCheckBox.MouseDoubleClick += new MouseEventHandler(_treatNameCheckBox_MouseDoubleClick); }
void Init() { this.IsFirstLoad = true; _checkBox = new OrderCheckBox(); _checkBox.ValueTextChanged += _checkBox_ValueTextChanged; this.AddRender(_checkBox); _orderLabel = new OrderLabel(); _orderLabel.TextBrush = new SolidBrush(Color.FromArgb(0, 153, 229)); this.AddRender(_orderLabel); _unitTextBox = new OrderTextUnit(); _unitTextBox.GotFocus += _unitTextBox_GotFocus; this.AddRender(_unitTextBox); this._checkBox.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(_checkBox_MouseDoubleClick); }
void Init() { this.IsFirstLoad = true; _checkBox = new OrderCheckBox(); _checkBox.ValueTextChanged += _checkBox_ValueTextChanged; this.AddRender(_checkBox); _priceLabel = new OrderLabel(); this.AddRender(_priceLabel); _unitTextBox = new OrderTextUnit(); _unitTextBox.GotFocus += new EventHandler(_unitTextBox_GotFocus); this.AddRender(_unitTextBox); _orderLabel = new OrderLabel(); _orderLabel.IsSuitScreenRelative = true; this.AddRender(_orderLabel); this._checkBox.MouseDoubleClick += new MouseEventHandler(_checkBox_MouseDoubleClick); }
void Init() { this.IsFirstLoad = true; this.IsTopLevelNode = true; _checkBox = new OrderCheckBox(); _checkBox.ValueTextChanged += _checkBox_ValueTextChanged; this.AddRender(_checkBox); this._checkBox.MouseDoubleClick += LisFirstOrdrRender_MouseDoubleClick; _orderLabel = new OrderLabel(); _orderLabel.TextBrush = new SolidBrush(Color.FromArgb(0, 153, 229)); this.AddRender(_orderLabel); _departmentLabel = new OrderLabel(); _departmentLabel.TextBrush = new SolidBrush(Color.FromArgb(0, 153, 229)); _departmentLabel.Format = new StringFormat() { LineAlignment = StringAlignment.Center, Alignment = StringAlignment.Far }; this.AddRender(_departmentLabel); }
void Init() { this.SecondOrderCollections = new List <ChineseComplexSecondOrder>(); this.IsFirstLoad = true; _medicalNameCheckBox = new OrderCheckBox(); _medicalNameCheckBox.ValueTextChanged += _userMethodCheckBox_ValueTextChanged; this.AddRender(_medicalNameCheckBox); _useNum = new OrderTextUnit(); _useNum.GotFocus += new EventHandler(_userMethod_GotFocus); this.AddRender(_useNum); _userMethod = new OrderLabel(); _userMethod.IsSuitScreenRelative = true; this.AddRender(_userMethod); _comboBox = new OrderComboBox(); _comboBox.GotFocus += new EventHandler(_userMethod_GotFocus); this.AddRender(_comboBox); _userMethod1 = new OrderLabel(); _userMethod.IsSuitScreenRelative = true; this.AddRender(_userMethod1); //执行科室先不显示 _excuteDepartment = new OrderLabel(); _excuteDepartment.IsSuitScreenRelative = true; _excuteDepartment.Format = new StringFormat() { Alignment = StringAlignment.Far, LineAlignment = StringAlignment.Center }; this.AddRender(_excuteDepartment); this._medicalNameCheckBox.MouseDoubleClick += new MouseEventHandler(_medicalNameCheckBox_MouseDoubleClick); }