当前位置: 首页>>代码示例>>C#>>正文


C# Common.Utilities.XuLy方法代码示例

本文整理汇总了C#中Common.Utilities.XuLy方法的典型用法代码示例。如果您正苦于以下问题:C# Common.Utilities.XuLy方法的具体用法?C# Common.Utilities.XuLy怎么用?C# Common.Utilities.XuLy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Common.Utilities的用法示例。


在下文中一共展示了Common.Utilities.XuLy方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: DoDuLieu

 /// <summary>
 /// hungvv =================do du lieu vao txt===========================
 /// </summary>
 /// <param name="dat"></param>
 private void DoDuLieu(Entities.DonDatHang dat)
 {
     try
     {
         Common.Utilities com = new Common.Utilities();
         ID = dat.DonDatHangID;
         txtSodonhang.Text = dat.MaDonDatHang;
         manhacungcap = "" + dat.MaNhaCungCap;
         //txtManhacungcap.Text = manhacungcap;
         txtTrangthaidonhang.Text = dat.TrangThaiDonDatHang;
         cbxMaKho.SelectedValue = dat.MaKho;
         makNgaydonhang.Text = com.XuLy(2, this.dathang.NgayDonHang.ToString());
         makNgaynhapdukien.Text = com.XuLy(2, this.dathang.NgayNhapDuKien.ToString());
         txtNohienthoi.Text = dat.NoHienThoi.ToString();
         txtPhuongthucvanchuyen.Text = "Tự vận chuyển";
         cbxHinhthucthanhtoan.SelectedItem = dat.HinhThucThanhToan.ToString();
         cbxNhanvien.SelectedValue = dat.MaNhanVien.ToString();
         check_loaidathang.Checked = dat.LoaiDonDatHang;
         cbxTiente_Tygia.SelectedValue = dat.MaTienTe.ToString();
         txtDiengiai.Text = dat.GhiChu;
         txtPhikhac.Text = dat.PhiKhac.ToString();
         txtPhivanchuyen.Text = dat.Phivanchuyen.ToString();
         makhachhang = "" + dat.Makhachhang;
         if (makhachhang != "")
         { check_loaidathang.Checked = false; txtManhacungcap.Text = makhachhang; checkData(); GiaTriCanLuu.makhachhang = makhachhang; GiaTriCanLuu.Ma = manhacungcap; }
         if (manhacungcap != "")
         { check_loaidathang.Checked = true; txtManhacungcap.Text = manhacungcap; checkData(); GiaTriCanLuu.Ma = manhacungcap; GiaTriCanLuu.makhachhang = makhachhang; }
         if (makhachhang != "" && manhacungcap != "")
         {
             if (check_loaidathang.Checked == false)
             { txtManhacungcap.Text = makhachhang; checkData(); GiaTriCanLuu.makhachhang = "" + dat.Makhachhang; }
             if (check_loaidathang.Checked == true)
             { txtManhacungcap.Text = manhacungcap; checkData(); GiaTriCanLuu.Ma = "" + dat.MaNhaCungCap; }
         }
         ///tim theo ma
         HienThi_ChiTiet_DonDatHang();
         if (dat.TrangThaiDonDatHang == "Đã thành công")
         {
             toolStrip_Insert.Enabled = false;
             btnTimnhacungcap.Enabled = false;
             toolStripStatus_Them.Enabled = false;
             toolStripStatus_Ghilai.Enabled = false;
             toolStripStatusLabel3.Enabled = false;
         }
         else
         { }
     }
     catch (Exception ex)
     { string s = ex.Message; }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:54,代码来源:frmXuLyDonDatHang.cs

示例2: DoDuLieu

 /// <summary>
 /// hungvv =================do du lieu vao txt===========================
 /// </summary>
 /// <param name="dat"></param>
 private void DoDuLieu(Entities.DonDatHang dat)
 {
     Common.Utilities com = new Common.Utilities();
     txtSodonhang.Text = dat.MaDonDatHang;
     txtManhacungcap.Text = dat.MaNhaCungCap;
     GiaTriCanLuu.Ma = dat.MaNhaCungCap;
     txtTrangthaidonhang.Text = dat.TrangThaiDonDatHang;
     cbxDieukienthanhtoan.SelectedValue = dat.DieuKienThanhToan;
     cbxMaKho.Text = dat.MaKho;
     makNgaydonhang.Text = com.XuLy(2,this.dathang.NgayDonHang.ToString());
     makNgaynhapdukien.Text = com.XuLy(2,this.dathang.NgayNhapDuKien.ToString());
     txtNohienthoi.Text = dat.NoHienThoi.ToString();
     txtPhuongthucvanchuyen.Text = dat.ToString();
     cbxDieukienthanhtoan.SelectedItem = dat.DieuKienThanhToan.ToString();
     cbxHinhthucthanhtoan.SelectedItem = dat.HinhThucThanhToan.ToString();
     cbxNhanvien.SelectedValue = dat.MaNhanVien.ToString();
     check_loaidathang.Checked = dat.LoaiDonDatHang;
     cbxTiente_Tygia.SelectedValue = dat.MaTienTe.ToString();
     txtDiengiai.Text = dat.GhiChu;
     txtPhikhac.Text = dat.PhiKhac.ToString();
     txtPhivanchuyen.Text = dat.Phivanchuyen.ToString();
     HienThi_ChiTiet_DonDatHang();
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:27,代码来源:frmXuLy_DonDatHang.cs

示例3: DoDuLieu

 /// <summary>
 /// hungvv =================do du lieu vao txt===========================
 /// </summary>
 /// <param name="dat"></param>
 private void DoDuLieu(Entities.HoaDonNhap dat)
 {
     Common.Utilities com = new Common.Utilities();
     txtSodonhang.Text = dat.MaHoaDonNhap;
     txtManhacungcap.Text = dat.MaNhaCungCap;
     GiaTriCanLuu.Ma = dat.MaNhaCungCap;
     makNgaydonhang.Text = com.XuLy(2,dat.NgayNhap.ToString());
     makHanthanhtoan.Text = com.XuLy(2, dat.HanThanhToan.ToString());
     txtNohienthoi.Text = dat.NoHienThoi.ToString();
     txtnguoigiaohang.Text = dat.NguoiGiaoHang;
     cbxHinhthucthanhtoan.SelectedItem = dat.HinhThucThanhToan;
     cbxKhoHang.SelectedValue = dat.MaKho;
     cbxDieuKienThanhToan.SelectedItem = dat.DieuKienThanhToan;
     txtMadondathang.Text= dat.MaDonDatHang;
     cbxTienTe_TyGia.SelectedValue = dat.MaTienTe;
     txtChietkhau.Text = dat.ChietKhau.ToString();
     txtThanhtoanngay.Text = dat.ThanhToanNgay.ToString();
     txtGiatrigiatang.Text = dat.ThueGTGT.ToString();
     txtTongtien.Text = dat.TongTien.ToString();
     txtDiengiai.Text = dat.GhiChu;
     //HienThi_ChiTiet_HoaDonNhap();
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:26,代码来源:frmXuLy_HoaDonNhap.cs


注:本文中的Common.Utilities.XuLy方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。