Esempio n. 1
0
        private void frmProductEnvanter_Load(object sender, EventArgs e)
        {
            mspTool.Get_Layout(this);

            _productlist           = _repository.Run <DepotStockService, List <ProductDTO> >(x => x.GetListProduct());
            bs_products.DataSource = _productlist;
        }
Esempio n. 2
0
        private void frmStockMovement_Load(object sender, EventArgs e)
        {
            _productlist           = _repository.Run <DepotStockService, List <ProductDTO> >(x => x.GetListProduct());
            bs_products.DataSource = _productlist;

            __List_ProductMocemenet     = _repository.Run <DepotStockService, List <ProductMovementDTO> >(x => x.GetListProduct_Movement(PId));
            bs_ProductMovent.DataSource = __List_ProductMocemenet;


            mspTool.Get_Layout(this);
        }
Esempio n. 3
0
        private void frmEnvanterBilgiler_Load(object sender, EventArgs e)
        {
            MspTool.Get_Layout(this);
            _productlist          = AppMain.Products.ToList(); //_repository.Run<DepotStockService, List<ProductDTO>>(x => x.GetListProduct());
            bs_Product.DataSource = _productlist;

            _company = _repository.Run <StartUp, List <CompanyDTO> >(x => x.GetList_Company());
            bs_company.DataSource = _company;

            _depotList          = _repository.Run <DepotService, List <DepotDTO> >(x => x.GetListDepot());
            bs_Depot.DataSource = _depotList;

            if (_productlist.Count > 0)
            {
                lp_PRoductBegin.EditValue = _productlist[0].PID;
                lp_PRoductEnd.EditValue   = _productlist[_productlist.Count - 1].PID;
            }
            if (_company.Count > 0)
            {
                lc_Company.EditValue = AppMain.CompanyRecId;
            }
            if (_depotList.Count > 0)
            {
                lc_Depot.EditValue = _depotList[0].DID;
            }
        }
Esempio n. 4
0
 private void frmDovizKurlari_Load(object sender, EventArgs e)
 {
     this.dateEdit1.DateTime   = DateTime.Today;
     bs_ExranceRate.DataSource = __List_exchanceRate;
     satirKontrol();
     MspTool.Get_Layout(this);
 }
Esempio n. 5
0
        private void frmKasaReportFilter_Load(object sender, EventArgs e)
        {
            mspTool.Get_Layout(this);

            switch (FormType)
            {
            case 1:
                layoutControlGroup1.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                layoutControlGroup2.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                break;

            case 2:
                layoutControlGroup1.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                layoutControlGroup2.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                break;

            default:
                break;
            }
            __List_CaseDef         = _repository.Run <DefinitionsService, List <CaseDefinitionDTO> >(x => x.Get_List_CaseDef(AppMain.CompanyRecId));
            bs_CaseList.DataSource = __List_CaseDef;

            dt_BaslangicDate.EditValue = DateTime.Today;
            dt_BitisDate.EditValue     = DateTime.Today;
        }
Esempio n. 6
0
        public void Show(int _RecId)
        {
            RecId = _RecId;


            if (_FormOpenType == FormOpenType.New)
            {
                __cTransaction = new CTransactionsDTO();
                __cTransaction.CurCreatedDate = DateTime.Now;
                br_Fatura.Enabled             = false;
                br_Irsaliye.Enabled           = false;
                br_Siparis.Enabled            = false;
            }
            if (_FormOpenType == FormOpenType.Edit)
            {
                __cTransaction = _repository.Run <CurrentTransactionsService, CTransactionsDTO>(x => x.GetCurrentTransaction(_RecId));
            }
            bs_CTrans.DataSource = __cTransaction;
            do_CurrentGroupDefinitions();
            do_LookSevkBilgileri();


            MspTool.Get_Layout(this);

            this.ShowDialog();
        }
Esempio n. 7
0
        private void OrderList_Load(object sender, EventArgs e)
        {
            switch (orderType)
            {
            case OrderType.AlisSiparis:
                this.Text = "Alış Sipariş Listesi";
                break;

            case OrderType.SatisSiparis:
                this.Text = "Satış Sipariş Listesi";
                break;

            case OrderType.AllSiparis:
                this.Text = "Alış/Satış Sipariş Listesi";
                break;

            case OrderType.BekleyenSiparis:
                this.Text = "Bekleyen Siparişler";
                break;

            default:
                break;
            }
            MspTool.Get_Layout(this);


            _list_UnitsDTO     = _repository.Run <DepotStockService, List <UnitsDTO> >(x => x.GetListUnit());
            bs_Unit.DataSource = _list_UnitsDTO;

            _productlist          = _repository.Run <DepotStockService, List <ProductDTO> >(x => x.GetListProduct());
            bs_Product.DataSource = _productlist;

            _currentTransactionsList = _repository.Run <CurrentTransactionsService, List <CTransactionsDTO> >(x => x.GetListCurrentTransactions());
            bs_CariHesap.DataSource  = _currentTransactionsList;

            _company = _repository.Run <StartUp, List <CompanyDTO> >(x => x.GetList_Company());
            bs_company.DataSource = _company;

            _currencyTypes             = _repository.Run <DefinitionsService, List <CurrencyTypeDTO> >(x => x.Get_List_CurrencyType());
            bs_CurrencyType.DataSource = _currencyTypes;

            rp_OrderType.DataSource    = OrdType;
            rp_OrderType.ValueMember   = "Id";
            rp_OrderType.DisplayMember = "Value";

            rp_TeklifSiparis.DataSource    = teklifSiparis;
            rp_TeklifSiparis.ValueMember   = "Id";
            rp_TeklifSiparis.DisplayMember = "Value";

            //rp_.DataSource = KdvOrani;
            //rp_KDV.ValueMember = "Id";
            //rp_KDV.DisplayMember = "Value";



            do_refresh();
        }
Esempio n. 8
0
        private void frmSpeedSatis_Load(object sender, EventArgs e)
        {
            __dl_SaleOwner.Date = DateTime.Now;
            _list_UnitsDTO      = _repository.Run <DepotStockService, List <UnitsDTO> >(x => x.GetListUnit());
            _list_PaymnetType   = _repository.Run <DefinitionsService, List <PaymentTypeDTO> >(x => x.GetListPayments());

            rp_Unit.DataSource    = _list_UnitsDTO;
            rp_KdvOran.DataSource = KdvOrani;

            mspTool.Get_Layout(this);
        }
Esempio n. 9
0
        private void FindOrderList_Load(object sender, EventArgs e)
        {
            do_refresh();

            _currentTransactionsList = _repository.Run <CurrentTransactionsService, List <CTransactionsDTO> >(x => x.GetListCurrentTransactions());
            bs_CariHesap.DataSource  = _currentTransactionsList;

            companies             = _repository.Run <StartUp, List <CompanyDTO> >(x => x.GetList_Company());
            bs_company.DataSource = companies;

            otool.Get_Layout(this);
        }
Esempio n. 10
0
        private void frmStockBakiye_Load(object sender, EventArgs e)
        {
            MspTool.Get_Layout(this);
            dt_BeginDate.EditValue = DateTime.Today;
            dt_EndDate.EditValue   = DateTime.Today;

            _list_UnitsDTO     = _repository.Run <DepotStockService, List <UnitsDTO> >(x => x.GetListUnit());
            bs_Unit.DataSource = _list_UnitsDTO;

            _depotList          = _repository.Run <DepotService, List <DepotDTO> >(x => x.GetListDepot());
            bs_Depot.DataSource = _depotList;
        }
Esempio n. 11
0
        private void frmSaleProductMovemnet_Load(object sender, EventArgs e)
        {
            //_parameters = _repository.Run<SettingsService, ParametersDTO>(x => x.Get_Parameters());
            __List_CaseDef         = _repository.Run <DefinitionsService, List <CaseDefinitionDTO> >(x => x.Get_List_CaseDef(AppMain.CompanyRecId));
            bs_CaseList.DataSource = __List_CaseDef;
            if (__List_CaseDef.Count > 0)
            {
                lc_CaseDef.EditValue = __List_CaseDef.FirstOrDefault().RecId;
            }

            _currencyTypes             = _repository.Run <DefinitionsService, List <CurrencyTypeDTO> >(x => x.Get_List_CurrencyType());
            bs_CurrencyType.DataSource = _currencyTypes;

            _productlist           = _repository.Run <DepotStockService, List <ProductDTO> >(x => x.GetListProduct());
            bs_products.DataSource = _productlist;

            _list_UnitsDTO     = _repository.Run <DepotStockService, List <UnitsDTO> >(x => x.GetListUnit());
            bs_Unit.DataSource = _list_UnitsDTO;

            rp_KdvOran.DataSource    = KdvOrani;
            rp_KdvOran.DisplayMember = "Value";
            rp_KdvOran.ValueMember   = "Id";

            __dll_SaleOwner      = new SaleOwnerDTO();
            __dll_SaleOwner.Date = DateTime.Now;
            txt_Date.EditValue   = DateTime.Now;

            _list_PaymnetType         = _repository.Run <DefinitionsService, List <PaymentTypeDTO> >(x => x.GetListPayments());
            bs_PaymentType.DataSource = _list_PaymnetType;
            __dll_SaleBarcodCreate    = _repository.Run <SaleService, List <SaleBarcodCreateDTO> >(x => x.GetList_SaleBarcodCreateDTO());

            daily_SaleProduct();
            mspTool.Get_Layout(this);

            try
            {
                if (_parameters.IsBarcode.GetValueOrDefault())
                {
                    if (!(serialPort1.IsOpen))
                    {
                        serialPort1.Open();
                    }
                    serialPort1.DataReceived += new SerialDataReceivedEventHandler(serialPort1_DataReceived);
                }
            }
            catch (Exception ex)
            {
                //MessageBox.Show("Okutma Cihazına Erişilemiyor : " + ex.Message, "Error!");
            }
        }
Esempio n. 12
0
        private void frmOpenFormRights_Load(object sender, EventArgs e)
        {
            mspTool.Get_Layout(this);

            __List_users           = _repository.Run <SettingsService, List <UsersDTO> >(x => x.GetListUser());
            bs_UserList.DataSource = __List_users;

            lc_Users.EditValue = AppMain.User.username;
            if (AppMain.User.AdminAuthority == true)
            {
                lbGroupKullanıcı.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
            }
            else
            {
                lbGroupKullanıcı.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
            }
            do_refresh();
        }
Esempio n. 13
0
        private void frmKasaHareketList_Load(object sender, EventArgs e)
        {
            __List_CaseDef            = _repository.Run <DefinitionsService, List <CaseDefinitionDTO> >(x => x.Get_List_CaseDef(AppMain.CompanyRecId));
            bs_CaseList.DataSource    = __List_CaseDef;
            _list_PaymnetType         = _repository.Run <DefinitionsService, List <PaymentTypeDTO> >(x => x.GetListPayments());
            bs_PaymentType.DataSource = _list_PaymnetType;
            cashGroup = _repository.Run <DefinitionsService, List <CashPayGroupDefDTO> >(x => x.Get_List_CashPayGroup());
            bs_CashPayGroupDef.DataSource = cashGroup;
            rp_IslemTuru.DataSource       = IslemTuru;
            rp_IslemTuru.ValueMember      = "Id";
            rp_IslemTuru.DisplayMember    = "Value";
            _currencyTypes             = _repository.Run <DefinitionsService, List <CurrencyTypeDTO> >(x => x.Get_List_CurrencyType());
            bs_CurrencyType.DataSource = _currencyTypes;
            _currentTransactionsList   = _repository.Run <CurrentTransactionsService, List <CTransactionsDTO> >(x => x.GetListCurrentTransactions());
            bs_CariHesap.DataSource    = _currentTransactionsList;

            do_refresh();
            mspTool.Get_Layout(this);
        }
Esempio n. 14
0
 private void frmSatis_Load(object sender, EventArgs e)
 {
     try
     {
         if (_parameters.IsBarcode.GetValueOrDefault())
         {
             if (!(serialPort1.IsOpen))
             {
                 serialPort1.Open();
             }
             serialPort1.DataReceived += new SerialDataReceivedEventHandler(serialPort1_DataReceived);
         }
     }
     catch (Exception ex)
     {
         //MessageBox.Show("Okutma Cihazına Erişilemiyor : " + ex.Message, "Error!");
     }
     btn_N0.AutoWidthInLayoutControl = true;
     MspTool.Get_Layout(this);
     toggleSwitch1.IsOn = Convert.ToBoolean(Registry.CurrentUser.OpenSubKey(@"Software\MSP").GetValue("ParaUstu").ToString());
 }
Esempio n. 15
0
 private void frmMusterVeresiyeDetail_Load(object sender, EventArgs e)
 {
     do_refresh();
     mspTool.Get_Layout(this);
 }
Esempio n. 16
0
 private void frmHareketGormeyenRecord_Load(object sender, EventArgs e)
 {
     dt_BaslangicDate.EditValue = DateTime.Today;
     dt_EndDate.EditValue       = DateTime.Today;
     mspTool.Get_Layout(this);
 }
Esempio n. 17
0
 private void CashPayGroupDef_Load(object sender, EventArgs e)
 {
     do_refresh();
     MspTool.Get_Layout(this);
 }
Esempio n. 18
0
 private void frmKasaHareketi_Load(object sender, EventArgs e)
 {
     mspTool.Get_Layout(this);
 }
Esempio n. 19
0
        private void InvoiceList_Load(object sender, EventArgs e)
        {
            switch (invoice)
            {
            case InvoiceType.AlımFaturası:
                this.Text = "Alım Faturası Listesi";
                break;

            case InvoiceType.SatisFaturasi:
                this.Text = "Satış Faturası Listesi";
                break;

            case InvoiceType.AllFatura:
                this.Text       = "Alım/Satış Faturası Listesi";
                btnNew.Enabled  = false;
                btnEdit.Enabled = false;
                break;

            case InvoiceType.AlisIrsaliye:
                this.Text = "Alış İrsaliyesi Listesi";
                break;

            case InvoiceType.SatisIrsaliye:
                this.Text = "Satış İrsaliyesi Listesi";
                break;

            case InvoiceType.AllIrsaliye:
                this.Text       = "Alış/Satış İrsaliyesi Listesi";
                btnNew.Enabled  = false;
                btnEdit.Enabled = false;
                break;

            case InvoiceType.BekleyenIrsaliye:
                this.Text       = "Bekleyen Irsaliye Listesi";
                btnNew.Enabled  = false;
                btnEdit.Enabled = false;
                break;

            default:
                break;
            }
            MspTool.Get_Layout(this);
            do_refresh();

            rp_InvoiceType.DataSource    = IceType;
            rp_InvoiceType.ValueMember   = "Id";
            rp_InvoiceType.DisplayMember = "Value";

            _currentTransactionsList = _repository.Run <CurrentTransactionsService, List <CTransactionsDTO> >(x => x.GetListCurrentTransactions());
            rp_cari.DataSource       = _currentTransactionsList;
            rp_cari.ValueMember      = "CurID";
            rp_cari.DisplayMember    = "CurAccountName";

            var _depotList = _repository.Run <DepotService, List <DepotDTO> >(x => x.GetListDepot());

            rp_depot.DataSource    = _depotList;
            rp_depot.ValueMember   = "DID";
            rp_depot.DisplayMember = "DepName";

            _list_UnitsDTO = _repository.Run <DepotStockService, List <UnitsDTO> >(x => x.GetListUnit());
        }
Esempio n. 20
0
 private void frmGroupDefinition_Load(object sender, EventArgs e)
 {
     do_refresh();
     MspTool.Get_Layout(this);
 }
Esempio n. 21
0
 private void frmCaseDefinition_Load(object sender, EventArgs e)
 {
     mspTool.Get_Layout(this);
     do_refresh();
 }
Esempio n. 22
0
        private void InvoiceEdit_Load(object sender, EventArgs e)
        {
            MspTool.Get_Layout(this);

            switch (invoice)
            {
            case InvoiceType.AlımFaturası:
                this.Text = "Alım Faturası";
                lytSatisFaturasi.Visibility   = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                lc_IrsaliyeSaat.Visibility    = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                lcgr_FatutaBilgisi.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                lc_FaturaTuru.Visibility      = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                lc_VadeGun.Visibility         = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                lc_VadeTarih.Visibility       = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                lc_OdemeTuru.Visibility       = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                bbi_İrsaliyeCagir.Enabled     = true;
                bbi_Tahsilat.Caption          = "Ödeme";
                break;

            case InvoiceType.SatisFaturasi:
                this.Text = "Satış Faturası";
                lytSatisFaturasi.Visibility   = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                lc_IrsaliyeSaat.Visibility    = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                lcgr_FatutaBilgisi.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                lc_FaturaTuru.Visibility      = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                lc_VadeGun.Visibility         = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                lc_VadeTarih.Visibility       = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                lc_OdemeTuru.Visibility       = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                bbi_İrsaliyeCagir.Enabled     = true;
                bbi_Tahsilat.Caption          = "Tahsilat";
                break;

            case InvoiceType.AlisIrsaliye:
                this.Text = "Alış İrsaliyesi";
                lc_IrsaliyeSaat.Visibility    = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                lcgr_FatutaBilgisi.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                lc_FaturaTuru.Visibility      = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                lc_VadeGun.Visibility         = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                lc_VadeTarih.Visibility       = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                lc_OdemeTuru.Visibility       = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                bbi_İrsaliyeCagir.Enabled     = false;
                bbi_Tahsilat.Visibility       = DevExpress.XtraBars.BarItemVisibility.Never;
                break;

            case InvoiceType.SatisIrsaliye:
                this.Text = "Satış İrsaliyesi";
                lcgr_FatutaBilgisi.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                lc_IrsaliyeSaat.Visibility    = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                lc_FaturaTuru.Visibility      = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                lc_VadeGun.Visibility         = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                lc_VadeTarih.Visibility       = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                lc_OdemeTuru.Visibility       = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                bbi_İrsaliyeCagir.Enabled     = false;
                bbi_Tahsilat.Visibility       = DevExpress.XtraBars.BarItemVisibility.Never;
                break;

            default:
                break;
            }

            _currencyTypes             = _repository.Run <DefinitionsService, List <CurrencyTypeDTO> >(x => x.Get_List_CurrencyType());
            bs_CurrencyType.DataSource = _currencyTypes;

            _company = _repository.Run <StartUp, List <CompanyDTO> >(x => x.GetList_Company());
            bs_company.DataSource = _company;

            if (_FormOpenType == FormOpenType.New)
            {
                __dll_InvoiceOwner             = new InvoiceOwnerDTO();
                __dll_List_InoviceTrans        = new List <InvoiceTransDTO>();
                __dll_InvoiceOwner.InvoiceType = (int)invoice;
                __dll_InvoiceOwner.FicDate     = DateTime.Now;
                __dll_InvoiceOwner.VadeTarih   = DateTime.Now;
                __dll_InvoiceOwner.VadeGun     = 0;
                __dll_InvoiceOwner.KDV         = "Dahil";
                __dll_InvoiceOwner.CompanyId   = AppMain.CompanyRecId;
                lc_Company.EditValue           = AppMain.Company;
                if (_currencyTypes.Count > 0)
                {
                    __dll_InvoiceOwner.DovizTuru = _currencyTypes.FirstOrDefault(x => x.Remark == "TL").RecId;
                    lc_DovizTuru.EditValue       = _currencyTypes.FirstOrDefault(x => x.Remark == "TL").Remark;
                }
                if (CariId != 0)
                {
                    txtCariHesapAdi.EditValue = CariId;
                }
            }
            if (_FormOpenType == FormOpenType.Edit)
            {
                __dll_InvoiceOwner      = _repository.Run <InvoiceService, InvoiceOwnerDTO>(x => x.Get_Invoice(RecId));
                __dll_List_InoviceTrans = _repository.Run <InvoiceService, List <InvoiceTransDTO> >(x => x.Get_Edit_List_Trans(RecId));
            }
            if (_FormOpenType == FormOpenType.View)
            {
                gc_invoiceTrans.Enabled = false;
                bbi_save.Enabled        = false;
            }

            txtFaturaTipi.Properties.DataSource    = FaturaTuru;
            txtFaturaTipi.Properties.ValueMember   = "Id";
            txtFaturaTipi.Properties.DisplayMember = "Value";

            _list_UnitsDTO     = _repository.Run <DepotStockService, List <UnitsDTO> >(x => x.GetListUnit());
            bs_Unit.DataSource = _list_UnitsDTO;

            _productlist          = _repository.Run <DepotStockService, List <ProductDTO> >(x => x.GetListProduct());
            bs_Product.DataSource = _productlist;

            _currentTransactionsList = _repository.Run <CurrentTransactionsService, List <CTransactionsDTO> >(x => x.GetListCurrentTransactions());
            bs_CariHesap.DataSource  = _currentTransactionsList;



            _depotList          = _repository.Run <DepotService, List <DepotDTO> >(x => x.GetListDepot());
            bs_Depot.DataSource = _depotList;

            rp_KDV.DataSource    = KdvOrani;
            rp_KDV.ValueMember   = "Id";
            rp_KDV.DisplayMember = "Value";

            bs_InvoiceOwner.DataSource = __dll_InvoiceOwner;
            bs_InvoiceTrans.DataSource = __dll_List_InoviceTrans;
        }
Esempio n. 23
0
 private void frmUrunTanimlari_Load(object sender, EventArgs e)
 {
     do_refresh();
     MspTool.Get_Layout(this);
 }
Esempio n. 24
0
 private void FindIrsaliyeList_Load(object sender, EventArgs e)
 {
     MspTool.Get_Layout(this);
     do_refresh();
 }
Esempio n. 25
0
 private void frmDailyEndOpeList_Load(object sender, EventArgs e)
 {
     do_refresh();
     mspTool.Get_Layout(this);
 }
Esempio n. 26
0
 private void frmStockEdit_Load_1(object sender, EventArgs e)
 {
     MspTool.Get_Layout(this);
 }
Esempio n. 27
0
 private void LogList_Load(object sender, EventArgs e)
 {
     do_refresh();
     MspTool.Get_Layout(this);
 }
Esempio n. 28
0
        private void OrderEdit_Load(object sender, EventArgs e)
        {
            MspTool.Get_Layout(this);
            switch (OrderType)
            {
            case OrderType.AlisSiparis:
                this.Text = "Alış Sipariş";
                break;

            case OrderType.SatisSiparis:
                this.Text = "Satiş Sipariş";
                break;

            case OrderType.AllSiparis:
                break;

            case OrderType.BekleyenSiparis:
                break;

            default:
                break;
            }

            if (_FormOpenType == FormOpenType.New)
            {
                lc_Company.EditValue       = AppMain.Company;
                __orderOwner.CompanyId     = AppMain.CompanyRecId;
                __orderOwner.OrderType     = (int)OrderType;
                __orderOwner.SiparisNo     = "0";
                __orderOwner.TeklifSiparis = 0;
                __orderOwner.SiparisDate   = DateTime.Now;
                lbl_Durum.Text             = __orderOwner.Durum = "Bekliyor";
                bbi_SevkBilgileri.Enabled  = false;
            }
            if (_FormOpenType == FormOpenType.Edit)
            {
                __orderOwner = _repository.Run <OrderService, OrderOwnerDTO>(x => x.Get_OrderOwner(RecId));
                __orderTrans = _repository.Run <OrderService, List <OrderTransDTO> >(x => x.Get_OrderTrans(RecId));
                if (__orderOwner.IrsaliyeId != 0)
                {
                    bbi_SevkBilgileri.Enabled = true;
                }
                else
                {
                    bbi_SevkBilgileri.Enabled = false;
                }
            }
            if (_FormOpenType == FormOpenType.View)
            {
                __orderOwner       = _repository.Run <OrderService, OrderOwnerDTO>(x => x.Get_OrderOwner(RecId));
                __orderTrans       = _repository.Run <OrderService, List <OrderTransDTO> >(x => x.Get_OrderTrans(RecId));
                bbi_save.Enabled   = false;
                bbi_Delete.Enabled = false;
            }
            _list_UnitsDTO     = _repository.Run <DepotStockService, List <UnitsDTO> >(x => x.GetListUnit());
            bs_Unit.DataSource = _list_UnitsDTO;

            _productlist          = _repository.Run <DepotStockService, List <ProductDTO> >(x => x.GetListProduct());
            bs_Product.DataSource = _productlist;

            _currentTransactionsList = _repository.Run <CurrentTransactionsService, List <CTransactionsDTO> >(x => x.GetListCurrentTransactions());
            bs_CariHesap.DataSource  = _currentTransactionsList;

            _company = _repository.Run <StartUp, List <CompanyDTO> >(x => x.GetList_Company());
            bs_company.DataSource = _company;

            _currencyTypes             = _repository.Run <DefinitionsService, List <CurrencyTypeDTO> >(x => x.Get_List_CurrencyType());
            bs_CurrencyType.DataSource = _currencyTypes;

            rp_KDV.DataSource    = KdvOrani;
            rp_KDV.ValueMember   = "Id";
            rp_KDV.DisplayMember = "Value";

            bs_OrderOwner.DataSource = __orderOwner;
            bs_OrderTrans.DataSource = __orderTrans;
        }