public override void SetParameter(EventBase even)
        {
            ClearFormDataDev _event = even as ClearFormDataDev;

            this.txtName.Text          = _event.Name;
            this.txtCode.Text          = _event.Code;
            this.ddlMode.SelectedValue = ((int)_event.ClearFormDataMode).ToString();
        }
コード例 #2
0
 public static void CheckWarning(ClearFormDataDev entity)
 {
     entity.Warning.Clear();
     if (entity.ClearFormDataMode == ClearFormDataEvent.EnumClearFormDataMode.Appoint)
     {
         XmlDocument xmlDocClear = new XmlDocument();
         xmlDocClear.LoadXml(entity.ClearsSetXml);
         XmlNodeList xmlNodeListClear = xmlDocClear.SelectNodes("Clears/Clear");
         foreach (XmlNode xmlNode in xmlNodeListClear)
         {
             if (entity.HostFormEntity.Elements.Contains(xmlNode.Attributes["FormElement"].Value) == false)
             {
                 entity.Warning.AddWarningSign(entity, Language.Current.EventDev_ClearFormDataDev_FormElementNotExist);
             }
         }
     }
 }
コード例 #3
0
        public override void SetParameter(EventBase even)
        {
            ClearFormDataDev _event = even as ClearFormDataDev;
            XmlDocument      xmlDoc = new XmlDocument();

            xmlDoc.LoadXml(_event.ClearsSetXml);
            XmlNodeList xmlNodeList = xmlDoc.SelectNodes("Clears/Clear");
            DataRow     dr;
            bool        warningRow;

            this.FormElement.Rows.Clear();
            foreach (XmlNode xmlNode in xmlNodeList)
            {
                warningRow            = false;
                dr                    = this.FormElement.NewRow();
                dr["FormElement"]     = xmlNode.Attributes["FormElement"].Value;
                dr["FormElementName"] =
                    StringParserLogic.DataSourceVisibleString(this.HostAdapter.HostFormEntity, xmlNode.Attributes["FormElement"].Value, out warningRow);
                dr["Warning"] = warningRow;
                this.FormElement.Rows.Add(dr);
            }
            this.FormElement.AcceptChanges();
        }