Exemple #1
0
        ////否决
        //private DataTable dtWhere;
        ///// <summary>
        ///// 条件设置
        ///// </summary>
        //public DataTable Where
        //{
        //    get
        //    {
        //        return this.dtWhere;
        //    }
        //    set
        //    {
        //        this.dtWhere = value;
        //        this.dataGridViewWhere.DataSource = this.dtWhere;
        //    }
        //}

        #endregion

        #region 构造

        public UserControlEventEditorPanel_DeleteData_DataEntity(EventEditorAdapterAbstract hostAdapter)
            : base(hostAdapter)
        {
            InitializeComponent();

            _dataEntityComponentService = ServiceUnity.Container.Resolve <IDataEntityComponentService>();

            UIHelper.ProcessDataGridView(this.dataGridViewWhere);

            Unity.ApplyResource(this);
            ApplyLanguageResource();

            this.dataGridViewWhere.AutoGenerateColumns = false;

            this._wheres = new BindingList <DeleteDataEvent.WhereItem>();
            this.dataGridViewWhere.DataSource = this._wheres;

            ////初始化条件设置表
            //dtWhere = new DataTable();
            //dtWhere.Columns.Add("DataItem");
            //dtWhere.Columns.Add("DataItemName");
            //dtWhere.Columns.Add("Source");
            //dtWhere.Columns.Add("SourceName");
            //dtWhere.Columns.Add("MatchType"); //匹配方式
            //dtWhere.Columns.Add("Warning", typeof(bool));

            ////关联条件设置表
            //this.dataGridViewWhere.AutoGenerateColumns = false;
            //this.dataGridViewWhere.DataSource = this.dtWhere;

            //关联条件表中匹配方式枚举
            this.ColumnWhereMatchType.DataSource    = EnumDescConverter.Get(typeof(EnumMatchType));
            this.ColumnWhereMatchType.DisplayMember = "Text";
            this.ColumnWhereMatchType.ValueMember   = "Object";
        }
 public FormEventDataItemDataSet(WindowEntity formEntity)
 {
     InitializeComponent();
     _dataEntityComponentService = ServiceUnity.Container.Resolve <IDataEntityComponentService>();
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.txtDataItem.Location = this.ddlDataItem.Location;
     this.txtDataItem.Size     = this.ddlDataItem.Size;
     this.formEntity           = formEntity;
 }
 public UserControlEventEditorPanel_DataListRefresh_SqlRegex(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     _dataEntityComponentService = ServiceUnity.Container.Resolve <IDataEntityComponentService>();
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.txtSqlRegex.FormEntity                  = this.HostAdapter.HostFormEntity;
     this.txtSqlRegex.AllowDataSourceType         = DataListRefreshDev.AllowWhereSetDataSourceType;
     this.txtSqlRegex.AllowFormElementControlType = DataListRefreshDev.AllowWhereSetFormElementControlType;
 }
Exemple #4
0
 public DataEntityTreeChooseView(bool showDataItem)
 {
     InitializeComponent();
     _dataEntityComponentService = ServiceUnity.Container.Resolve <IDataEntityComponentService>();
     Unity.ApplyResource(this);
     this.ShowDataItem = showDataItem;
     _imageList        = new ImageList();
     _imageList.Images.Add(IconsLibrary.DataEntity3);
     _imageList.Images.Add(IconsLibrary.Cube2);
     this.treeViewDataEntity.ImageList = this._imageList;
     this.ShowDataItem = showDataItem;
 }
Exemple #5
0
 public UserControlEventEditorPanel_DataListRefresh_Where(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     _dataEntityComponentService = ServiceUnity.Container.Resolve <IDataEntityComponentService>();
     UIHelper.ProcessDataGridView(this.dataGridViewWhere);
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.dataGridViewWhere.AutoGenerateColumns = false;
     this._wheres = new BindingList <DataListRefreshDev.WhereItem>();
     this.dataGridViewWhere.DataSource  = this._wheres;
     this.ColumnMatchType.DataSource    = EnumDescConverter.Get(typeof(EnumMatchType));
     this.ColumnMatchType.DisplayMember = "Text";
     this.ColumnMatchType.ValueMember   = "Object";
 }
Exemple #6
0
 static EntityExtensions()
 {
     _dataEntityComponentService = ServiceUnity.Container.Resolve <IDataEntityComponentService>();
 }
 static DataListRefreshDevChecker()
 {
     _dataEntityComponentService = ServiceUnity.Container.Resolve <IDataEntityComponentService>();
 }
 static DeleteDataDevChecker()
 {
     _dataEntityComponentService = ServiceUnity.Container.Resolve <IDataEntityComponentService>();
 }