示例#1
0
 /// <summary>
 /// 业务员分配
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void btnAllot_Click(object sender, EventArgs e)
 {
     if (part.Model.Views[0].FocusedRecord != null && part.Model.Views[0].FocusedRecord.DataRecordState != DataRowState.Added)
     {
         NameValueCollection param = new NameValueCollection();
         param.Add("SrcID", part.Model.Views[0].FocusedRecord["ID"].ToString());
         part.ShowModalDialog("92b2a723-a35f-44cc-b069-75906630a358", "销售业务员分配", "630", "375", "", param, false);
     }
 }
示例#2
0
        //订单佣金明细
        public void BtnOrderBrokerage_ItemClick(object sender, UFSoft.UBF.UI.WebControls.MenuItemClickEventArgs e)
        {
            if (this.part.Model.Views["SO"].FocusedRecord != null && this.part.Model.Views["SO_SOLines"].FocusedRecord != null)
            {
                part.Model.ClearErrorMessage();
                part.DataCollect();
                part.IsConsuming   = false;
                part.IsDataBinding = true;

                SetDto();

                part.ShowModalDialog("c995ec02-be18-45fa-a119-1a5b662899e3", "订单佣金", "880", "400", "", null, true);
            }
            else
            {
                this.part.Model.ErrorMessage.Message = "当前销售订单/销售订单行不能为空!";
                return;
            }
        }
示例#3
0
        public void btnItemSubTable_Click(object sender, EventArgs e)
        {
            //  UFIDA.U9.CBO.SCM.Customer.CustomerItem

            NameValueCollection param = new NameValueCollection();

            if (part.Model.Views[0].FocusedRecord != null && Convert.ToInt64(part.Model.Views[0].FocusedRecord["ID"]) > 0)
            {
                System.Collections.Specialized.NameValueCollection p1 = new System.Collections.Specialized.NameValueCollection();
                p1.Add("ItemID", part.Model.Views[0].FocusedRecord["ID"].ToString());
                p1.Add("ItemCode", part.Model.Views[0].FocusedRecord["Code"].ToString());
                p1.Add("ItemName", part.Model.Views[0].FocusedRecord["Name"].ToString());
                part.ShowModalDialog("0f055e44-6e0c-41ba-9d7f-00b498c54821", "料品子表", "992", "504", "", p1, false);
            }
            else
            {
                this.part.Model.ErrorMessage.Message = "请选择料品";
            }
        }