public UserControlEventEditorPanelBase(EventEditorAdapterAbstract hostAdapter)
     : this()
 {
     this.HostAdapter   = hostAdapter;
     this.lblTitle.Text = this.PanelTitle;
     this.Dock          = DockStyle.Fill;
 }
Beispiel #2
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";
        }
Beispiel #3
0
 public UserControlEventEditorPanel_ReLogin_General(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     this.txtCode.Regex = CoreConstant.ENTITY_CODE_REGEX;
     Unity.ApplyResource(this);
     ApplyLanguageResource();
 }
Beispiel #4
0
 public UserControlEventEditorPanel_DataListRefresh_General(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     radioButtonDataEntity.Checked = true;
 }
 public UserControlEventEditorPanel_ValidateFormData_General(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     this.txtCode.Regex = CoreConstant.ENTITY_CODE_REGEX;
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.ddlMode.DataSource = EnumDescConverter.Get(typeof(ValidateFormDataEvent.EnumValidateFormDataMode));
 }
 public UserControlEventEditorPanel_LoadDataToForm_General(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     this.txtCode.Regex = CoreConstant.ENTITY_CODE_REGEX;
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     radioButtonDataEntity.Checked = true;
 }
Beispiel #7
0
 public UserControlEventEditorPanel_OpenSystemForm_General(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     this.txtCode.Regex = CoreConstant.ENTITY_CODE_REGEX;
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     dtForm             = EnumDescConverter.Get(typeof(OpenSystemFormEvent.EnumSystemForm));
     ddlForm.DataSource = dtForm;
 }
 public UserControlEventEditorPanel_UpdateFormData_SqlRegex(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.txtSqlRegex.FormEntity                  = this.HostAdapter.HostFormEntity;
     this.txtSqlRegex.AllowDataSourceType         = UpdateFormDataDev.AllowDataSourceType;
     this.txtSqlRegex.AllowFormElementControlType = UpdateFormDataDev.AllowFormElementControlType;
 }
 public UserControlEventEditorPanel_DataListAddRow_Data(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     UIHelper.ProcessDataGridView(this.dataGridViewDataSet);
     Unity.ApplyResource(this);
     this.dataGridViewDataSet.AutoGenerateColumns = false;
     this._datas = new BindingList <DataListAddRowEvent.DataItem>();
     this.dataGridViewDataSet.DataSource = this._datas;
 }
 public UserControlEventEditorPanel_OpenWindow_General(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     _windowComponentService = ServiceUnity.Container.Resolve <IWindowComponentService>();
     this.txtCode.Regex      = CoreConstant.ENTITY_CODE_REGEX;
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     ddlIfOpend.DataSource = EnumDescConverter.Get(typeof(OpenWindowEvent.EnumOpenWindowIfOpend));
 }
 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;
 }
Beispiel #12
0
 public UserControlEventEditorPanel_NewGuid_General(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     this.txtCode.Regex                         = CoreConstant.ENTITY_CODE_REGEX;
     ddlFormElement.AllowDataSource             = EnumEventDataSource.FormElement;
     ddlFormElement.AllowFormElementControlType = NewGuidDev.AllowTargetFormElementControlType;
     ddlFormElement.FormEntity                  = this.HostAdapter.HostFormEntity;
     Unity.ApplyResource(this);
     ApplyLanguageResource();
 }
 public UserControlEventEditorPanel_DataListUpdateRow_Data(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.dataGridViewDataSet.AutoGenerateColumns = false;
     this._datas = new BindingList <DataListUpdateRowEvent.DataItem>();
     this.dataGridViewDataSet.DataSource = this._datas;
     this.ColumnWhere.DataSource         = Misc.TrueFalseTable;
     this.ColumnWhere.DisplayMember      = "Text";
     this.ColumnWhere.ValueMember        = "Value";
 }
 public UserControlEventEditorPanel_UpdateFormData_Where(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     UIHelper.ProcessDataGridView(this.dataGridViewWhere);
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.dataGridViewWhere.AutoGenerateColumns = false;
     this._wheres = new BindingList <UpdateFormDataEvent.WhereItem>();
     this.dataGridViewWhere.DataSource       = this._wheres;
     this.ColumnWhereMatchType.DataSource    = EnumDescConverter.Get(typeof(EnumMatchType));
     this.ColumnWhereMatchType.DisplayMember = "Text";
     this.ColumnWhereMatchType.ValueMember   = "Object";
 }
Beispiel #15
0
 public UserControlEventEditorPanel_ValidateFormData_FormElement(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     UIHelper.ProcessDataGridView(this.dataGridViewFormElement);
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.dtFormElement = new DataTable();
     this.dtFormElement.Columns.Add("FormElement");
     this.dtFormElement.Columns.Add("FormElementName");
     this.dtFormElement.Columns.Add("Warning", typeof(bool));
     this.dataGridViewFormElement.AutoGenerateColumns = false;
     this.dataGridViewFormElement.DataSource          = this.dtFormElement;
 }
Beispiel #16
0
 public UserControlEventEditorPanel_ReturnDataToCallerForm_ReturnData(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     UIHelper.ProcessDataGridView(this.dataGridViewReturnData);
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     dtReturnData = new DataTable();
     dtReturnData.Columns.Add("FormElementCode");
     dtReturnData.Columns.Add("Source");
     dtReturnData.Columns.Add("SourceName");
     dtReturnData.Columns.Add("Warning", typeof(bool));
     this.dataGridViewReturnData.AutoGenerateColumns = false;
     this.dataGridViewReturnData.DataSource          = this.dtReturnData;
 }
Beispiel #17
0
        public UserControlEventEditorPanel_SaveFormData_DataEntity(EventEditorAdapterAbstract hostAdapter)
            : base(hostAdapter)
        {
            InitializeComponent();

            UIHelper.ProcessDataGridView(this.dataGridViewSaveData);

            Unity.ApplyResource(this);
            ApplyLanguageResource();

            this.dataGridViewSaveData.AutoGenerateColumns = false;

            this._saves = new BindingList <SaveDataEvent.SaveItem>();
            this.dataGridViewSaveData.DataSource = this._saves;
        }
        public UserControlEventEditorPanel_LoadDataToForm_Load(EventEditorAdapterAbstract hostAdapter)
            : base(hostAdapter)
        {
            InitializeComponent();

            UIHelper.ProcessDataGridView(this.dataGridViewLoadData);

            Unity.ApplyResource(this);
            ApplyLanguageResource();

            this.dataGridViewLoadData.AutoGenerateColumns = false;

            this._loads = new BindingList <LoadDataToFormEvent.LoadItem>();
            this.dataGridViewLoadData.DataSource = this._loads;
        }
        public static bool ValidateCodeExist(EventEditorAdapterAbstract hostAdapter, string code, out string validateMsg)
        {
            bool result = true;

            validateMsg = String.Empty;
            if (hostAdapter.EventCollection != null)
            {
                if (hostAdapter.EventCollection.CodeExist(code, hostAdapter.HostEvent.Id))
                {
                    validateMsg += Language.Current.EditorHelper_MessageEventCodeExist;
                    result       = false;
                }
            }
            return(result);
        }
Beispiel #20
0
        public UserControlEventEditorPanel_CallUIElementMethod_General(EventEditorAdapterAbstract hostAdapter)
            : base(hostAdapter)
        {
            InitializeComponent();

            _eventDevTypes = EventDevTypes.Instance;

            this.availabilityEvent.SelectedValueChanged += new EventHandler <SEComboSelector2.OnSelectedValueChangedEventArgs>(availabilityEvent_SelectedValueChanged);

            this.txtFormElement.Location = this.ddlFormElement.Location;
            this.txtFormElement.Size     = this.ddlFormElement.Size;

            Unity.ApplyResource(this);
            ApplyLanguageResource();

            this.ddlObjectForm.DataSource  = EnumDescConverter.Get(typeof(CallUIElementMethodEvent.EnumCallUIElementMethodTargetForm));
            this.ddlFormElement.FormEntity = this.HostAdapter.HostFormEntity;
        }
 public UserControlEventEditorPanel_OpenWindow_SendData(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     UIHelper.ProcessDataGridView(this.dataGridViewSendData);
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     if (this.HostAdapter.HostFormEntity == null)
     {
         this.btnAdd.Enabled    = false;
         this.btnDelete.Enabled = false;
     }
     dtSendData = new DataTable();
     dtSendData.Columns.Add("DataName");
     dtSendData.Columns.Add("DataCode");
     dtSendData.Columns.Add("DataSourceName");
     dtSendData.Columns.Add("DataSource");
     dtSendData.Columns.Add("Warning", typeof(bool));
     this.dataGridViewSendData.AutoGenerateColumns = false;
     this.dataGridViewSendData.DataSource          = this.dtSendData;
 }