Ejemplo n.º 1
0
    private void SaveSelectUnit()
    {
        string methodName = "SaveSelectUnit";

        Logger.Write(this.GetType(), EnumLogLevel.Info, className + ":" + methodName + ":" + Pkurg.PWorldBPM.Common.Log.MessageType.IN);

        JC_BidScalingListInfo obj = new JC_BidScalingListInfo();
        string BidCommittee       = string.Empty;

        try
        {
            obj.FormID    = ViewState["FormID"].ToString();
            obj.UserCode  = _BPMContext.CurrentUser.Id;
            obj.UserName  = _BPMContext.CurrentUser.Name;
            obj.CreatTime = DateTime.Now.ToShortDateString();

            if (cblSelectUnit.SelectedIndex != -1)
            {
                obj.SelectResult = cblSelectUnit.SelectedIndex.ToString();
            }
            bsl.InsertBidScalingList(obj);

            BidCommittee = obj.UserCode + "," + bs.GetBidScaling(obj.FormID).BidCommittee;
            bs.UpdateBidCommittee(obj.FormID, BidCommittee);
        }
        catch (Exception ex)
        {
            Logger.Write(this.GetType(), EnumLogLevel.Fatal, className + ":" + methodName + ":" + Pkurg.PWorldBPM.Common.Log.MessageType.Exception + ":" + string.Format("Exception={0}", ex));
            throw ex;
        }
        Logger.Write(this.GetType(), EnumLogLevel.Info, className + ":" + methodName + ":" + Pkurg.PWorldBPM.Common.Log.MessageType.OUT);
    }
Ejemplo n.º 2
0
    private void BindSelectUnit(string FormID)
    {
        string methodName = "BindSelectUnit";

        Logger.Write(this.GetType(), EnumLogLevel.Info, className + ":" + methodName + ":" + Pkurg.PWorldBPM.Common.Log.MessageType.IN);
        try
        {
            string BidCommittee = bs.GetBidScaling(FormID).BidCommittee;
            foreach (string UserCode in BidCommittee.Split(','))
            {
                if (UserCode != null && !string.IsNullOrEmpty(UserCode))
                {
                    JC_BidScalingListInfo obj = bsl.GetBidScalingList(FormID, UserCode);
                    if (obj != null)
                    {
                        if (obj.SelectResult == "0")
                        {
                            lblFirstList.Text = obj.UserName + "&nbsp;&nbsp;&nbsp;&nbsp;" + obj.CreatTime + "<br/>" + lblFirstList.Text;
                        }
                        else if (obj.SelectResult == "1")
                        {
                            lblSecondList.Text = obj.UserName + "&nbsp;&nbsp;&nbsp;&nbsp;" + obj.CreatTime + "<br/>" + lblSecondList.Text;
                        }
                    }
                }
            }
        }
        catch (Exception ex)
        {
            Logger.Write(this.GetType(), EnumLogLevel.Fatal, className + ":" + methodName + ":" + Pkurg.PWorldBPM.Common.Log.MessageType.Exception + ":" + string.Format("Exception={0}", ex));
            throw ex;
        }
        Logger.Write(this.GetType(), EnumLogLevel.Info, className + ":" + methodName + ":" + Pkurg.PWorldBPM.Common.Log.MessageType.OUT);
    }
Ejemplo n.º 3
0
    private void BindSelectUnit()
    {
        string methodName = "BindSelectUnit";

        Logger.Write(this.GetType(), EnumLogLevel.Info, className + ":" + methodName + ":" + Pkurg.PWorldBPM.Common.Log.MessageType.IN);
        try
        {
            if (nodeName.Value != "招标委员会意见" && nodeName.Value != "招标委员会主任意见" && nodeName.Value != "执行主任")
            {
                tdSelectUnit.Visible = false;
            }

            string BidCommittee = bs.GetBidScaling(ViewState["FormID"].ToString()).BidCommittee;
            foreach (string UserCode in BidCommittee.Split(','))
            {
                if (UserCode != null && !string.IsNullOrEmpty(UserCode))
                {
                    JC_BidScalingListInfo obj = bsl.GetBidScalingList(ViewState["FormID"].ToString(), UserCode);
                    if (obj != null)
                    {
                        if (obj.SelectResult == "0")
                        {
                            lblFirstList.Text = lblFirstList.Text + obj.UserName + "&nbsp;&nbsp;&nbsp;&nbsp;" + obj.CreatTime + "<br/>";
                        }
                        else if (obj.SelectResult == "1")
                        {
                            lblSecondList.Text = lblSecondList.Text + obj.UserName + "&nbsp;&nbsp;&nbsp;&nbsp;" + obj.CreatTime + "<br/>";
                        }
                    }
                }
            }
        }
        catch (Exception ex)
        {
            Logger.Write(this.GetType(), EnumLogLevel.Fatal, className + ":" + methodName + ":" + Pkurg.PWorldBPM.Common.Log.MessageType.Exception + ":" + string.Format("Exception={0}", ex));
            throw ex;
        }
        Logger.Write(this.GetType(), EnumLogLevel.Info, className + ":" + methodName + ":" + Pkurg.PWorldBPM.Common.Log.MessageType.OUT);
    }