Esempio n. 1
0
        /// <summary>
        /// 打开出纳打印方案管理窗口
        /// </summary>
        /// <param name="owner">宿主窗口</param>
        public void OnProjectManager(IWin32Window owner)
        {
            ProjectManageDlg dlg = new ProjectManageDlg();
            MainForm.SetControlFont(dlg, this.MainForm.DefaultFont, false);
            dlg.ProjectsUrl = "http://dp2003.com/dp2circulation/projects/projects.xml";
            dlg.HostName = "OperHistory";
            dlg.scriptManager = this.ScriptManager;
            dlg.AppInfo = this.MainForm.AppInfo;
            dlg.DataDir = this.MainForm.DataDir;
            dlg.StartPosition = FormStartPosition.CenterScreen;

            this.m_bNeedReload = false;

            dlg.CreateProjectXmlFile -= new AutoCreateProjectXmlFileEventHandle(dlg_CreateProjectXmlFile);
            dlg.CreateProjectXmlFile += new AutoCreateProjectXmlFileEventHandle(dlg_CreateProjectXmlFile);

            dlg.ShowDialog(owner);

            // 如果需要重新装载project xml
            if (this.m_bNeedReload == true)
            {
                string strError = "";
                try
                {
                    ScriptManager.Load();
                }
                catch (Exception ex)
                {
                    strError = "load script manager error: " + ex.Message;
                    MessageBox.Show(owner, strError);
                }
            }
        }
Esempio n. 2
0
        private void menuItem_projectManage_Click(object sender, System.EventArgs e)
        {
            ProjectManageDlg dlg = new ProjectManageDlg();
            MainForm.SetControlFont(dlg, this.DefaultFont);

            dlg.DataDir = this.DataDir;
            dlg.ProjectsUrl = "http://dp2003.com/dp2batch/projects/projects.xml";
            dlg.HostName = "dp2Batch";
            dlg.scriptManager = this.scriptManager;
            dlg.AppInfo = AppInfo;
            dlg.StartPosition = FormStartPosition.CenterScreen;
            dlg.ShowDialog(this);
        }
Esempio n. 3
0
        // 方案管理
        private void button_projectManage_Click(object sender, EventArgs e)
        {
            ProjectManageDlg dlg = new ProjectManageDlg();
            MainForm.SetControlFont(dlg, this.Font, false);

            dlg.ProjectsUrl = "http://dp2003.com/dp2circulation/projects/projects.xml";
            dlg.HostName = "OperLogStatisForm";
            dlg.scriptManager = this.ScriptManager;
            dlg.AppInfo = this.MainForm.AppInfo;
            dlg.DataDir = this.MainForm.DataDir;
            dlg.StartPosition = FormStartPosition.CenterScreen;
            dlg.ShowDialog(this);
        }
Esempio n. 4
0
 private void button_projectManage_Click(object sender, EventArgs e)
 {
     ProjectManageDlg dlg = new ProjectManageDlg();
     MainForm.SetControlFont(dlg, this.Font, false);
     dlg.ProjectsUrl = "http://dp2003.com/dp2circulation/projects/projects.xml";
     if (this.DbType == "item")
         dlg.HostName = "ItemStatisForm";
     else if (this.DbType == "order")
         dlg.HostName = "OrderStatisForm";
     else if (this.DbType == "issue")
         dlg.HostName = "IssueStatisForm";
     else if (this.DbType == "comment")
         dlg.HostName = "CommentStatisForm";
     dlg.scriptManager = this.ScriptManager;
     dlg.AppInfo = this.MainForm.AppInfo;
     dlg.DataDir = this.MainForm.DataDir;
     dlg.StartPosition = FormStartPosition.CenterScreen;
     dlg.ShowDialog(this);
 }