public FormXnDenMawb(IMasterBillServices masterBillServices, IShipmentServices shipmentServices
                             , IBoxInforServices boxInforServices, IShipmentOutServices shipmentOutServices
                             , IManifestServices manifestServices)
        {
            InitializeComponent();
            _masterBillServices  = masterBillServices;
            _shipmentServices    = shipmentServices;
            _shipmentOutServices = shipmentOutServices;
            _boxInforServices    = boxInforServices;
            _manifestServices    = manifestServices;
            currentEmployee      = FormLogin.mEmployee;

            txtMAWB.Text = "";
            txtMAWB.Focus();
            CloseBox();
            ResetFormInfoNhap();
            btnXNĐ.Enabled = false;
            this.Text      = "Xác nhận đến theo MAWB- " + FormUltils.getInstance().GetVersionInfo();
        }
Ejemplo n.º 2
0
 //private readonly string DECLARATIONNO = "Số TK";
 //private readonly string DATEOFCOMPLETION = "Ngày thông quan";
 public FormNhap(IMasterBillServices masterBillServices, IShipmentServices shipmentServices
                 , IBoxInforServices boxInforServices, IShipmentOutServices shipmentOutServices
                 , IManifestServices manifestServices, IShipmentOutTempServices shipmentOutTempServices)
 {
     InitializeComponent();
     _masterBillServices      = masterBillServices;
     _shipmentServices        = shipmentServices;
     _shipmentOutServices     = shipmentOutServices;
     _boxInforServices        = boxInforServices;
     _manifestServices        = manifestServices;
     _shipmentOutTempServices = shipmentOutTempServices;
     currentEmployee          = FormLogin.mEmployee;
     BuildingTheGridviewRowStrure();
     AddDeleteButtonToGridView(grvShipments);
     dtpNgayDen.CustomFormat = "dd/MM/yyyy";
     ResetHardCodeText();
     LoadAllMasterBillByDateToCombobox(cbbMasterBill);
     cbbMasterBill.SelectedText = "";
     FillInforXacNhanDen();
     CloseBox();
     ResetFormInfoNhap();
     dtpNgayDen.Focus();
     this.Text = "Xác nhận đến - " + FormUltils.getInstance().GetVersionInfo();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Public constructor to initialize manifest service instance
 /// </summary>
 public ManifestController(IManifestServices manifestServices)
 {
     _manifestServices = manifestServices;
 }