Exemple #1
0
        /// <summary>
        /// マスタ名称設定(ExWebServiceMstNameから非同期呼出)
        /// </summary>
        /// <param name="intKbn"></param>
        /// <param name="name"></param>
        public override void MstDataSelect(ExWebServiceMst.geWebServiceMstNmCallKbn intKbn, EntityMstData mst)
        {
            Is_Zip_Upd = false;

            if (mst == null)
            {
                this.txtAdress1.Text = "";
                this.txtAdress2.Text = "";
                this.predecture_Name = "";
                this.city_Name       = "";
                this.town_Name       = "";
                this.tbkMessage.Text = "  ※入力郵便番号は存在しません";

                this.UserControlAdress1 = this.txtAdress1.Text;
                this.UserControlAdress2 = this.txtAdress2.Text;
            }
            else
            {
                if (!string.IsNullOrEmpty(mst.attribute1))
                {
                    this.txtZipNo1.Text = String.Format("{0:000}", ExCast.zCDbl(mst.attribute1));
                }
                if (!string.IsNullOrEmpty(mst.attribute2))
                {
                    this.txtZipNo2.Text = String.Format("{0:0000}", ExCast.zCDbl(mst.attribute2));
                }

                if (this.txtAdress1.Text.Trim() == "" || this.txtAdress2.Text.Trim() == "")
                {
                    string adress = mst.attribute3 + mst.attribute4 + mst.attribute5;
                    if (adress.Length > 20)
                    {
                        this.txtAdress1.Text = adress.Substring(0, 20);
                        this.txtAdress2.Text = adress.Substring(20, adress.Length - 20);
                    }
                    else
                    {
                        this.txtAdress1.Text = adress;
                        this.txtAdress2.Text = "";
                    }
                }

                this.predecture_Name = mst.attribute3;
                this.city_Name       = mst.attribute4;
                this.town_Name       = mst.attribute5;
                this.tbkMessage.Text = "";

                this.UserControlAdress1 = this.txtAdress1.Text;
                this.UserControlAdress2 = this.txtAdress2.Text;
            }
        }
Exemple #2
0
 public override void MstDataSelect(ExWebServiceMst.geWebServiceMstNmCallKbn intKbn, svcMstData.EntityMstData mst)
 {
     switch (intKbn)
     {
     case ExWebServiceMst.geWebServiceMstNmCallKbn.GetCustomer:
         if (!string.IsNullOrEmpty(this.utlCustomer.txtID.Text.Trim()) && !string.IsNullOrEmpty(this.utlCustomer.txtNm.Text.Trim()))
         {
             if (this.utlFunctionKey.gFunctionKeyEnable == Utl_FunctionKey.geFunctionKeyEnable.InitKbn)
             {
                 ExVisualTreeHelper.SetEnabled(this.MainDetail, true);
                 this.utlCustomer.txtID_IsReadOnly = true;
                 ExBackgroundWorker.DoWork_Focus(this.utlID.txtID, 10);
                 this.utlFunctionKey.gFunctionKeyEnable = Utl_FunctionKey.geFunctionKeyEnable.Init;
             }
         }
         break;
     }
 }
Exemple #3
0
        public override void MstDataSelect(ExWebServiceMst.geWebServiceMstNmCallKbn intKbn, svcMstData.EntityMstData mst)
        {
            try
            {
                svcMstData.EntityMstData _mst = null;
                _mst = mst;

                switch (intKbn)
                {
                case ExWebServiceMst.geWebServiceMstNmCallKbn.GetCommodity:
                    if (DataForm.CurrentIndex == -1)
                    {
                        return;
                    }

                    if (_mst == null)
                    {
                        return;
                    }

                    // attribute20に選択された行が設定されてくる
                    if (string.IsNullOrEmpty(_mst.attribute20))
                    {
                        // 商品から明細へ
                        DataDetail.SetCommodityToDetail(DataForm.CurrentIndex, this._entityH, this._entityListD, _mst);
                        OnFormatAll();
                    }
                    else
                    {
                        if (_entityListD.Count >= ExCast.zCInt(_mst.attribute20) + 1)
                        {
                            // 商品から明細へ
                            DataDetail.SetCommodityToDetail(ExCast.zCInt(_mst.attribute20), _entityH, _entityListD, _mst);
                            OnFormatAll();
                        }
                    }
                    break;
                }
            }
            catch
            {
            }
        }
Exemple #4
0
        public override void MstDataSelect(ExWebServiceMst.geWebServiceMstNmCallKbn intKbn, svcMstData.EntityMstData mst)
        {
            try
            {
                svcMstData.EntityMstData _mst = null;
                _mst = mst;

                switch (intKbn)
                {
                case ExWebServiceMst.geWebServiceMstNmCallKbn.GetRecieptDivision:
                    if (DataForm.CurrentIndex == -1)
                    {
                        return;
                    }

                    if (_mst == null)
                    {
                        return;
                    }

                    // attribute20に選択された行が設定されてくる
                    if (string.IsNullOrEmpty(_mst.attribute20))
                    {
                        _entityListD[ExCast.zCInt(_mst.attribute20) + 1]._receipt_division_nm = "";
                        OnFormatAll();
                    }
                    else
                    {
                        if (_entityListD.Count >= ExCast.zCInt(_mst.attribute20) + 1)
                        {
                            _entityListD[ExCast.zCInt(_mst.attribute20)]._receipt_division_nm = mst.name;
                            OnFormatAll();
                        }
                    }
                    break;
                }
            }
            catch
            {
            }
        }
        private void GetMstList(ExWebService.geDialogDisplayFlg flg)
        {
            object[] prm = new object[4];
            prm[0] = this.txtCode.Text.Trim();
            prm[1] = this.txtName.Text.Trim();

            if (this.stpKana.Visibility == System.Windows.Visibility.Visible)
            {
                prm[2] = this.txtKana.Text.Trim();
            }
            else
            {
                prm[2] = "";
            }

            prm[3] = "";
            if (objClassList != null)
            {
                for (int i = 0; i <= objClassList.Count - 1; i++)
                {
                    if (ExCast.zCStr(this.cmbGroup1.SelectedValue) == objClassList[i].name)
                    {
                        prm[3] = objClassList[i].id;
                    }
                }
            }

            if (this.MstKbn == MstData.geMDataKbn.Supplier)
            {
                prm[4] = ExCast.zNumZeroNothingFormat(Dlg_MstSearchGroup.this_id2);
            }
            webServiceMst.objPerent = this.utlDummy;

            ExWebServiceMst.geWebServiceMstNmCallKbn callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetCustomerList;
            switch (this.MstKbn)
            {
            case MstData.geMDataKbn.Customer:
            case MstData.geMDataKbn.Customer_F:
            case MstData.geMDataKbn.Customer_T:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetCustomerList;
                break;

            case MstData.geMDataKbn.Supplier:
            case MstData.geMDataKbn.Supplier_F:
            case MstData.geMDataKbn.Supplier_T:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetSupplierList;
                break;

            case MstData.geMDataKbn.Person:
            case MstData.geMDataKbn.Person_F:
            case MstData.geMDataKbn.Person_T:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetPersonList;
                break;

            case MstData.geMDataKbn.Commodity:
            case MstData.geMDataKbn.Commodity_F:
            case MstData.geMDataKbn.Commodity_T:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetCommodityList;
                break;

            case MstData.geMDataKbn.CompanyGroup:
            case MstData.geMDataKbn.CompanyGroup_F:
            case MstData.geMDataKbn.CompanyGroup_T:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetCompanyGroupList;
                break;

            case MstData.geMDataKbn.Zip:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetZipList;
                break;

            case MstData.geMDataKbn.Condition:
            case MstData.geMDataKbn.Condition_F:
            case MstData.geMDataKbn.Condition_T:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetConditionList;
                break;

            case MstData.geMDataKbn.RecieptDivision:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetRecieptDivisionList;
                break;

            case MstData.geMDataKbn.Group:
            case MstData.geMDataKbn.Group_F:
            case MstData.geMDataKbn.Group_T:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetGroupList;
                webServiceMst.MstGroupKbn = this.MstGroupKbn;
                break;

            case MstData.geMDataKbn.Purchase:
            case MstData.geMDataKbn.Purchase_F:
            case MstData.geMDataKbn.Purchase_T:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetPurchaseList;
                webServiceMst.MstGroupKbn = this.MstGroupKbn;
                break;

            case MstData.geMDataKbn.Inventory:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetInventoryList;
                webServiceMst.MstGroupKbn = this.MstGroupKbn;
                break;

            case MstData.geMDataKbn.SalesBalance:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetSalesBalanceList;
                webServiceMst.MstGroupKbn = this.MstGroupKbn;
                break;

            case MstData.geMDataKbn.PaymentBalance:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetPaymentBalanceList;
                webServiceMst.MstGroupKbn = this.MstGroupKbn;
                break;
            }

            if (flg == ExWebService.geDialogDisplayFlg.Yes)
            {
                webServiceMst.CallWebServiceMst(callKbn,
                                                ExWebService.geDialogDisplayFlg.Yes,
                                                ExWebService.geDialogCloseFlg.Yes,
                                                prm);
            }
            else
            {
                webServiceMst.CallWebServiceMst(callKbn,
                                                ExWebService.geDialogDisplayFlg.No,
                                                ExWebService.geDialogCloseFlg.No,
                                                prm);
            }
        }
Exemple #6
0
 public virtual void MstDataSelect(ExWebServiceMst.geWebServiceMstNmCallKbn intKbn, string name)
 {
 }
Exemple #7
0
        private void GetMstList(ExWebService.geDialogDisplayFlg flg)
        {
            object[] prm = new object[3];
            prm[0] = this.txtCode.Text.Trim();
            prm[1] = this.txtName.Text.Trim();

            if (this.MstKbn == MstData.geMDataKbn.Supplier)
            {
                prm[2] = ExCast.zNumZeroNothingFormat(this.Id2);
            }
            webServiceMst.objPerent = this;

            ExWebServiceMst.geWebServiceMstNmCallKbn callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetCustomerList;
            switch (this.MstKbn)
            {
            case MstData.geMDataKbn.Customer:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetCustomerList;
                break;

            case MstData.geMDataKbn.Supplier:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetSupplierList;
                break;

            case MstData.geMDataKbn.Person:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetPersonList;
                break;

            case MstData.geMDataKbn.Commodity:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetCommodityList;
                break;

            case MstData.geMDataKbn.CompanyGroup:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetCompanyGroupList;
                break;

            case MstData.geMDataKbn.Zip:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetZipList;
                break;

            case MstData.geMDataKbn.Condition:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetConditionList;
                break;

            case MstData.geMDataKbn.RecieptDivision:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetRecieptDivisionList;
                break;

            case MstData.geMDataKbn.Group:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetGroupList;
                webServiceMst.MstGroupKbn = this.MstGroupKbn;
                break;

            case MstData.geMDataKbn.Purchase:
                callKbn = ExWebServiceMst.geWebServiceMstNmCallKbn.GetPurchaseList;
                webServiceMst.MstGroupKbn = this.MstGroupKbn;
                break;
            }

            if (flg == ExWebService.geDialogDisplayFlg.Yes)
            {
                webServiceMst.CallWebServiceMst(callKbn,
                                                ExWebService.geDialogDisplayFlg.Yes,
                                                ExWebService.geDialogCloseFlg.Yes,
                                                prm);
            }
            else
            {
                webServiceMst.CallWebServiceMst(callKbn,
                                                ExWebService.geDialogDisplayFlg.No,
                                                ExWebService.geDialogCloseFlg.No,
                                                prm);
            }
        }
 public virtual void MstDataSelect(ExWebServiceMst.geWebServiceMstNmCallKbn intKbn, EntityMstData mst)
 {
 }