コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         BP.WF.Template.BtnLab btn = new BP.WF.Template.BtnLab(this.FK_Node);
         Node nd = new Node(this.FK_Node);
         BP.WF.Template.CC cc = new BP.WF.Template.CC();
         cc.NodeID = this.FK_Node;
         cc.Retrieve();
         BP.Web.Controls.Glo.DDL_BindEnum(this.DDL_CCRole, "CCRole", (int)btn.CCRole);
         BP.Web.Controls.Glo.DDL_BindEnum(this.DDL_CCWriteTo, "CCWriteTo", (int)nd.CCWriteTo);
         this.DDL_CCRole.SelectedValue    = btn.CCRole.ToString();
         this.DDL_CCWriteTo.SelectedValue = nd.CCWriteTo.ToString();
         this.TB_title_MB.Text            = cc.CCTitle;
         this.TB_content_MB.Text          = cc.CCDoc;
         if (cc.CCIsStations == true)
         {
             this.CC_GW.Checked = true;
         }
         else
         {
             this.CC_GW.Checked = false;
         }
         if (cc.CCIsDepts == true)
         {
             this.CC_DBM.Checked = true;
         }
         else
         {
             this.CC_DBM.Checked = false;
         }
         if (cc.CCIsEmps == true)
         {
             this.CC_RY.Checked = true;
         }
         else
         {
             this.CC_RY.Checked = false;
         }
         if (cc.CCIsSQLs == true)
         {
             this.CC_SQL.Checked = true;
             this.CC_SQL1.Text   = cc.CCSQL;
         }
         else
         {
             this.CC_SQL.Checked = false;
             this.CC_SQL1.Text   = cc.CCSQL;
         }
     }
 }
コード例 #2
0
        protected override void afterInsertUpdateAction()
        {
            Node fl = new Node();

            fl.NodeID = this.NodeID;
            fl.RetrieveFromDBSources();
            fl.Update();

            BtnLab btnLab = new BtnLab();

            btnLab.NodeID = this.NodeID;
            btnLab.RetrieveFromDBSources();
            btnLab.Update();

            base.afterInsertUpdateAction();
        }