public override void FunctionProcess(int index)
        {
            CKM_SearchControl sc = new CKM_SearchControl();

            switch (index + 1)
            {
            case 2:
                ChangeMode(EOperationMode.INSERT);
                break;

            case 6:
                if (bbl.ShowMessage("Q004") == DialogResult.Yes)
                {
                    ChangeMode(OperationMode);
                    Clear();
                    Btn_F10.Text = "出力(F10)";
                }
                break;

            case 10:
                if (bbl.ShowMessage("Q203") == DialogResult.Yes)
                {
                    ExportCSV();
                }
                break;

            case 11:
                F11();
                break;
            }
        }
Exemplo n.º 2
0
        private bool DisplayData(CKM_SearchControl sc)
        {
            mbste = new M_BankShiten_Entity();

            if (type == 1)
            {
                mbste.BankCD     = ScBankCD.Code;
                mbste.BranchCD   = sc.Code;
                mbste.ChangeDate = sc.ChangeDate;
            }
            else
            {
                mbste.BankCD     = ScCopyBankCD.Code;
                mbste.BranchCD   = ScCopyBranchCD.Code;
                mbste.ChangeDate = ScCopyBranchCD.ChangeDate;
            }


            mbste = mtbstbl.M_BankShiten_Select(mbste);
            if (mbste != null)
            {
                TxtBankBranchName.Text = mbste.BranchName;
                TxtKanaName.Text       = mbste.BranchKana;
                TxtRemark.Text         = mbste.Remarks;
                ChkDeleteFlg.Checked   = mbste.DeleteFlg.Equals("1") ? true : false;
                TxtBankBranchName.Focus();

                return(true);
            }
            else
            {
                mtbstbl.ShowMessage("E133");
                return(false);
            }
        }
Exemplo n.º 3
0
        public override void FunctionProcess(int index)
        {
            CKM_SearchControl sc = new CKM_SearchControl();

            switch (index + 1)
            {
            case 6:
                if (bbl.ShowMessage("Q004") == DialogResult.Yes)
                {
                    CanCelData();
                }
                break;

            case 10:
                if (GV_Zaiko.DataSource != null)
                {
                    if (bbl.ShowMessage("Q203") == DialogResult.Yes)
                    {
                        Excel();
                    }
                }
                else
                {
                    bbl.ShowMessage("E128");
                }
                break;

            case 11:
                F11();
                break;
            }
        }
        public override void FunctionProcess(int index)
        {
            CKM_SearchControl sc = new CKM_SearchControl();

            switch (index + 1)
            {
            case 2:
                ChangeMode(EOperationMode.INSERT);
                break;

            case 6:
                if (bbl.ShowMessage("Q004") == DialogResult.Yes)
                {
                    ChangeMode(EOperationMode.INSERT);
                    cboProcessType.Focus();
                }
                break;

            //case 11:
            //    F11();
            //    break;
            case 12:
                F12();
                break;
            }
        }
Exemplo n.º 5
0
        public override void FunctionProcess(int index)
        {
            CKM_SearchControl sc = new CKM_SearchControl();

            switch (index + 1)
            {
            case 3:
                ChangeMode(EOperationMode.UPDATE);
                break;

            case 5:
                ChangeMode(EOperationMode.SHOW);
                break;

            case 6:
                if (bbl.ShowMessage("Q004") == DialogResult.Yes)
                {
                    ChangeMode(OperationMode);
                    txtZip1from.Focus();
                }
                break;

            case 11:
                F11();
                break;

            case 12:
                F12();
                break;
            }
        }
        private bool DisplayData(CKM_SearchControl sc)
        {
            mge = new M_Ginkou_Entity
            {
                ginko_CD         = sc.Code,
                ginko_Changedate = sc.ChangeDate
            };

            mge = mgbl.M_Ginkou_Entity_select(mge);

            if (mge != null)
            {
                ginko_name.Text      = mge.ginko_Name;
                ginko_kananame.Text  = mge.ginko_kananame;
                ginko_remarks.Text   = mge.ginko_remarks;
                ChkDeleteFlg.Checked = mge.ginko_DeleteFlag.Equals("1") ? true : false;
                ginko_useflg.Text    = mge.ginko_useflag;
                ginko_name.Focus();

                return(true);
            }
            else
            {
                mgbl.ShowMessage("E133");
                return(false);
            }
        }
Exemplo n.º 7
0
        public override void FunctionProcess(int Index)
        {
            CKM_SearchControl sc = new CKM_SearchControl();

            switch (Index + 1)
            {
            case 2:
                ChangeMode(EOperationMode.INSERT);
                break;

            case 3:
                ChangeMode(EOperationMode.UPDATE);
                break;

            case 4:
            case 5:
                break;

            case 6:
                if (bbl.ShowMessage("Q004") == DialogResult.Yes)
                {
                    ChangeMode(OperationMode);
                    Sc_Item.SetFocus(1);
                }
                break;

            case 11:
                F11();
                break;

            case 12:
                F12();
                break;
            }
        }
 private void ScNormal_Leave(object sender, EventArgs e)
 {
     foreach (Control c in PanelDetail.Controls)
     {
         if (c is CKM_SearchControl)
         {
             CKM_SearchControl sc = c as CKM_SearchControl;
             sc.ChangeDate = ScStaff.ChangeDate;
         }
     }
 }
 private void ginKou_CD_Leave(object sender, EventArgs e)
 {
     foreach (Control c in PanelDetail.Controls)
     {
         if (c is CKM_SearchControl)
         {
             CKM_SearchControl sc = c as CKM_SearchControl;
             sc.ChangeDate = ginKou_CD.ChangeDate;
         }
     }
 }
        private bool DisplayData(CKM_SearchControl sc)
        {
            //*** Show Data
            staffdata = new M_Staff_Entity
            {
                StaffCD    = sc.Code,
                ChangeDate = sc.ChangeDate
            };

            dtStaff = mstaffBL.StaffDisplay(staffdata);

            if (dtStaff.Rows.Count > 0)
            {
                txtStaffName.Text                    = dtStaff.Rows[0]["StaffName"].ToString();
                txtStaffKana.Text                    = dtStaff.Rows[0]["StaffKana"].ToString();
                ScStore.Code                         = dtStaff.Rows[0]["StoreCD"].ToString();
                ScStore.LabelText                    = dtStaff.Rows[0]["StoreName"].ToString();
                cboBMNCD.SelectedValue               = dtStaff.Rows[0]["BMNCD"].ToString();
                cboMenu.SelectedValue                = dtStaff.Rows[0]["MenuCD"].ToString();
                cboStoreMenu.SelectedValue           = dtStaff.Rows[0]["StoreMenuCD"].ToString();
                cboAuthorizations.SelectedValue      = dtStaff.Rows[0]["AuthorizationsCD"].ToString();
                cboStoreAuthorizations.SelectedValue = dtStaff.Rows[0]["StoreAuthorizationsCD"].ToString();
                cboPosition.SelectedValue            = dtStaff.Rows[0]["PositionCD"].ToString();
                txtPassword.Text                     = dtStaff.Rows[0]["Password"].ToString();
                txtConfirm.Text                      = dtStaff.Rows[0]["Password"].ToString();
                txtJoinDate.Text                     = dtStaff.Rows[0]["JoinDate"].ToString();
                txtLeaveDate.Text                    = dtStaff.Rows[0]["LeaveDate"].ToString();
                txtReceiptPrint.Text                 = dtStaff.Rows[0]["ReceiptPrint"].ToString();
                txtRemark.Text                       = dtStaff.Rows[0]["Remarks"].ToString();
                if (dtStaff.Rows[0]["DeleteFlg"].ToString() == "1")
                {
                    chkDelete.Checked = true;
                }
                else
                {
                    chkDelete.Checked = false;
                }

                ScStaff.SetFocus(1);

                return(true);
            }
            else
            {
                mstaffBL.ShowMessage("E133");
                return(false);
            }

            // return true;
        }
        private bool DisplayData(CKM_SearchControl sc)
        {
            mtugsbl = new MasterTouroku_UnsouGaisya_BL();
            mse     = new M_Shipping_Entity
            {
                ShippingCD = sc.Code,
                ChangeDate = sc.ChangeDate
            };
            mse = mtugsbl.M_Carrier_Select(mse);

            if (mse != null)
            {
                txtShippingName.Text        = mse.ShippingName;
                cboIdentity.SelectedValue   = mse.CarrierFlg;
                cboNormalType.SelectedValue = mse.NormalFlg;
                txtYahooCD.Text             = mse.YahooCD;
                txtRakutenCD.Text           = mse.RakutenCD;
                txtAmazonCD.Text            = mse.AmazonCD;
                txtWowmaCD.Text             = mse.WowmaCD;
                txtPonpareCD.Text           = mse.PonpareCD;
                txtOtherCD.Text             = mse.OtherCD;
                txtremark.Text       = mse.Remarks;
                chkDeleteFlg.Checked = mse.DeleteFlg.Equals("1") ? true : false;

                txtShippingName.Focus();
                return(true);
            }
            else
            {
                mtugsbl.ShowMessage("E133");
                return(false);
            }

            //DataTable dtCarrier = mtugsbl.M_Carrier_Select(mse);
            //if (dtCarrier.Rows.Count > 0)
            //{
            //    txtShippingName.Text = dtCarrier.Rows[0]["CarrierName"].ToString();
            //    cboIdentity.SelectedValue = dtCarrier.Rows[0]["CarrierFlg"].ToString();
            //    txtYahooCD.Text = dtCarrier.Rows[0]["YahooCarrierCD"].ToString();
            //    txtRakutenCD.Text = dtCarrier.Rows[0]["RakutenCarrierCD"].ToString();
            //    txtAmazonCD.Text = dtCarrier.Rows[0]["AmazonCarrierCD"].ToString();
            //    txtWowmaCD.Text = dtCarrier.Rows[0]["WowmaCarrierCD"].ToString();
            //    txtPonpareCD.Text = dtCarrier.Rows[0]["PonpareCarrierCD"].ToString();
            //    txtOtherCD.Text = dtCarrier.Rows[0]["OtherCD"].ToString();
            //    txtremark.Text = dtCarrier.Rows[0]["Remarks"].ToString();
            //    if (dtCarrier.Rows[0]["DeleteFlg"].ToString() == "1")
            //        chkDeleteFlg.Checked = true;
            //    else chkDeleteFlg.Checked = false;
            //}
        }
        private bool GinkoExist(CKM_SearchControl sc)
        {
            if (string.IsNullOrWhiteSpace(sc.Code))
            {
                return(true);
            }

            mge = new  M_Ginkou_Entity
            {
                FieldsName = "1",
                TableName  = "M_bank",
                Condition  = "BankCD = '" + sc.Code + "' and " +
                             "ChangeDate = '" + (string.IsNullOrWhiteSpace(sc.ChangeDate) ? DateTime.Now.ToString("yyyy/MM/dd") : sc.ChangeDate.Replace("/", "-")) + "'"
            };

            return(mgbl.M_Ginkou_Exist(sc.Code, sc.ChangeDate));
        }
        /// <summary>
        /// Handle F1 to F12 Click
        /// </summary>
        /// <param name="index"> button index+1, eg.if index is 0,it means F1 click </param>
        public override void FunctionProcess(int index)
        {
            CKM_SearchControl sc = new CKM_SearchControl();

            mtbbl = new MasterTouroku_GinkouKouza_BL();
            switch (index + 1)
            {
            case 2:
                ChangeMode(EOperationMode.INSERT);
                break;

            case 3:
                ChangeMode(EOperationMode.UPDATE);
                break;

            case 4:
                ChangeMode(EOperationMode.DELETE);
                break;

            case 5:
                ChangeMode(EOperationMode.SHOW);
                break;

            case 6:
                if (bbl.ShowMessage("Q004") == DialogResult.Yes)
                {
                    ChangeMode(OperationMode);
                    ScKouzaCD.SetFocus(1);
                }
                else
                {
                    PreviousCtrl.Focus();
                }


                break;

            case 11:
                F11();
                break;

            case 12:
                F12();
                break;
            }
        }
        private bool DisplayData(CKM_SearchControl sc)
        {
            mse = new M_Souko_Entity
            {
                SoukoCD    = sc.Code,
                ChangeDate = sc.ChangeDate
            };

            dtLocation = mtsbl.M_Location_Select(mse);
            if (dtLocation != null)
            {
                GvTana.DataSource = dtLocation;
            }

            mse = mtsbl.M_Souko_Select(mse);
            if (mse != null)
            {
                TxtSoukoName.Text           = mse.SoukoName;
                CboStoreCD.SelectedValue    = mse.StoreCD;
                txtZipCD1.Text              = mse.ZipCD1;
                txtZipCD2.Text              = mse.ZipCD2;
                TxtAddress1.Text            = mse.Address1;
                TxtAddress2.Text            = mse.Address2;
                TxtTelePhoneNo.Text         = mse.TelephoneNO;
                TxtFaxNo.Text               = mse.FaxNO;
                CboSoukoType.SelectedValue  = mse.SoukoType;
                ScSoukoMakerCD.Code         = mse.MakerCD;
                ScSoukoMakerCD.LabelText    = mse.MakerName;
                TxtHikiateOrder.Text        = mse.HikiateOrder;
                ChkUnitPriceCalcKBN.Checked = mse.UnitPriceCalcKBN.Equals("1") ? true : false;
                TxtIdouCount.Text           = mse.IdouCount;
                TxtRemark.Text              = mse.Remarks;
                ChkDeleteFlg.Checked        = mse.DeleteFlg.Equals("1") ? true : false;
                TxtSoukoName.Focus();
                return(true);
            }
            else
            {
                mtsbl.ShowMessage("E133");
                return(false);
            }
        }
Exemplo n.º 15
0
        private bool DisplayData(CKM_SearchControl sc)
        {
            //*** Show Data
            //mse = new M_Souko_Entity
            //{
            //    SoukoCD = sc.Code,
            //    ChangeDate = sc.ChangeDate
            //};

            //mse = mtsbl.M_Souko_Select(mse);

            //if (mse != null)
            //{
            //    TxtSoukoName.Text = mse.SoukoName;
            //    CboStoreCD.SelectedValue = mse.StoreCD;
            //    txtZipCD1.Text = mse.ZipCD1;
            //    txtZipCD2.Text = mse.ZipCD2;
            //    TxtAddress1.Text = mse.Address1;
            //    TxtAddress2.Text = mse.Address2;
            //    TxtTelePhoneNo.Text = mse.TelephoneNO;
            //    TxtFaxNo.Text = mse.FaxNO;
            //    CboSoukoType.SelectedValue = mse.SoukoType;
            //    ScMakerCD.Code = mse.MakerCD;
            //    TxtHikiateOrder.Text = mse.HikiateOrder;
            //    ChkUnitPriceCalcKBN.Checked = mse.UnitPriceCalcKBN.Equals("1") ? true : false;
            //    TxtIdouCount.Text = mse.IdouCount;
            //    TxtRemarks.Text = mse.Remarks;
            //    ChkDeleteFlg.Checked = mse.DeleteFlg.Equals("1") ? true : false;

            //    TxtSoukoName.Focus();

            //    return true;
            //}
            //else
            //{
            //    mtsbl.ShowMessage("E133");
            //    return false;
            //}

            return(true);
        }
Exemplo n.º 16
0
        public override void FunctionProcess(int index)
        {
            CKM_SearchControl sc = new CKM_SearchControl();

            switch (index + 1)
            {
            case 2:
                ChangeMode(EOperationMode.INSERT);
                break;

            case 3:
                ChangeMode(EOperationMode.UPDATE);
                break;

            case 4:
                ChangeMode(EOperationMode.DELETE);
                break;

            case 5:
                ChangeMode(EOperationMode.SHOW);
                break;

            case 6:
                if (bbl.ShowMessage("Q004") == DialogResult.Yes)
                {
                    ChangeMode(OperationMode);
                    ScNormal.SetFocus(1);
                }
                break;

            case 11:
                F11();
                break;

            case 12:
                //*** CreatedBL.ShowMessage if (bbl.ShowMessage(OperationMode == EOperationMode.DELETE ? "Q102" : "Q101") == DialogResult.Yes)
                F12();
                break;
            }
        }
        private bool DisplayData(CKM_SearchControl sc)
        {
            mkze = new M_Kouza_Entity
            {
                KouzaCD    = sc.Code,
                ChangeDate = sc.ChangeDate
            };

            mkze = mtbbl.M_Kouza_Select(mkze);

            if (mkze != null)
            {
                txtKouzaName.Text    = mkze.KouzaName;
                ScBankCD.Code        = mkze.BankCD;
                ScBankCD.LabelText   = mkze.BankName;
                ScBranchCD.Value1    = mkze.BankCD;
                ScBranchCD.Value2    = mkze.BankName;
                ScBranchCD.Code      = mkze.BranchCD;
                ScBranchCD.LabelText = mkze.BranchName;
                txtKouzaKBN.Text     = mkze.KouzaKBN;
                txtKouzaMeigi.Text   = mkze.KouzaMeigi;
                txtKouzaNO.Text      = mkze.KouzaNO;
                txtPrint1.Text       = mkze.Print1;
                txtPrint2.Text       = mkze.Print2;
                txtPrint3.Text       = mkze.Print3;
                txtPrint4.Text       = mkze.Print4;

                txtFee11.Text   = mkze.Fee11;
                txtTax11.Text   = mkze.Tax11;
                txtAmount1.Text = mkze.Amount1;
                txtFee12.Text   = mkze.Fee12;
                txtTax12.Text   = mkze.Tax12;

                txtFee21.Text   = mkze.Fee21;
                txtTax21.Text   = mkze.Tax21;
                txtAmount2.Text = mkze.Amount2;
                txtFee22.Text   = mkze.Fee22;
                txtTax22.Text   = mkze.Tax22;

                txtFee31.Text   = mkze.Fee31;
                txtTax31.Text   = mkze.Tax31;
                txtAmount3.Text = mkze.Amount3;
                txtFee32.Text   = mkze.Fee32;
                txtTax32.Text   = mkze.Tax32;

                txtCompanyCD.Text   = mkze.CompanyCD;
                txtCompanyName.Text = mkze.CompanyName;

                txtRemark.Text = mkze.Remarks;

                ChkDeleteFlg.Checked = mkze.DeleteFlg.Equals("1") ? true : false;

                txtKouzaName.Focus();

                return(true);
            }
            else
            {
                mtbbl.ShowMessage("E133");
                return(false);
            }
        }