Esempio n. 1
0
 /// <summary>
 /// 进口/转口短单
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnShortForeignClick(object sender, RoutedEventArgs e)
 {
     try
     {
         string pageName = EnumHelper.GetDescriptionByCulture(VM.ContractType) +
                           EnumHelper.GetDescriptionByCulture(TradeType.ShortForeignTrade);
         var frm = new ShortContractDetail(TradeType.ShortForeignTrade, VM.ContractType, PageMode.AddMode, pageName);
         RedirectTo(frm);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ErrorMsgManager.GetClientErrMsg(ex, CultureManager.UICulture));
     }
 }
Esempio n. 2
0
        /// <summary>
        /// 拆分
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ContractSplitExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            int contractId = e.Parameter is int ? (int)e.Parameter : 0;
            //判断是否能拆分

            //跳到拆分页面
            string pageName = EnumHelper.GetDescriptionByCulture(ContractType.Purchase) +
                                  EnumHelper.GetDescriptionByCulture(TradeType.ShortDomesticTrade);
            ShortContractDetail frm = new ShortContractDetail(TradeType.ShortDomesticTrade, ContractType.Purchase,contractId, DBEntity.EnumEntity.PageMode.AddMode, pageName,true);
            RedirectTo(frm);
        }