Ejemplo n.º 1
0
 /// <summary>
 /// 从当前年报取得组织信息——内部方法
 /// </summary>
 private void ShowOrgInfo()
 {
     Util.Org o = Util.GetOrg();
     lblOrgId.Text   = "组织代码:" + o.Id;
     lblOrgName.Text = "组织名称:" + o.Name;
     lblDate.Text    = "报告期:" + o.NbStart + "-" + o.NbEnd;
 }
Ejemplo n.º 2
0
        private void tbSM_Click(object sender, EventArgs e)
        {
            List <string> sections = new List <string>();

            Util.smFile.ReadSections(sections);
            if (sections.Count > 0)
            {
                Util.Org o = new Util.Org();
                o           = Util.GetOrg();
                SD.FileName = o.Id + o.Name + o.NbStart + "-" + o.NbEnd;
                if (SD.ShowDialog() == DialogResult.OK && SD.FileName.Length > 0)
                {
                    System.IO.File.Copy(Util.smFilePath, SD.FileName);
                }
            }
        }