Ejemplo n.º 1
0
 /// <summary>
 /// 根据客户编码获取客户接单组织
 /// </summary>
 /// <param name="code">客户编码</param>
 /// <returns>接单组织ID、Code、Name</returns>
 public static UFIDA.U9.Cust.GS.FT.SoBP.CommonDTOData GetOrgByCustomer(string code)
 {
     UFIDA.U9.Cust.GS.FT.SoBP.Proxy.GetOrderOrgByCustomerBPProxy bp = new SoBP.Proxy.GetOrderOrgByCustomerBPProxy();
     bp.Cust_Code = code;
     UFIDA.U9.Cust.GS.FT.SoBP.CommonDTOData dto = bp.Do();
     return(dto);
 }
Ejemplo n.º 2
0
        public void txtCustomer_TextChanged(object sender, EventArgs e)
        {
            if (part.Model.Views[0].FocusedRecord != null)
            {
                if (part.Model.Views[0].FocusedRecord["OrderBy_Code"] != null)
                {
                    string Code = part.Model.Views[0].FocusedRecord["OrderBy_Code"].ToString();

                    UFIDA.U9.Cust.GS.FT.SoBP.CommonDTOData dto = PubHelperUI.SOUIHelperExtend.GetOrgByCustomer(Code);
                    if (dto != null)
                    {
                        part.Model.Views[0].FocusedRecord["DescFlexField_PrivateDescSeg14"]      = dto.Code;
                        part.Model.Views[0].FocusedRecord["DescFlexField_PrivateDescSeg14_ID"]   = dto.ID.ToString();
                        part.Model.Views[0].FocusedRecord["DescFlexField_PrivateDescSeg14_Name"] = dto.Name;;

                        UFIDA.U9.Cust.GS.FT.SoBP.CurrencyDtoData currecyDto = PubHelperUI.SOUIHelperExtend.GetCurrencyByOrg(dto.Code);
                        if (currecyDto != null)
                        {
                            SetSOCurrency(currecyDto);//设置币种
                        }
                    }
                }
            }
        }