public A_FrmDirectionalManage_Add(A_FrmDirectionalManage frm)
        {
            InitializeComponent();
            tempCodeSenderDirlID = frm.tempCodeSenderDirlID;
            frm_Dm = frm;

            //清空信息
            ClearDirectional();

            if (frm.blIsSee)    //查看
            {
                this.Text = "查看方向性";

                tvc_BeginStaHead_Add.Enabled    = tvc_EndStaHead_Add.Enabled = false;
                bt_Directional_Reset.Enabled    = false;
                bt_Directional_Save.Enabled     = gb_AddDirectionalInfo.Enabled = false;
                lb_DirectionalTipsInfo2.Enabled = lb_DirectionalTipsInfo.Enabled = false;

                GetDirectionalTable(tempCodeSenderDirlID);
            }
            else if (tempCodeSenderDirlID == -1)   //新增
            {
                this.Text = "新增方向性";

                tvc_BeginStaHead_Add.Enabled    = tvc_EndStaHead_Add.Enabled = true;
                bt_Directional_Save.Enabled     = bt_Directional_Reset.Enabled = gb_AddDirectionalInfo.Enabled = true;
                lb_DirectionalTipsInfo2.Enabled = lb_DirectionalTipsInfo.Enabled = true;
            }
            else
            {
                this.Text = "修改方向性";

                tvc_BeginStaHead_Add.Enabled    = tvc_EndStaHead_Add.Enabled = false;
                bt_Directional_Reset.Enabled    = false;
                bt_Directional_Save.Enabled     = gb_AddDirectionalInfo.Enabled = true;
                lb_DirectionalTipsInfo2.Enabled = lb_DirectionalTipsInfo.Enabled = true;

                GetDirectionalTable(tempCodeSenderDirlID);
            }
        }
        public A_FrmDirectionalManage_Add(A_FrmDirectionalManage frm)
        {
            InitializeComponent();
            tempCodeSenderDirlID = frm.tempCodeSenderDirlID;
            frm_Dm = frm;

            //清空信息
            ClearDirectional();

            if (frm.blIsSee)    //查看
            {
               this.Text = "查看方向性";

                tvc_BeginStaHead_Add.Enabled = tvc_EndStaHead_Add.Enabled = false;
                bt_Directional_Reset.Enabled = false;
                bt_Directional_Save.Enabled = gb_AddDirectionalInfo.Enabled = false;
                lb_DirectionalTipsInfo2.Enabled = lb_DirectionalTipsInfo.Enabled = false;

                GetDirectionalTable(tempCodeSenderDirlID);
            }
            else if(tempCodeSenderDirlID==-1)   //新增
            {
                this.Text = "新增方向性";

                tvc_BeginStaHead_Add.Enabled = tvc_EndStaHead_Add.Enabled = true;
                bt_Directional_Save.Enabled = bt_Directional_Reset.Enabled = gb_AddDirectionalInfo.Enabled = true;
                lb_DirectionalTipsInfo2.Enabled = lb_DirectionalTipsInfo.Enabled = true;
            }
            else
            {
                this.Text = "修改方向性";

                tvc_BeginStaHead_Add.Enabled = tvc_EndStaHead_Add.Enabled = false;
                bt_Directional_Reset.Enabled = false;
                bt_Directional_Save.Enabled = gb_AddDirectionalInfo.Enabled = true;
                lb_DirectionalTipsInfo2.Enabled = lb_DirectionalTipsInfo.Enabled = true;

                GetDirectionalTable(tempCodeSenderDirlID);
            }
        }
Пример #3
0
        //方向性
        private void tsmiDirectionConfig_Click(object sender, EventArgs e)
        {
            if (Searcher.FindFormByName("A_FrmDirectionalManage"))
            {
                return;
            }

            //验证用户密码
            if (!IsValidate())
            {
                return;
            }

            ILogger.Write(EnumLogType.OperateLog, strLogPath + DateTime.Now.ToString("yyyy-MM-dd") + ".xml", LoginBLL.user, "打开方向性菜单");

            A_FrmDirectionalManage frmD = new A_FrmDirectionalManage();
            frmD.Show(dockPanel1, DockState.Document);
        }