Esempio n. 1
0
        void btn_Click(object sender, EventArgs e)
        {
            FrmField sln = new FrmField();

            sln.Retrieve(FrmFieldAttr.FK_MapData, this.FK_MapData,
                         FrmFieldAttr.KeyOfEn, this.KeyOfEn,
                         FrmFieldAttr.FK_Node, this.FK_Node);

            sln.UIIsEnable = this.Pub1.GetCBByID("CB_Readonly").Checked;
            sln.UIVisible  = this.Pub1.GetCBByID("CB_Visable").Checked;

            if (this.Pub1.IsExit("CB_IsSigan"))
            {
                sln.IsSigan = this.Pub1.GetCBByID("CB_IsSigan").Checked;
            }

            sln.DefVal = this.Pub1.GetTextBoxByID("TB_DefVal").Text;

            sln.FK_MapData = this.FK_MapData;
            sln.KeyOfEn    = this.KeyOfEn;
            sln.FK_Node    = int.Parse(this.FK_Node);
            sln.FK_Flow    = this.FK_Node;

            sln.MyPK = this.FK_MapData + "_" + this.FK_Flow + "_" + this.FK_Node + "_" + this.KeyOfEn;
            sln.CheckPhysicsTable();
            sln.Save();
            this.WinClose();
        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            #region 功能执行.
            if (this.DoType == "DeleteFJ")
            {
                FrmAttachment ath1 = new FrmAttachment();
                ath1.MyPK = this.FK_MapData + "_" + this.Ath + "_" + this.FK_Node;
                ath1.Delete();
                this.WinClose();
                return;
            }

            if (this.DoType == "DeleteDtl")
            {
                MapDtl dtl = new MapDtl();
                dtl.No = this.FK_MapDtl + "_" + this.FK_Node;
                dtl.Delete();
                this.WinClose();
                return;
            }
            #endregion 功能执行.

            MapData  md  = new MapData(this.FK_MapData);
            FrmField sln = new FrmField();
            sln.CheckPhysicsTable();

            switch (this.DoType)
            {
            case "Dtl":     //附件方案.
                this.Title = "从表权限";
                BindDtl();
                break;

            case "FJ":     //附件方案.
                this.Title = "表单附件权限";
                BindFJ();
                break;

            case "Field":     //字段方案.
                this.Title = "表单字段权限";
                this.BindSln();
                break;

            case "Copy":     //字段方案.
                this.Title = "从其它节点复制权限";
                this.BindCopy();
                break;

            case "DoCopy":     //字段方案.
                this.Title = "执行复制权限方案";
                this.DoCopy();
                break;

            default:
                this.Title = "没有涉及到的类型:" + this.DoType;
                break;
            }
        }