Exemplo n.º 1
0
    protected static string getDeptName(string deptCode)
    {
        string text = "";

        if (deptCode == "")
        {
            text = "";
        }
        else
        {
            int i = deptCode.IndexOf(",");
            if (i > 0)
            {
                while (i > 0)
                {
                    string value = deptCode.Substring(0, i);
                    text     = text + BulletinView.getDept(System.Convert.ToInt32(value)) + ",";
                    deptCode = deptCode.Substring(i + 1, deptCode.Length - i - 1);
                    i        = deptCode.IndexOf(",");
                }
                text += BulletinView.getDept(System.Convert.ToInt32(deptCode));
            }
            else
            {
                text += BulletinView.getDept(System.Convert.ToInt32(deptCode));
            }
        }
        return(text);
    }
Exemplo n.º 2
0
        void CloneBulletin(BulletinView bulletin)
        {
            var package = new BulletinPackage
            {
                BulletinId = bulletin.BulletinId
            };

            using (var client = new ServiceClient())
            {
                var r = client.Ping();
                Console.WriteLine($"Ping = {r}");

                ServiceClient._CloneBulletin(package, CloneBulletinCallback);
            }
        }
Exemplo n.º 3
0
    protected void setData()
    {
        DataTable dataTable = com.jwsoft.pm.entpm.action.BulletinManage.QueryOneBulletin(this.BulletinID);

        if (dataTable.Rows.Count == 1)
        {
            this.hdnDept.Value     = dataTable.Rows[0]["DeptRange"].ToString();
            this.lbTitle.Text      = dataTable.Rows[0]["V_TITLE"].ToString();
            this.hlUrl.Text        = dataTable.Rows[0]["URL"].ToString();
            this.hlUrl.NavigateUrl = dataTable.Rows[0]["URL"].ToString();
            this.LblCon.Text       = dataTable.Rows[0]["V_CONTENT"].ToString();
            string deptName = BulletinView.getDeptName(this.hdnDept.Value);
            this.lbDept.Text = deptName;
            this.lbDate.Text = dataTable.Rows[0]["DTM_RELEASETIME"].ToString();
        }
    }