Example #1
0
        private async void SetNew()
        {
            Shiper   = new customer();
            Reciever = new customer();
            this.Id  = await CodeGenerate.GetNewPTINumber();

            this.ActiveStatus = ActivedStatus.OK;
            this.CreatedDate  = DateTime.Now;
            this.Etc          = 0;
            this.Note         = string.Empty;
            this.PayType      = PayType.Chash;
            this.RecieverId   = 0;
            this.ShiperID     = 0;
            Shiper            = new customer();
            Reciever          = new customer();
            this.FromId       = SettingConfiguration.GetIntValue("CityId");
            Collies.Clear();
            SourceView.Refresh();

            SumBerat = 0;
            SumBiaya = 0;
            SumColly = 0;
        }
Example #2
0
 private void PrintPreviewAction(object obj)
 {
     Helpers.PrintPreviewWithFormAction("Print Preview", new ReportDataSource {
         Value = Collies.ToList()
     }, "MainApp.Reports.Layouts.PTI.rdlc", null);
 }