Exemple #1
0
        private void btnSavePdm_Click(object sender, EventArgs e)
        {
            Common.Write(this.m_Pdm, this.txbPDM.Text.Trim() + (object)"," + (string)(object)DataType.PowerDesigner);
            this.m_FrmStart.MyDataType   = DataType.PowerDesigner;
            this.m_FrmStart.DialogResult = DialogResult.OK;
            int num = (int)this.m_FrmStart.MessageBoxShow(BaseBusiness.GetResourceValue("baocunchenggong"), MessageBoxIcon.Asterisk, MessageBoxButtons.OK);

            this.Close();
        }
Exemple #2
0
 private void LoadUIText()
 {
     this.Text           = BaseBusiness.GetResourceValue("denglu");
     this.groupBox3.Text = BaseBusiness.GetResourceValue("shenqing");
     this.label1.Text    = BaseBusiness.GetResourceValue("youxiang");
     this.label2.Text    = BaseBusiness.GetResourceValue("yanzhengma");
     this.btnLogin.Text  = BaseBusiness.GetResourceValue("xitongdenglu");
     this.btnClose.Text  = BaseBusiness.GetResourceValue("quxiao");
 }
Exemple #3
0
 private void LoadUIText()
 {
     this.Text                     = BaseBusiness.GetResourceValue("xitongshezhi");
     this.groupBox3.Text           = BaseBusiness.GetResourceValue("duishengchengdexitong");
     this.labNameSpace.Text        = BaseBusiness.GetResourceValue("mingmingkongjian");
     this.label8.Text              = BaseBusiness.GetResourceValue("shengchengweizhi");
     this.btnShengChengMuDiDi.Text = BaseBusiness.GetResourceValue("xuanze");
     this.btnSave.Text             = BaseBusiness.GetResourceValue("qingxianceshi");
     this.btnSave.Text             = BaseBusiness.GetResourceValue("baocun");
     this.btnClose.Text            = BaseBusiness.GetResourceValue("quxiao");
 }
Exemple #4
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (this.test())
     {
         this.labMessage.Text = BaseBusiness.GetResourceValue("ceshichenggong");
     }
     else
     {
         this.labMessage.Text = BaseBusiness.GetResourceValue("ceshishibai");
     }
 }
Exemple #5
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            string str1 = Common.Read(this.m_SystemConfig);

            if (string.IsNullOrWhiteSpace(str1))
            {
                return;
            }
            string[] strArray = str1.Split(',');
            if (strArray != null && strArray.Length > 2)
            {
                string str2 = string.Empty;
                Common.Write(this.m_SystemConfig, this.radioButton1.Checked ? "a," + this.txbMuDiDI.Text.Trim() + "," + this.txbNameSpace.Text.Replace("\r\n", string.Empty).Trim() : "n," + this.txbMuDiDI.Text.Trim() + "," + this.txbNameSpace.Text.Replace("\r\n", string.Empty).Trim());
                int num = (int)this.m_FrmStart.MessageBoxShow(BaseBusiness.GetResourceValue("baocunchenggong"), MessageBoxIcon.Asterisk, MessageBoxButtons.OK);
                this.btnClose_Click(sender, e);
            }
        }
Exemple #6
0
 private void LoadUIText()
 {
     this.Text              = BaseBusiness.GetResourceValue("lianjieshujuyuan");
     this.groupBox3.Text    = BaseBusiness.GetResourceValue("genju");
     this.btnPathOfpdm.Text = BaseBusiness.GetResourceValue("xuanze");
     this.btnSavePdm.Text   = BaseBusiness.GetResourceValue("baocun");
     this.btnClosePdm.Text  = BaseBusiness.GetResourceValue("quxiao");
     this.groupBox2.Text    = BaseBusiness.GetResourceValue("qingxianceshi");
     this.label12.Text      = BaseBusiness.GetResourceValue("fuwuqimingcheng");
     this.label10.Text      = BaseBusiness.GetResourceValue("shengfenyanzheng");
     this.label9.Text       = BaseBusiness.GetResourceValue("dengluming");
     this.label13.Text      = BaseBusiness.GetResourceValue("mima");
     this.label8.Text       = BaseBusiness.GetResourceValue("shujuku");
     this.button1.Text      = BaseBusiness.GetResourceValue("ceshi");
     this.btnSQLServer.Text = BaseBusiness.GetResourceValue("baocun");
     this.button2.Text      = BaseBusiness.GetResourceValue("quxiao");
 }
Exemple #7
0
 private void btnSQLServer_Click(object sender, EventArgs e)
 {
     if (this.GetSQLVer(this.constr) == "9")
     {
         Common.Write(this.m_Pdm, this.constr.Replace("master", this.comboBoxDatabase.Text.Trim()) + (object)"," + (string)(object)DataType.MSSQLSRV2005);
         this.m_FrmStart.MyDataType   = DataType.MSSQLSRV2005;
         this.m_FrmStart.DialogResult = DialogResult.OK;
         int num = (int)this.m_FrmStart.MessageBoxShow(BaseBusiness.GetResourceValue("baocunchenggong"), MessageBoxIcon.Asterisk, MessageBoxButtons.OK);
         this.Close();
     }
     else
     {
         Common.Write(this.m_Pdm, this.constr.Replace("master", this.comboBoxDatabase.Text.Trim()) + (object)"," + (string)(object)DataType.MSSQLSRV2008);
         this.m_FrmStart.MyDataType   = DataType.MSSQLSRV2008;
         this.m_FrmStart.DialogResult = DialogResult.OK;
         int num = (int)this.m_FrmStart.MessageBoxShow(BaseBusiness.GetResourceValue("baocunchenggong"), MessageBoxIcon.Asterisk, MessageBoxButtons.OK);
         this.Close();
     }
 }
Exemple #8
0
 private void btnLogin_Click(object sender, EventArgs e)
 {
     try
     {
         string text1 = this.txtUname.Text;
         if (string.IsNullOrWhiteSpace(text1))
         {
             int num1 = (int)this.m_FrmStart.MessageBoxShow(BaseBusiness.GetResourceValue("youxiangbunengweikong"), MessageBoxIcon.Exclamation, MessageBoxButtons.OK);
         }
         else
         {
             string text2 = this.txtUpwd.Text;
             if (string.IsNullOrWhiteSpace(text2))
             {
                 int num2 = (int)this.m_FrmStart.MessageBoxShow(BaseBusiness.GetResourceValue("yanzhengmabunengweikong"), MessageBoxIcon.Exclamation, MessageBoxButtons.OK);
             }
             else
             {
                 string id = Common.GetID();
                 using (VersionClient versionClient = new VersionClient())
                 {
                     string version = versionClient.GetVersion(text1, text2, id);
                     versionClient.Close();
                     if (string.IsNullOrWhiteSpace(version))
                     {
                         int num3 = (int)this.m_FrmStart.MessageBoxShow(BaseBusiness.GetResourceValue("qinghedui"), MessageBoxIcon.Exclamation, MessageBoxButtons.OK);
                     }
                     else
                     {
                         int num4 = (int)this.m_FrmStart.MessageBoxShow(BaseBusiness.GetResourceValue("jihuochenggong"), MessageBoxIcon.Asterisk, MessageBoxButtons.OK);
                         this.btnClose_Click(sender, e);
                     }
                 }
             }
         }
     }
     catch (Exception ex)
     {
         int num = (int)this.m_FrmStart.MessageBoxShow(BaseBusiness.GetResourceValue("CheckNetwork") + "\r\n" + ex.Message, MessageBoxIcon.Exclamation, MessageBoxButtons.OK);
     }
 }
Exemple #9
0
        private void LoadServer()
        {
            this.treeView1.Nodes.Clear();
            TreeNode node1 = new TreeNode(BaseBusiness.GetResourceValue("shujuku"));

            node1.Tag                = (object)"serverlist";
            node1.ImageIndex         = 2;
            node1.SelectedImageIndex = 2;
            node1.Checked            = true;
            this.treeView1.Nodes.Add(node1);
            TreeNode node2 = new TreeNode(BaseBusiness.GetResourceValue("biao"));

            node2.Tag                = (object)"serverlist";
            node2.ImageIndex         = 3;
            node2.SelectedImageIndex = 4;
            node2.Checked            = true;
            node1.Nodes.Add(node2);
            TreeNode node3 = new TreeNode(BaseBusiness.GetResourceValue("shitu"));

            node3.Tag                = (object)"serverlist";
            node3.ImageIndex         = 3;
            node3.SelectedImageIndex = 4;
            node3.Checked            = true;
            node1.Nodes.Add(node3);
            node1.ExpandAll();
            try
            {
                IData dataSource = new DataFactory().CreateDataSource(this.m_FrmStart.MyDataType);
                if (dataSource == null)
                {
                    return;
                }
                DataSourse data = dataSource.GetData(this.m_FrmStart.GetPdmConn());
                if (!string.IsNullOrWhiteSpace(data.m_ErrorMessage))
                {
                    int num = (int)this.m_FrmStart.MessageBoxShow(data.m_ErrorMessage, MessageBoxIcon.Asterisk, MessageBoxButtons.OK);
                }
                else
                {
                    List <Table> list1 = Common.ConvertT(data.ListTable);
                    List <View>  list2 = Common.ConvertT(data.ListView);
                    if (list1 != null)
                    {
                        foreach (Table table1 in list1)
                        {
                            Table table = table1;
                            if (!Enumerable.Any <string>((IEnumerable <string>) this.WorkflowTableAndSys, (Func <string, bool>)(a => a.ToLower() == table.Code.ToLower())))
                            {
                                node2.Nodes.Add(new TreeNode(table.Name)
                                {
                                    ImageIndex         = 5,
                                    SelectedImageIndex = 5,
                                    Tag     = (object)table.Id,
                                    Checked = true
                                });
                            }
                        }
                    }
                    if (list2 != null)
                    {
                        foreach (View view1 in list2)
                        {
                            View view = view1;
                            if (!Enumerable.Any <string>((IEnumerable <string>) this.WorkflowView, (Func <string, bool>)(a => a.ToLower() == view.Code.ToLower())))
                            {
                                node3.Nodes.Add(new TreeNode(view.Name)
                                {
                                    ImageIndex         = 6,
                                    SelectedImageIndex = 6,
                                    Tag     = (object)view.Id,
                                    Checked = true
                                });
                            }
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                try
                {
                    using (VersionClient versionClient = new VersionClient())
                    {
                        versionClient.WriteExceptions(new SysException()
                        {
                            ComputerInfo = Common.GetID(),
                            Message      = ex.Message,
                            StackTrace   = ex.StackTrace
                        });
                        versionClient.Close();
                        int num = (int)this.m_FrmStart.MessageBoxShow(ex.Message, MessageBoxIcon.Hand, MessageBoxButtons.OK);
                    }
                }
                catch
                {
                }
            }
        }