• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# MasterData.OrderHead类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中com.Sconit.Entity.MasterData.OrderHead的典型用法代码示例。如果您正苦于以下问题:C# OrderHead类的具体用法?C# OrderHead怎么用?C# OrderHead使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



OrderHead类属于com.Sconit.Entity.MasterData命名空间,在下文中一共展示了OrderHead类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: btnPrint_Click

    protected void btnPrint_Click(object sender, EventArgs e)
    {
        OrderHead order = new OrderHead();
        if (this.tbPartyFrom.Text.Trim() != string.Empty)
        {
            order.PartyFrom = ThePartyMgr.LoadParty(this.tbPartyFrom.Text.Trim());
        }
        if (this.tbOrderNo.Text.Trim() != string.Empty)
        {
            order.OrderNo = this.tbOrderNo.Text.Trim();
        }

        if (this.tbStartTime.Text.Trim() != string.Empty)
        {
            order.ReleaseDate = DateTime.Parse(this.tbStartTime.Text.Trim());
        }

        if (this.tbEndTime.Text.Trim() != string.Empty)
        {
            order.StartDate = DateTime.Parse(this.tbEndTime.Text.Trim());
        }
        order.CreateUser = this.CurrentUser;
        order.CreateDate = DateTime.Now;

        IList<object> list = new List<object>();

        IList<WoReceiptView> woReceiptList = TheCriteriaMgr.FindAll<WoReceiptView>(SetCriteria());

        list.Add(order);
        list.Add(woReceiptList);
        string printUrl = TheReportMgr.WriteToFile("WoReceipt.xls", list);
        Page.ClientScript.RegisterStartupScript(GetType(), "method", " <script language='javascript' type='text/javascript'>PrintOrder('" + printUrl + "'); </script>");
        this.ShowSuccessMessage("MasterData.WoReceipt.Print.Successful");
    }
开发者ID:Novthirteen,项目名称:yfkey-scms,代码行数:34,代码来源:Search.ascx.cs


示例2: TryAddOrderOperation

        public void TryAddOrderOperation(OrderHead orderHead, int operation, string reference)
        {
            bool hasOp = false;
            foreach (OrderOperation orderOperation in orderHead.OrderOperations)
            {
                if (orderOperation.Operation == operation)
                {
                    if (orderOperation.Reference == reference
                        || (orderOperation.Reference == null && reference == null))
                    {
                        hasOp = true;
                    }
                }
            }

            if (!hasOp)
            {
                //没有找到Op,新增

                RoutingDetail routingDetail = this.routingDetailMgrE.LoadRoutingDetail(orderHead.Routing, operation, reference);
                if (routingDetail != null)
                {
                    OrderOperation orderOperation = this.GenerateOrderOperation(orderHead, routingDetail);
                    this.CreateOrderOperation(orderOperation);
                }
                else
                {
                    throw new BusinessErrorException("Order.Error.RoutingDetail.Not.Found", orderHead.Routing.Code, operation.ToString(), reference);
                }
            }
        }
开发者ID:Novthirteen,项目名称:sconit_timesseiko,代码行数:31,代码来源:OrderOperationMgr.cs


示例3: InitPageParameter

    public void InitPageParameter(OrderHead orderHead)
    {
        IList<OrderLocationTransaction> outLocTransList = new List<OrderLocationTransaction>();

        foreach (OrderDetail orderDetail in orderHead.OrderDetails)
        {
            decimal currentReceiveQty = orderDetail.CurrentReceiveQty == null ? 0 : (decimal)orderDetail.CurrentReceiveQty;
            decimal currentRejectQty = orderDetail.CurrentRejectQty == null ? 0 : (decimal)orderDetail.CurrentRejectQty;
            decimal currentScrapQty = orderDetail.CurrentScrapQty == null ? 0 : (decimal)orderDetail.CurrentScrapQty;
            decimal backoutQty = currentReceiveQty + currentRejectQty + currentScrapQty;
            foreach (OrderLocationTransaction orderLocTrans in orderDetail.OrderLocationTransactions)
            {
                if (orderLocTrans.IOType == BusinessConstants.IO_TYPE_IN)
                {
                    orderLocTrans.CurrentReceiveQty = orderLocTrans.UnitQty * currentReceiveQty;
                    orderLocTrans.CurrentRejectQty = orderLocTrans.UnitQty * currentRejectQty;
                    orderLocTrans.CurrentScrapQty = orderLocTrans.UnitQty * currentScrapQty;
                    outLocTransList.Add(orderLocTrans);

                }
            }
        }
        this.GV_List.DataSource = outLocTransList;
        this.GV_List.DataBind();
    }
开发者ID:Novthirteen,项目名称:sconit_timesseiko,代码行数:25,代码来源:OutLocTransList.ascx.cs


示例4: GenerateInProcessLocation

        public InProcessLocation GenerateInProcessLocation(OrderHead orderHead)
        {
            InProcessLocation inProcessLocation = new InProcessLocation();

            CloneHelper.CopyProperty(orderHead, inProcessLocation, OrderHead2InProcessLocationCloneField);

            return inProcessLocation;
        }
开发者ID:Novthirteen,项目名称:sconit_timesseiko,代码行数:8,代码来源:InProcessLocationMgr.cs


示例5: GenerateOrderOperation

        public OrderOperation GenerateOrderOperation(OrderHead orderHead, RoutingDetail routingDetail)
        {
            OrderOperation orderOp = new OrderOperation();
            CloneHelper.CopyProperty(routingDetail, orderOp, OrderOperationCloneFields);
            orderOp.OrderHead = orderHead;
            //todo UnitTime��WorkTime����

            orderHead.AddOrderOperation(orderOp);
            return orderOp;
        }
开发者ID:Novthirteen,项目名称:yfkey-scms,代码行数:10,代码来源:OrderOperationMgr.cs


示例6: CollectData

    public void CollectData(OrderHead orderHead)
    {
        foreach (GridViewRow gvr in GV_List.Rows)
        {
            int flowDetailId = int.Parse(((HiddenField)gvr.FindControl("hfFlowDetailId")).Value);
            string itemCode = ((Label)gvr.FindControl("lblItemCode")).Text;
            decimal reqQty = decimal.Parse(((Label)gvr.FindControl("lblOrderedQty")).Text);

            orderHead.GetOrderDetailByFlowDetailIdAndItemCode(flowDetailId, itemCode).RequiredQty = reqQty;
            orderHead.GetOrderDetailByFlowDetailIdAndItemCode(flowDetailId, itemCode).OrderedQty = reqQty;
        }
    }
开发者ID:Novthirteen,项目名称:sconit_timesseiko,代码行数:12,代码来源:PreviewDetail.ascx.cs


示例7: CreateOrderBinding

        public OrderBinding CreateOrderBinding(OrderHead order, Flow bindedFlow, string bindingType)
        {
            OrderBinding orderBinding = new OrderBinding();

            orderBinding.OrderHead = order;
            orderBinding.BindedFlow = bindedFlow;
            orderBinding.BindingType = bindingType;

            this.CreateOrderBinding(orderBinding);

            return orderBinding;
        }
开发者ID:Novthirteen,项目名称:yfkey-scms,代码行数:12,代码来源:OrderBindingMgr.cs


示例8: InitPageParameter

    public void InitPageParameter(OrderHead orderHead)
    {
        this.GV_List.DataSource = orderHead.OrderDetails;

        #region 设置默认LotNo
        string lotNo = LotNoHelper.GenerateLotNo();
        foreach (OrderDetail orderDetail in orderHead.OrderDetails)
        {
            orderDetail.HuLotNo = lotNo;
        }
        #endregion

        this.GV_List.DataBind();
    }
开发者ID:Novthirteen,项目名称:yfkey-scms,代码行数:14,代码来源:OrderDetailList.ascx.cs


示例9: GenerateOrderHeadSubsidiary

        public void GenerateOrderHeadSubsidiary(OrderHead orderHead)
        {
            if (orderHead.OrderDetails != null && orderHead.OrderDetails.Count > 0)
            {
                foreach (OrderDetail orderDetail in orderHead.OrderDetails)
                {
                    this.orderDetailMgr.GenerateOrderDetailSubsidiary(orderDetail);
                }
            }

            #region ����������׷��Operation
            if (orderHead.Type != BusinessConstants.CODE_MASTER_ORDER_TYPE_VALUE_PRODUCTION
                && orderHead.Routing != null)
            {
                this.orderOperationMgr.GenerateOrderOperation(orderHead);
            }
            #endregion
        }
开发者ID:Novthirteen,项目名称:yfkey-scms,代码行数:18,代码来源:OrderHeadMgr.cs


示例10: InitPageParameter

    public void InitPageParameter(OrderHead orderHead, bool hasOdd, bool isOddCreateHu)
    {
        IList<OrderDetail> orderDetailList = new List<OrderDetail>();
        foreach (OrderDetail orderDetail in orderHead.OrderDetails)
        {
            if (orderDetail.CurrentReceiveQty != 0 || orderDetail.CurrentRejectQty != 0 || orderDetail.CurrentScrapQty != 0)
            {
                orderDetailList.Add(orderDetail);
            }
        }
        this.GV_List.DataSource = orderDetailList;
        this.GV_List.DataBind();

        if (hasOdd)
        {
            this.lblIsOddCreateHu.Visible = true;
            this.cbIsOddCreateHu.Visible = true;
            this.cbIsOddCreateHu.Checked = isOddCreateHu;
        }
    }
开发者ID:Novthirteen,项目名称:yfkey-scms,代码行数:20,代码来源:ConfirmInfo.ascx.cs


示例11: GetList

    private IList<OrderHead> GetList()
    {
        IList<OrderHead> orderHeadList = new List<OrderHead>();
        foreach (GridViewRow gvr in GV_List.Rows)
        {
            string flowCode = ((Label)gvr.FindControl("lblFlow")).Text;
            DateTime startTime = DateTime.Parse(((TextBox)gvr.FindControl("tbStartTime")).Text);
            DateTime windowTime = DateTime.Parse(((TextBox)gvr.FindControl("tbWindowTime")).Text);

            OrderHead oh = new OrderHead();
            oh = TheOrderMgr.TransferFlow2Order(flowCode);
            oh.Priority = BusinessConstants.CODE_MASTER_ORDER_PRIORITY_VALUE_NORMAL;
            oh.StartTime = startTime;
            oh.WindowTime = windowTime;

            this.GetDetailControl(gvr).CollectData(oh);
            OrderHelper.FilterZeroOrderQty(oh);
            orderHeadList.Add(oh);
        }
        return orderHeadList;
    }
开发者ID:Novthirteen,项目名称:sconit_timesseiko,代码行数:21,代码来源:Preview.ascx.cs


示例12: InitPageParameter

 public void InitPageParameter(OrderHead orderHead, bool isChanged)
 {
     if (InLocTransList == null || InLocTransList.Count == 0 || isChanged)
     {
         InLocTransList = new List<OrderLocationTransaction>();
         IDictionary<string, int> detailDic = new Dictionary<string, int>();
         foreach (OrderDetail orderDetail in orderHead.OrderDetails)
         {
             decimal currentReceiveQty = orderDetail.CurrentReceiveQty == null ? 0 : (decimal)orderDetail.CurrentReceiveQty;
             decimal currentRejectQty = orderDetail.CurrentRejectQty == null ? 0 : (decimal)orderDetail.CurrentRejectQty;
             decimal currentScrapQty = orderDetail.CurrentScrapQty == null ? 0 : (decimal)orderDetail.CurrentScrapQty;
             decimal backoutQty = currentReceiveQty + currentRejectQty + currentScrapQty;
             foreach (OrderLocationTransaction orderLocTrans in orderDetail.OrderLocationTransactions)
             {
                 if (orderLocTrans.IOType == BusinessConstants.IO_TYPE_OUT)
                 {
                     if (detailDic.ContainsKey(orderLocTrans.Item.Code + "-" + orderLocTrans.Operation))
                     {
                         InLocTransList[detailDic[orderLocTrans.Item.Code + "-" + orderLocTrans.Operation]].CurrentReceiveQty += orderLocTrans.UnitQty * backoutQty;
                         InLocTransList[detailDic[orderLocTrans.Item.Code + "-" + orderLocTrans.Operation]].OrderedQty += orderLocTrans.OrderedQty;
                         if (InLocTransList[detailDic[orderLocTrans.Item.Code + "-" + orderLocTrans.Operation]].UnitQty != 0 && backoutQty != 0)
                         {
                             InLocTransList[detailDic[orderLocTrans.Item.Code + "-" + orderLocTrans.Operation]].UnitQty = InLocTransList[detailDic[orderLocTrans.Item.Code + "-" + orderLocTrans.Operation]].CurrentReceiveQty / ((InLocTransList[detailDic[orderLocTrans.Item.Code + "-" + orderLocTrans.Operation]].CurrentReceiveQty - orderLocTrans.UnitQty * backoutQty) / InLocTransList[detailDic[orderLocTrans.Item.Code + "-" + orderLocTrans.Operation]].UnitQty + backoutQty);
                         }
                     }
                     else
                     {
                         detailDic.Add(orderLocTrans.Item.Code + "-" + orderLocTrans.Operation, InLocTransList.Count);
                         orderLocTrans.CurrentReceiveQty = orderLocTrans.UnitQty * backoutQty;
                         InLocTransList.Add(orderLocTrans);
                     }
                 }
             }
         }
     }
     this.GV_List.DataSource = InLocTransList;
     this.GV_List.DataBind();
 }
开发者ID:Novthirteen,项目名称:sconit_timesseiko,代码行数:38,代码来源:InLocTransList.ascx.cs


示例13: InitDetailParamater

    private void InitDetailParamater(OrderHead orderHead)
    {
        Flow currentFlow = this.TheFlowMgr.LoadFlow(orderHead.Flow);
        bool isScanHu = currentFlow.IsShipScanHu || currentFlow.IsReceiptScanHu || (currentFlow.CreateHuOption == BusinessConstants.CODE_MASTER_CREATE_HU_OPTION_VALUE_GI) || currentFlow.CreateHuOption == BusinessConstants.CODE_MASTER_CREATE_HU_OPTION_VALUE_GR;

        if (this.IsQuick && isScanHu && !this.IsReject)
        {
            this.ucHuList.InitPageParameter(orderHead);
            this.ucList.Visible = false;
            this.ucHuList.Visible = true;
        }
        else
        {
            if (!currentFlow.IsListDetail)
            {
                orderHead.OrderDetails = new List<OrderDetail>();
            }

            this.ucList.CleanPrice();
            this.ucList.IsReject = this.IsReject;
           
            this.ucList.InitPageParameter(orderHead);
            this.ucList.Visible = true;
            this.ucHuList.Visible = false;
        }
    }
开发者ID:Novthirteen,项目名称:sconit_timesseiko,代码行数:26,代码来源:QuickNew.ascx.cs


示例14: InitPageParameter

    //供新增订单使用,由于还订单还没有保存,所以需要在ViewState中缓存OrderHead
    public void InitPageParameter(OrderHead orderHead)
    {
        this.NewOrEdit = "New";
        this.TheOrder = orderHead;
        this.TaxRate = TheOrder.TaxCode == null ? decimal.Zero : decimal.Parse(TheOrder.TaxCode);
        this.hfTax.Value = this.TaxRate.ToString("0.##");
        this.FlowCode = orderHead.Flow;
        this.StartTime = orderHead.StartTime > DateTime.Now ? orderHead.StartTime : DateTime.Now;
        this.PartyFromCode = orderHead.PartyFrom.Code;
        this.PartyToCode = orderHead.PartyTo.Code;
        if (orderHead.Currency != null)
        {
            this.currencyCode = orderHead.Currency.Code;
        }
        int seqInterval = int.Parse(TheEntityPreferenceMgr.LoadEntityPreference(BusinessConstants.ENTITY_PREFERENCE_CODE_SEQ_INTERVAL).Value);

        IList<OrderDetail> orderDetailList = new List<OrderDetail>();
        IList<OrderDetail> oldrderDetailList = new List<OrderDetail>();
        if (orderHead.OrderDetails != null && orderHead.OrderDetails.Count > 0)
        {
            foreach (OrderDetail orderDetail in orderHead.OrderDetails)
            {
                if (OrderHelper.IsOrderDetailValid(orderDetail, orderHead.WindowTime))
                {
                    orderDetailList.Add(orderDetail);
                    oldrderDetailList.Add(orderDetail);
                }
            }
        }

        //经过有效期校验,明细会改变
        TheOrder.OrderDetails = oldrderDetailList;

        if (this.IsShowPrice && !orderHead.IsShowPrice)
        {
            this.IsShowPrice = false;
        }
        if (orderHead.AllowCreateDetail)
        {
            OrderDetail blankOrderDetail = new OrderDetail();
            int seq = int.Parse(TheEntityPreferenceMgr.LoadEntityPreference(BusinessConstants.ENTITY_PREFERENCE_CODE_SEQ_INTERVAL).Value);
            if (this.TheOrder.OrderDetails == null || this.TheOrder.OrderDetails.Count == 0)
            {
                blankOrderDetail.Sequence = seqInterval;
            }
            else
            {
                CurrentSeq = this.TheOrder.OrderDetails.Last<OrderDetail>().Sequence + seqInterval;
                blankOrderDetail.Sequence = CurrentSeq;
            }
            blankOrderDetail.IsBlankDetail = true;
            orderDetailList.Add(blankOrderDetail);
        }

        this.GV_List.DataSource = orderDetailList;
        this.GV_List.DataBind();

        UpdateView(this.TheOrder);
    }
开发者ID:Novthirteen,项目名称:sconit_timesseiko,代码行数:60,代码来源:List.ascx.cs


示例15: HiddenGVColumn

    //根据订单类型隐藏相应列
    private void HiddenGVColumn(OrderHead orderHead)
    {

        #region 按flowtype显示
        if (this.ModuleType == BusinessConstants.CODE_MASTER_ORDER_TYPE_VALUE_PROCUREMENT)
        {
            this.GV_List.Columns[6].Visible = false;  //来源库位
            this.GV_List.Columns[8].Visible = false;  //物料清单
        }
        else if (this.ModuleType == BusinessConstants.CODE_MASTER_ORDER_TYPE_VALUE_DISTRIBUTION)
        {
            this.GV_List.Columns[7].Visible = false;  //目的库位
            this.GV_List.Columns[8].Visible = false;  //物料清单
        }
        else if (this.ModuleType == BusinessConstants.CODE_MASTER_ORDER_TYPE_VALUE_PRODUCTION)
        {
            this.GV_List.Columns[6].Visible = false;  //来源库位
        }

        else if (this.ModuleType == BusinessConstants.CODE_MASTER_ORDER_TYPE_VALUE_TRANSFER)
        {
            this.GV_List.Columns[8].Visible = false;  //物料清单
        }

        #endregion

        #region 数量字段
        if (orderHead.Status == null ||
            orderHead.Status == string.Empty ||
            orderHead.Status == BusinessConstants.CODE_MASTER_STATUS_VALUE_CREATE)
        {
            this.GV_List.Columns[10].Visible = false;  //已发数量
            this.GV_List.Columns[11].Visible = false;  //发货数量
            this.GV_List.Columns[12].Visible = false;  //已收数量
            this.GV_List.Columns[13].Visible = false;  //收货数量
            this.GV_List.Columns[14].Visible = false;  //次品数量
            this.GV_List.Columns[15].Visible = false;  //废品数量
            this.GV_List.Columns[20].Visible = orderHead.AllowCreateDetail;   //操作按钮
        }
        else if (orderHead.Status == BusinessConstants.CODE_MASTER_STATUS_VALUE_SUBMIT)
        {
            this.GV_List.Columns[10].Visible = false;  //已发数量
            this.GV_List.Columns[11].Visible = false;  //发货数量
            this.GV_List.Columns[12].Visible = false;  //已收数量
            this.GV_List.Columns[13].Visible = false;  //收货数量
            this.GV_List.Columns[14].Visible = false;  //次品数量
            this.GV_List.Columns[15].Visible = false;  //废品数量
            this.GV_List.Columns[20].Visible = false;   //操作按钮
        }
        else if (orderHead.Status == BusinessConstants.CODE_MASTER_STATUS_VALUE_CANCEL)
        {
            this.GV_List.Columns[10].Visible = false;  //已发数量
            this.GV_List.Columns[11].Visible = false;  //发货数量
            this.GV_List.Columns[12].Visible = false;  //已收数量
            this.GV_List.Columns[13].Visible = false;  //收货数量
            this.GV_List.Columns[14].Visible = false;  //次品数量
            this.GV_List.Columns[15].Visible = false;  //废品数量
            this.GV_List.Columns[20].Visible = false;   //操作按钮
        }
        else if (orderHead.Status == BusinessConstants.CODE_MASTER_STATUS_VALUE_INPROCESS)
        {
            if (this.ModuleType == BusinessConstants.CODE_MASTER_ORDER_TYPE_VALUE_PROCUREMENT)
            {
                this.GV_List.Columns[10].Visible = false;  //已发数量
                this.GV_List.Columns[11].Visible = false;  //发货数量
                this.GV_List.Columns[12].Visible = true;   //已收数量
                this.GV_List.Columns[13].Visible = false;   //收货数量
                this.GV_List.Columns[14].Visible = false;  //次品数量
                this.GV_List.Columns[15].Visible = false;  //废品数量
                this.GV_List.Columns[20].Visible = false;   //操作按钮
            }
            else if (this.ModuleType == BusinessConstants.CODE_MASTER_ORDER_TYPE_VALUE_DISTRIBUTION)
            {
                this.GV_List.Columns[10].Visible = true;   //已发数量
                this.GV_List.Columns[11].Visible = false;   //发货数量
                this.GV_List.Columns[12].Visible = true;  //已收数量
                this.GV_List.Columns[13].Visible = false;  //收货数量
                this.GV_List.Columns[14].Visible = false;  //次品数量
                this.GV_List.Columns[15].Visible = false;  //废品数量
                this.GV_List.Columns[20].Visible = false;   //操作按钮
            }
            else if (this.ModuleType == BusinessConstants.CODE_MASTER_ORDER_TYPE_VALUE_PRODUCTION)
            {
                this.GV_List.Columns[10].Visible = false;  //已发数量
                this.GV_List.Columns[11].Visible = false;  //发货数量
                this.GV_List.Columns[12].Visible = true;  //已收数量
                this.GV_List.Columns[13].Visible = true;  //收货数量
                this.GV_List.Columns[14].Visible = true;  //次品数量
                this.GV_List.Columns[15].Visible = true;  //废品数量
                this.GV_List.Columns[20].Visible = false;   //操作按钮
            }
            else if (this.ModuleType == BusinessConstants.CODE_MASTER_ORDER_TYPE_VALUE_TRANSFER)
            {
                this.GV_List.Columns[10].Visible = false;  //已发数量
                this.GV_List.Columns[11].Visible = false;  //发货数量
                this.GV_List.Columns[12].Visible = false;  //已收数量
                this.GV_List.Columns[13].Visible = true;   //收货数量
                this.GV_List.Columns[14].Visible = false;  //次品数量
                this.GV_List.Columns[15].Visible = false;  //废品数量
//.........这里部分代码省略.........
开发者ID:Novthirteen,项目名称:sconit_timesseiko,代码行数:101,代码来源:List.ascx.cs


示例16: HiddenPriceColumn

    //控制价格选项
    private void HiddenPriceColumn(OrderHead orderHead)
    {

        this.tabPrice.Visible = false;              //订单折扣,总价
        this.trTax.Visible = false;                 //税金
        this.trIncludeTaxPrice.Visible = false;     //含税金额
        this.GV_List.Columns[16].Visible = false;  //单价
        this.GV_List.Columns[17].Visible = false;  //折扣率
        this.GV_List.Columns[18].Visible = false;  //折扣金额
        this.GV_List.Columns[19].Visible = false;  //总金额

        if (!AllowEditPrice() || (this.OrderStatus != BusinessConstants.CODE_MASTER_STATUS_VALUE_CREATE && this.OrderStatus != null && this.OrderStatus != string.Empty))
        {

            this.tbOrderDiscount.Attributes.Add("onfocus", "this.blur();");
            this.tbOrderDiscountRate.Attributes.Add("onfocus", "this.blur();");
        }

        //企业选项和Flow选项
        if (this.ModuleSubType != BusinessConstants.CODE_MASTER_ORDER_SUB_TYPE_VALUE_RTN && IsShowPrice && GetOrderHead().IsShowPrice)
        {
            //控制价格字段
            if (this.ModuleType == BusinessConstants.CODE_MASTER_ORDER_TYPE_VALUE_DISTRIBUTION || this.ModuleType == BusinessConstants.CODE_MASTER_ORDER_TYPE_VALUE_PROCUREMENT)
            {
                this.tabPrice.Visible = true;              //订单折扣,总价
                this.GV_List.Columns[16].Visible = true;  //单价
                if (this.IsShowDiscount)
                {
                    this.GV_List.Columns[17].Visible = true;  //折扣率
                    this.GV_List.Columns[18].Visible = true;  //折扣金额
                }
                this.GV_List.Columns[19].Visible = true;  //总金额

                if ((this.ModuleType == BusinessConstants.CODE_MASTER_ORDER_TYPE_VALUE_PROCUREMENT
                || this.ModuleType == BusinessConstants.CODE_MASTER_ORDER_TYPE_VALUE_DISTRIBUTION)
                            && (orderHead.IsIncludeTax.HasValue
                             && !orderHead.IsIncludeTax.Value))
                {
                    this.lblOrderTax.Text = decimal.Parse( orderHead.TaxCode).ToString("0.##") + "%" + TheLanguageMgr.TranslateMessage("MasterData.Order.OrderHead.Tax", this.CurrentUser);
                    this.trTax.Visible = true;//税金
                    this.trIncludeTaxPrice.Visible = true;//含税金额
                }

                if (this.NewOrEdit == "Edit")
                {
                    if (this.ModuleType == BusinessConstants.CODE_MASTER_ORDER_TYPE_VALUE_PROCUREMENT
                        || this.ModuleType == BusinessConstants.CODE_MASTER_ORDER_TYPE_VALUE_DISTRIBUTION)
                    {
                        tbOrderDetailPrice.Text = orderHead.OrderDetailAmountAfterDiscount.ToString("F2");
                        if (orderHead.Discount != null && orderHead.OrderDiscountRate != null)
                        {
                            tbOrderDiscount.Text = ((decimal)orderHead.Discount).ToString("F2");
                            tbOrderDiscountRate.Text = ((decimal)orderHead.OrderDiscountRate).ToString("F2");
                        }

                        tbOrderPrice.Text = orderHead.OrderAmountAfterDiscount.ToString("F2");

                        if (orderHead != null && (!orderHead.IsIncludeTax.HasValue || !orderHead.IsIncludeTax.Value))
                        {
                            this.tbOrderTax.Text = orderHead.OrderTax.ToString("F2");  //(orderHead.OrderDetailAmountAfterDiscount * decimal.Parse(orderHead.TaxCode) / 100).ToString("F2");
                            this.tbOrderIncludeTaxPrice.Text = orderHead.OrderIncludeTaxPrice.ToString("F2");//(orderHead.OrderDetailAmountAfterDiscount * (decimal.Parse(orderHead.TaxCode) / 100 + 1)).ToString("F2");
                        }
                        else
                        {
                            this.tbOrderTax.Text = string.Empty;
                            this.tbOrderIncludeTaxPrice.Text = string.Empty;
                        }
                    }
                }

            }
        }
    }
开发者ID:Novthirteen,项目名称:sconit_timesseiko,代码行数:74,代码来源:List.ascx.cs


示例17: fillOrderHead

    private RequisitionOrder fillOrderHead(OrderHead orderHead)
    {
        RequisitionOrder order = new RequisitionOrder();

        com.Sconit.Entity.Svp.User createUser = new com.Sconit.Entity.Svp.User();
        createUser.name = orderHead.CreateUser.Name;

        com.Sconit.Entity.Svp.User planner = new com.Sconit.Entity.Svp.User();
        planner.name = orderHead.CreateUser.Name;

        com.Sconit.Entity.Svp.Party partyFrom = new com.Sconit.Entity.Svp.Party();
        partyFrom.id = orderHead.PartyFrom.Code;
        partyFrom.code = orderHead.PartyFrom.Code;
        partyFrom.description = orderHead.PartyFrom.Name;

        if (orderHead.ShipFrom != null)
        {
            partyFrom.address = orderHead.ShipFrom.Address;
            partyFrom.contact = orderHead.ShipFrom.ContactPersonName;
            partyFrom.telephone = orderHead.ShipFrom.TelephoneNumber;
            partyFrom.mobilephone = orderHead.ShipFrom.MobilePhone;
            partyFrom.fax = orderHead.ShipFrom.Fax;
            partyFrom.postCode = orderHead.ShipFrom.PostalCode;
        }

        com.Sconit.Entity.Svp.Party partyTo = new com.Sconit.Entity.Svp.Party();
        partyTo.id = orderHead.PartyTo.Code;
        partyTo.code = orderHead.PartyTo.Code;
        partyTo.description = orderHead.PartyTo.Name;

        if (orderHead.ShipTo != null)
        {
            partyTo.address = orderHead.ShipTo.Address;
            partyTo.contact = orderHead.ShipTo.ContactPersonName;
            partyTo.telephone = orderHead.ShipTo.TelephoneNumber;
            partyTo.mobilephone = orderHead.ShipTo.MobilePhone;
            partyTo.fax = orderHead.ShipTo.Fax;
            partyTo.postCode = orderHead.ShipTo.PostalCode;
        }

        order.id = orderHead.OrderNo;
        order.requisitionOrderNo = orderHead.OrderNo;
        order.type = orderHead.Type;
        order.orderType = orderHead.SubType;
        order.priority = orderHead.Priority;
        order.createUser = createUser;
        order.createDate = orderHead.CreateDate;
        order.createDateSpecified = true;
        order.effectiveDate = orderHead.StartTime;
        order.effectiveDateSpecified = true;
        order.demandDeliverDate = orderHead.WindowTime;
        order.demandDeliverDateSpecified = true;

        string t = (orderHead.DockDescription == null || orderHead.DockDescription == string.Empty) ?
            orderHead.PartyTo.Code : orderHead.PartyTo.Code + "@" + orderHead.DockDescription;

        order.demandDeliverAddr = orderHead.PartyTo.Name + " " + t + " "
            + (orderHead.DockDescription != null ? orderHead.DockDescription : string.Empty);

        order.partyFrom = partyFrom;
        order.partyTo = partyTo;
        if (orderHead.Status == BusinessConstants.CODE_MASTER_STATUS_VALUE_INPROCESS)
        {
            order.status = "In_Process";
        }else{
        order.status = orderHead.Status;
        }
        order.planner = planner;

        order.print = orderHead.IsPrinted;
        order.printSpecified = true;

        return order;
    }
开发者ID:Novthirteen,项目名称:sconit_timesseiko,代码行数:74,代码来源:RequisitionOrderMgrWS.cs


示例18: ConvertOrderHeadToTransformers

 /// <summary>
 /// 生产收货转换
 /// </summary>
 /// <param name="orderHead"></param>
 /// <returns></returns>
 public static List<Transformer> ConvertOrderHeadToTransformers(OrderHead orderHead)
 {
     List<Transformer> transformers = new List<Transformer>();
     if (orderHead == null || orderHead.OrderDetails == null || orderHead.OrderDetails.Count == 0)
     {
         return null;
     }
     foreach (OrderDetail orderDetail in orderHead.OrderDetails)
     {
         transformers.Add(ConvertOrderDetailToTransformer(orderDetail));
     }
     return transformers;
 }
开发者ID:Novthirteen,项目名称:yfkey-scms,代码行数:18,代码来源:TransformerHelper.cs


示例19: CreateHu

        public IList<Hu> CreateHu(OrderHead orderHead, User user)
        {
            if (orderHead.OrderDetails != null && orderHead.OrderDetails.Count > 0)
            {
                IList<Hu> huList = new List<Hu>();
                foreach (OrderDetail orderDetail in orderHead.OrderDetails)
                {
                    IListHelper.AddRange<Hu>(huList,
                        CreateHu(orderDetail.Item, orderDetail.OrderedQty, orderDetail.HuLotNo, orderDetail.Uom, orderDetail.UnitCount, orderDetail.HuLotSize,
                        null, null, null, orderDetail.OrderHead.PartyFrom, BusinessConstants.CODE_MASTER_ITEM_QUALITY_LEVEL_VALUE_1, user, orderDetail, null, orderDetail.ItemVersion, null,orderDetail.CustomerItemCode));
                }

                return huList;
            }

            return null;
        }
开发者ID:Novthirteen,项目名称:sconit_timesseiko,代码行数:17,代码来源:HuMgr.cs


示例20: Order2ReceiptNote

        private ReceiptNote Order2ReceiptNote(OrderHead orderHead)
        {
            ReceiptNote receiptNote = new ReceiptNote();
            receiptNote.OrderNo = orderHead.OrderNo;
            receiptNote.CreateDate = orderHead.CreateDate;
            receiptNote.CreateUser = orderHead.CreateUser == null ? string.Empty : orderHead.CreateUser.Code;
            receiptNote.Status = orderHead.Status;

            return receiptNote;
        }
开发者ID:Novthirteen,项目名称:yfkey-scms,代码行数:10,代码来源:PrintingMgr.cs



注:本文中的com.Sconit.Entity.MasterData.OrderHead类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# MasterData.User类代码示例发布时间:2022-05-26
下一篇:
C# Exception.BusinessException类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap