示例#1
0
        /// <summary>
        /// 見積書改訂
        /// </summary>
        public void RevisionQuotation()
        {
            if (Quotations.Count.Equals(0))
            {
                Quotations.Add(new DataFileInfo(DataKind.Quotation, 0, DateTime.Now, 1, false));
            }
            else
            {
                Quotations.Add(new DataFileInfo(DataKind.Quotation, Quotations[Quotations.Count - 1].Revision + 1, DateTime.Now, 1, false));
            }

            SelectedQuotation = Quotations[Quotations.Count - 1];

            var file = new QuotationFile(SelectedQuotation)
            {
                JobName    = Name,
                QuoteNo    = new DocumentNoFile().UpdateDocumentNo(DataKind.Quotation),
                ClientName = SelectedClient?.Name
            };

            file.Save();
        }
示例#2
0
 /// <summary>
 /// 見積書ファイルを保存
 /// </summary>
 public void Save()
 {
     File.Save();
 }