コード例 #1
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
            {
            }
        }
コード例 #2
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
            {
            }
        }
コード例 #3
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;
     }
 }